我一直在使用webrole.但据我了解windows azure网站:多个网站托管在一个webrole中.
问题1.是否可以连接到webrole?
Q.2.是否可以至少连接到Azure IIS管理控制台?
remote-desktop azure iis-7.5 azure-web-roles azure-web-sites
我们正在考虑将我们的网络托管计划模式从共享更改为标准,但不确定我为我的网站设置的DNS注册会发生什么.移动会导致新的IP地址迫使我改变我所有的dns注册吗?
我对Application Insights有一个问题,与此非常相似.
对我而言,当我点击F5并运行应用程序时,它可以正常工作,我获得了客户端和服务器端的性能指标.
但是,当我部署应用程序时,据我所知,我没有得到任何服务器端数据.该站点作为Azure Web App(Web站点)运行.我确实得到了客户端数据.

有人有任何提示吗?
我正在使用PDFSharp在我的网络应用程序中动态生成PDF.Web应用程序在本地工作正常但是,当我将应用程序推送到Azure(作为Web应用程序)时,我得到以下异常:
{"message":"An error has occurred.","exceptionMessage":"Internal error. Font data could not retrieved.","exceptionType":"System.InvalidOperationException","stackTrace":" at PdfSharp.Fonts.OpenType.FontData.CreateGdiFontImage(XFont font, XPdfFontOptions options)\r\n at PdfSharp.Fonts.OpenType.FontData..ctor(XFont font, XPdfFontOptions options)\r\n at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font, XPdfFontOptions options)\r\n at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font)\r\n at PdfSharp.Fonts.FontDescriptorStock.CreateDescriptor(XFont font)\r\n at PdfSharp.Drawing.XFont.get_Metrics()\r\n at PdfSharp.Drawing.XFont.Initialize()\r\n at PdfSharp.Drawing.XFont..ctor(String familyName, Double emSize)\r\n at Spiro.Services.OrderService.GetOrderLabel(Int32 id, Nullable`1 quantity)\r\n at Spiro.Web.Controllers.WebApi.V1.OrderController.GetOrderLabel(Int32 id, Nullable`1 quantity)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from …Run Code Online (Sandbox Code Playgroud) 我们在中型实例上运行几个azure网站(或Web应用程序).我想知道在其中一个站点上运行简单的负载测试时是否会对任何其他站点的性能产生影响.换句话说,这些网站是否共享相同的处理器/内存,或者在天蓝色中处理的方式不同?
我想创建一个网站并使用GitHub进行源代码管理.如何让Azure网站指向我的GitHub帐户并从那里提取代码?
我试图在Azure Web Appp上运行一个非常简单的node.js服务器来提供单页面应用程序.服务器将提供静态页面,并且总是服务器'index.html'用于页面请求,因为所有路由都在客户端完成.
所有工作都完全在本地完成,但在部署到Azure时,任何页面请求都会导致"您要查找的资源已被删除...",这表明节点服务器未被命中.
我使用Koa作为服务器,server.js在这里;
var Koa = require('koa');
var convert = require('koa-convert');
var helmet = require('koa-helmet');
var historyApiFallback = require('koa-connect-history-api-fallback');
var serve = require('koa-static');
var app = new Koa();
// This rewrites all routes requests to the root /index.html file
// (ignoring file requests). If you want to implement isomorphic
// rendering, you'll want to remove this middleware.
app.use(convert(historyApiFallback({
verbose: false
})));
// Serving ~/dist by default. Ideally these files should be served by
// the web server and …Run Code Online (Sandbox Code Playgroud) 我有一个网站呼叫https:// [site-name] .azurewebsites.net.我只是想从整个链接中删除.azurewebsites,所以它看起来像 https:// [site-name] .net.有没有办法在Azure中进行更改?
我有一个Web应用程序,该应用程序有两个默认实例,从资源管理器中可以看到有两个实例。但是,在global.asax代码中,我有以下代码:
public class LogEntity : TableEntity
{
public LogEntity(string partitionKey, string rowKey)
{
this.PartitionKey = partitionKey;
this.RowKey = rowKey;
}
public LogEntity() { }
public string Submitter { get; set; }
}
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
Random ran = new Random();
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["StorageConnectionString"]);
var tableClient = storageAccount.CreateCloudTableClient();
CloudTable table = tableClient.GetTableReference("logs");
table.CreateIfNotExists();
var key1 = ran.Next();
var machineName1 = Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID");
LogEntity log1 = new LogEntity(Environment.MachineName + ":" + …Run Code Online (Sandbox Code Playgroud) 我在azure中创建了一个web应用程序来托管我的应用程序js节点.(Azure Web应用程序)
在我的项目中,我在app.js中有一个快递api,但是在同一个项目中,我有另一个文件,它是一个cronjob.
在我的package.json中,我有以下脚本配置:
"scripts": {
"start": "node app.js"
}
Run Code Online (Sandbox Code Playgroud)
通过github进行部署时,app.js中的api工作正常.
我的问题:如何与app.js同时运行cronjob.js?
我发现了很多有关如何将Angle App部署到Azure Web App的文章。但是没有工作。我找到了一个解决方案,其中创建了一个Visual Studio Web项目,从Visual Studio Code Project复制dist文件,然后从Visual Studio进行部署。但是,这并不真正有效。我猜该Web应用程序需要一些web.config文件..没有比这更好的方法了吗?我希望直接从Visual Studio Code进行部署,而无需使用asp.net Web项目。如果我只是部署,导航到页面时出现以下错误:
Cannot GET /
Run Code Online (Sandbox Code Playgroud)
在本文中,您似乎所需要的只是一个更高版本的NodeJS:
https://dzone.com/articles/deploy-an-angular-app-from-visual-studio-code-to-a-1
但剂量似乎起作用。
我有一个仅包含静态html页面的Azure网站。如何在响应中设置缓存控制标头?
我创建了一个网页,但我的朋友或同事总是复制源代码并轻松复制所有数据,那么有什么方法可以隐藏浏览器中的页面源选项吗?
azure-web-sites ×13
azure ×12
c# ×2
javascript ×2
node.js ×2
angular ×1
asp.net-mvc ×1
dns ×1
fonts ×1
github ×1
html5 ×1
iis-7.5 ×1
jquery ×1
koa ×1
pdfsharp ×1