Unable to Create Azure Storage Queue Messages with ASP.NET 4.6.1 App - asp.net

I have an old ASP.NET 4.6.1 app running in a VM on Azure.
I’m trying to create messages in an Azure Storage Queue and nothing is happening when I run it on production VM. However, on my dev machine, it works fine and I can create messages in the same queue that I’m trying to access from the production VM.
The call to the queue is within a try catch block and it’s not throwing any errors.
Another important point is that I had use the old/deprecated WindowsAzure.Storage NuGet package as that’s the one that seems to work on this ASP.NET MVC 4.6.1 app.
Any idea what could be the issue here? Because I don’t see any errors, I’m not sure how to go about fixing this problem.

According to MS Docs, one troubleshooting option you can try is "Redeploy Windows virtual machine to new Azure node"
The doc says,
If you have been facing difficulties troubleshooting Remote Desktop
(RDP) connection or application access to Windows-based Azure virtual
machine (VM), redeploying the VM may help.
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/redeploy-to-new-node-windows
See also additional troubleshooting steps:
Restart the virtual machine
Recreate the endpoint / firewall rules / network security group
(NSG) rules
Connect from different location, such as a different Azure virtual
network
Recreate the virtual machine
There are various reasons when you cannot start or connect to an application running on an Azure virtual machine (VM). Reasons include the application not running or listening on the expected ports, the listening port blocked, or networking rules not correctly passing traffic to the application.
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-app-connection

This might be network Firewall issue. Open azure portal from production vm machine. You can even try to manually see the storage and upload files from web.

Related

Deploying to our test server from a dev machine doesn't work

We have 2 dev machines (dev1 and dev2) and we are trying to change the way we deploy. Until now we used to deploy to the local biztalk admin console, then create an MSI and instal that to the live server.
Now, we want to directly deploy to a test server (bztest-03) and once testing is done, create an msi on that machine. This works for the dev2 mavhine, but the dev1 machine gives the below error. the machine gives this error even when the same user as on dev2 is logged on and the rights on the database look the same (and on user roles)
What could cause these errors? The analytics_PortTrackingInfo isn't something we made and i find little hits on google about it and biztalk.
Severity Code Description Project File Line Suppression State
Error Deployment cannot initialize the connection to the database
"BizTalkMgmtDb" on server "BZTEST-03\DTA". Verify that you have the
required security permissions and that communication between
Distributed Transaction Coordinator services on the machines involved
is not prevented by current DTC security, firewall or authentication
settings. Invalid object name 'analytics_PortTrackingInfo'. 0
That error notwithstanding, you can't Deploy to a remote machine from Visual Studio. That has always been the case.
If you're looking to improve your Deploy process, the 'correct' way would be to add BTDF to your Solutions.
Deployment Framework for BizTalk

Is it possible to ask for a Linux server when creating a Web App on Azure?

I've created an ASP.NET Core application on my Ubuntu machine. When I host it on an Azure Web App I noticed it was running on a Windows Server. Is it possible to host it on a Linux server instead?
You now can, without the need of a virtual machine or Docker image.
Create a web app with App Service on Linux.
See: https://azure.microsoft.com/en-us/documentation/articles/app-service-linux-how-to-create-a-web-app/
That is not possible at the moment, ran at the same problem last week while migrating some stuff from AWS. In order to keep running my apps in a Unix environment, I had to resort to Azure Container Service, but it in turn forced me to (learn and) run DC/OS.
Azure Web App is using Windows Server as operating system. You can always get our own computing machine, with Linux (Ubuntu or something else) and deploy whatever you need on it.
See here for details: https://azure.microsoft.com/en-us/services/virtual-machines/

How to deploy standalone ServiceStack website

I am working on a small website based on an example ServiceStack project. It is a standalone web app so that there is no need for IIS etc. Currently I start the server at http://localhost:8080 and opening the website in my local browsers seems to work fine.
My PC has a dedicated IP and I hope to test my server from another computer. I can successfully get a Python server running using python -m SimpleHTTPServer 8000, so network is working fine.
But the remote computer cannot access my ServiceStack server. I think there should be a simple setting somewhere to get it working. But I searched online, there is much information about IIS and ASP.Net. But my app is standalone and is independent of Asp.net. It is supposed to be running on Linux as well as on Windows. (Though I will only deploy on a Windows machine now.)
It will work fine on your local computer because the firewall doesn't block local traffic. If you want any other computer to access services running on your machine you will need to open the ports on the firewall.
This can be configured from the Windows Firewall in Control Panel

SignalR Performance counter not displaying in the performance monitor

I installed the Microsoft.AspNet.SignalR.Utils version 1.1.0.0 and then install the performance counters using signalr.exe ipc.
In the performance monitor under category "signalr" I can see all the performance counters but it says no instances...so if I add one of the counters in the monitor they don't appear.
My signalr server is hosted on IIS as asp.net web api. Both server and client are using same version of signalr i.e. 1.1.0.0.
Any idea?
I was having the same issue while trying to run the "Microsoft.AspNet.SignalR.LoadTestHarness" from the SignalR source code. I even went so far as to create a full website in my local IIS 8 on Windows 8 (with a DNS entry in my machine's host file pointing the website address to my loop-back ip address - 127.0.0.1).
What ended up working for me was changing the AppPool's Identity to LocalSystem where the load test harness site was running.
A quick how-to for those not familiar, open up IIS, go to the Application Pools, find the Application Pool that the site in question is running under, right-click>Advanced Settings, find the Identity entry, and change it to LocalSystem (from ApplicationPoolIdentity).
Hope this helps.
To use these on full IIS you need to add the app pool user for your application to the Performance Monitor Users group.

System.UnauthorizedAccessException while accessing network shared file through IIS7.5 application on windows server 2008

I found similar looking issues, however none of the solution i found have worked for me. I do not have much knowledge about IIS or network security so posting my issue here. If anyone has any comments, i would really appreciate.
I am running my webApplication under IIS7.5 on windows server 2008.
-Web Server Machine is not domain controlled.
-Through web application, I am trying to access a network Shared location (machine1 which is also not domain controlled).
I keep on getting this error "System.UnauthorizedAccessException: Access to the path "\\Machine1\Shared\Test.txt" is denied." I am using UNC Path.
I shared the network shared directory with Full permissions to various users including, "everyone", "Network service", "IUSR", "IIS_IUSRS". Just to see it working firstly.
web application is running under IIS in their own application pool with "Managed pipeline mode" as classic and "Identity" as "Network Service".
Note: even tried changing mode to "integrated". It did not work.
I want to run IIS under Network Service. Running IIS under any other user account matching with an user account on network shared is not a solution for me either.
Even though i tried it, could not make it working.
I used process monitor on the network computer which has shared directory and i was expecting network service to access the file, however i do not see any process trying to access the file or create it. I am not sure either Which process is expected to access this file and under which account?
Looking for help.

Resources