I am using ASP.NET core web api which is hosted on IIS server (on prem). Configured to use Application Insight to send logs to Azure. Works fine on my machine and worked on IIS server also for some time. But it stopped working now and not able to figure out what is going on. Any help is appreciated as I am getting ready to move this app to prod. Doesn't look like it is a firewall issue as it was working okay.
Thanks
I checked all logs and not finding anything in the logs. It was working for sometime.
Here is the code in ConfigureServices()....
// configure appication insight telemetry
services.AddHttpContextAccessor();
var appInsightConnectionString = Configuration.GetSection("ApplicationInsights");
string instrumentationKey = appInsightConnectionString.GetValue("InstrumentationKey");
services.AddSingleton();
services.AddApplicationInsightsTelemetry(instrumentationKey);
No logs are sent to Azure App Insight
Below are the possible reasons that you might have stopped seeing the data. Please check it out.
Check the status blog.
Have you hit your monthly quota of data points? Open the
Settings/Quota and Pricing to find out. If so, you can upgrade your
plan, or pay for additional capacity. See the pricing scheme.
Additional Documentation Reference.
Hope this helps.
Related
So I have created a server using .Net and Entity Framework that connects to my AWS RDS Microsoft SQL Server. I am using this for a backend in my newest Unity game.
I have tested it by running POST and GET urls in Postman. Logging in and registering works!
When I test I use the URL www.localhost: https://localhost:7254/authentication/register
What I don't understand is when I implement this into my game, what will the URL be?
ex) https://www./authentication/register
I do not understand how to go from running this server local to global. Can users devices use their own local host? (This seems unlikely). I am thinking that I should deploy my server as a web app and attach it to my RDS if thats even possible. I am just unsure of the next steps.
I cannot find a lot of resources on this and I am not a data engineer. Just trying to learn the ocean of knowledge required to be an indie game dev.
Any help is greatly appreciated :)
I have tried to use UnityWebRequest to send GET and POST urls but this is not working as I have no way of using a URL that will work for every device.
We are hosting our website in Azure. During the deployment(TFS) we will do the below Steps as the part of the deployment pipeline.
Stop the WebApp
Deploy Web App Service
Start the WebApp
After the 1st step, if anyone tries to access our website, then by default Azure will return the below page
We really don't want our users to show this page during the outage. We are planning to show our own outage image/page in such case.
Is there is any way to achieve this?
Since Azure Web Apps in a Paas model, I'm wondering how to do this?
Any inputs Appreciated!
It seems that it does not suppport custom error page at this time. There is feedback on Enabling users to create custom error pages for 403 and 503 service unavailable messages.
I think you could up vote to promote the realization of this feature.
Putting some additional information regarding the solution for my own question here,
Just found the OP in SO where the feedback originated
There are two categories of HTTP errors that can happen on Azure Web
Apps:
Those that happen in IIS on the Web Worker where your site is running.
Those that happen before it reaches that. This includes cases when the
site is stopped, in the process of restarting, or potentially affected
by some other issue in the system. One way to tell if an error is #1
or #2 is to turn on http logging, and see if it gets logged. Only #1
will.
For #1, you can customize errors using standard techniques. But for For #2, there is currently no way for you to customize the pages returned by Azure.
Thanks, #David Ebbo and #SamJolly
My web app is very slow at certain times and ok during other times. I have been using the cloud services for 2 years and never I faced this problem. I can understand if its slow at all times. I have a staging and production instance. The staging site is fast always.
I have started facing this problem from 2 days when there was a service outage from Azure in North Europe area and thereafter the performance has worsened. I have tried rebooting the instance after the outage was resolved and web app performance was looking fine for some time. Now back to bad performance.I am presuming its got something to do with azure since at times everythign works fine. Pls help. Pls let me know if you need more information.
In this kind of scenarios where you don't know where the problem might be, I'd advice to setup a free NewRelic account on Azure and activate the extension on your Web App.
NewRelic will tell you, transaction by transaction and resource by resource where your bottlenecks might be or your code problems.
Ok, so this is my dilemma... I have an ASP.NET MVC site that is running into some conditions that it is pegging the processor on the iss boxes it's running on. I don't have access to these servers (it's a farm of about 5 iis6 boxes behind a netscalar). I am doing some logging to a sql database, but the problem is that when the cpu pegs my database starts timing out. The iis servers are hosted in house, but I can't get access to them.
And to make things ever more complicated, I can't reproduce any of these issues in my qa environment (which I don't have access to either). QA is setup to similarly to our prod environment, but it runs on a single box that isn't behind a netscalar.
So, any thoughts on the best way to try to track down where my issues lie? Thanks!
Since you are already logging to a database, why you don't log to another database, install this DB on another computer, so that when your MVC application starts killing the CPU the database won't be affected (since it is working on another computer).
or you could log to an FTP folder that you can access.
Hope I helped.
Regards.
ASP.NET Trace. Haven't used MVC, but I'm assuming it still works...
http://msdn.microsoft.com/en-us/library/y13fw6we%28VS.71%29.aspx
If you want to know what is going on with the system you could read from the event viewer programatically:
http://support.microsoft.com/kb/815314
This should help you to learn what is going on with the system. This way you can build a web interface for it and capture any info you may want to look at for what is going.
I have a web app which queries a Lucene index and it works just fine in a W2K3 server in my network. Now I got my azure code so I wanted to test the service uploading the app. In order to do that I had to install Vista (I did it in a Virtual machine) cause the Azure SDK won't install on an XP box.
I created my Cloud Service, added the files from my app but when I run it (just F5) I get a SecurityException, when I call Lucene to query the index, saying:
The application attempted to perform
an operation not allowed by the
security policy. To grant this
application the required permission
please contact your system
administrator or change the
application's trust level in the
configuration file.
I've been googling around and the solutions I've found concern modifying the machine.config file which is something I won't be able to do "in the cloud".
Could anybody help on this?
Ok, in case somebody is facing the same issues, this is the correct answer which I got from the Azure forum:
This is because of the trust policy
for the Windows Azure CTP. The
enviroment variablies TEMP and TMP are
avaliable and set up appropiately.
However, System.IO.Path.GetTempPath
and System.IO.GetTempFile do not work
as they require unrestricted
environment permissions. I would
suggest you contact the Lucene
developers to see if they can modify
the code so it runs properly in medium
trust environments.
Thanks to Daniel C. Wang for the answer.
I also found a question regarding my same issue and how if was fixed.
Here the link: Lucene.Net fails at my host because it calls GetTempPath(). What’s the work around?
You can change trust in the web.config, unless that has been disallowed in the machine.config (which it often is in shared hosting). inside your put and see what happens.
If you are not allowed to do that, see if you can get your control GACd by talking to your provider. If that doesn't work, sorry to say but you are out of luck. Sometimes you can find workarounds that don't require full trust for a specific method, but if a third party dll requires it there is not much you can do
Haven't done this but isn't it possible to have a desktop version of the Live Operating Environment? This would seem a good start for troubleshooting.