I am trying to configure MFA using Azure MFA. Its all working correctly apart from getting the following error in the Mobile App when scanning a QR code (adding manually produces the same error):
The web service looks to be configured correctly:
https://mfa.optimisemedia.com/MultiFactorAuthMobileAppWebService/pfpaws.asmx
And the Web Service SDK:
https://mfa.optimisemedia.com/MultiFactorAuthWebServiceSdk/
Any help greatly appreciated as I've come up against a brick wall now.
It seems the problem was down to IIS permissions. The installer doesn't set these correctly.
More info can be found at https://dirteam.com/sander/2015/03/27/knowledgebase-you-receive-a-web-service-requests-must-be-protected-by-authentication-error-when-activating-a-multi-factor-auth-app/
Related
I have a web app, ironradio.org, that I've deployed on Azure from VSCode. I've made some updates to the site and am now trying to deploy the newest version. Now when I try to deploy using this button:
I get the error 403 - This web app is stopped in the output window:
I've already deployed several versions of the site using the same method and it's never failed before. Also, the app is definitely not stopped because I can still browse to the site and it shows up.
My best guess as to what's going on is that I associated the App Service with a new resource group since the last deployment, so maybe VSCode isn't recognizing that? Does anyone have any idea what's going on here?
I tried the link given in the error message, but it wasn't much help.
Microsoft foreseen this type of error and how it can affected its customers greatly and this is why the deployment slot is for you.
Firstly, you have to delete the app and reupload again except you set up continuous deployment which work mostly with GitHub and other version control platforms.
Apart from this, I will suggest you check out the deployment slot docs. It’s very simple and easy to use
https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots
We currently have both a TEST and DEV environment of our application set to connect to Microsoft Translator. For our test environment, everything connects fine. For our DEV environment, authentication is failing and we do not know why. Both machines appear to have the same configuration. We are testing both with the same API key (which we have done in the past).
My question is: How do we monitor the calls to this API in the Azure portal? I have turned on a number of diagnostics but none are appearing to give me the network info I need. Network Watcher appears to be for VMs. I want to be able to look at the calls that are logged using my key to troubleshoot this issue.
Any help is greatly appreciated :)
Thanks.
You can try application insights - https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview
I need some more information about this case,
01. Are you calling Microsoft Translate API inside your application or you are developing an API using, Microsoft Translate API ?
02.Hope you are using azure web apps. Are you using slots to manage dev and test environment.
03. Are you using API Management ?
I have an solution that consists of a web gui front end and a web api backend. Both use Azure AD for auth with the former passing a token to the latter.
This all works fine on both a localhost and an OnPrem server, but when I push the release to Azure, I get a 500 Internal Server error when the GUI attempts to utilise the API.
At the moment, I am unable to obtain any further error detail.
I know this is a little vague, but I am pretty new to the whole Azure platform and am unsure how to diagnose the issue further.
Any assistance or pointers that people can give would be greatly appreciated.
Cheers
I know this is a little vague, but I am pretty new to the whole Azure platform and am unsure how to diagnose the issue further.
Per my understanding, you could follow the steps below to troubleshoot this issue:
For .NET web application, you could add customErrors flag in the Web.config file and set the value to On or RemoteOnly to see the detailed error message. Also, you could enable diagnostics logging for web apps to retrieve more details about the error message. Or you could just leverage Remote debugging web apps for a simple way to locate the specific issue. For more details, you could follow this official tutorial about troubleshooting azure web apps.
For .NET Core web application, you could refer to this similar issue. Additionally, for php, you could refer to nfo About PHP Fatal Error and Error Log on Azure Website and Change the built-in PHP configurations to troubleshoot this issue.
What I have:
VS2015U2
ASP.NET 5 MVC 6 website
Deployed to Azure Web App
The site works locally
When I deploy to Azure I get internal server error (500)
I'm unable to Attach a debugger since they messed up something with the latest versions (tried manually too https://azure.microsoft.com/en-us/blog/introduction-to-remote-debugging-on-azure-web-sites/)
I have app.UseDeveloperExceptionPage(); but I guess the site is failing during configuration so it doesn't display any other information.
So how to resolve this? I need to see the .net exception but I have no idea how to do that.
Try adding Application Insights to the app. You should see errors on startup of your application.
I would also take a look at your startup code to see if you are writing to disk anywhere during configuration or app.start. This might be the case if you are using AAD in any capacity.
You can also hit up the KUDU console by targetting https://sitename.scm.azurewebsites.net . You will be able to navigate in the debugging console to see the RAW logs from IIS. That might shed some light into the situation. See KUDU for more info.
I solved this problem like show below.HTTP 500 error interested about that is not allowed to access the server.Go to azure portal address and choose your database.Press"Set server firewall " and Allow Azure services and resources to access this server choose "Yes" save that page and refresh your service.Than you can see your data
Use the KUDU console at https://sitename.scm.azurewebsites.net
Go to web.config file and check if the process path is correct.
I used the Azure Log Stream to help figure out what was going on. As Karishma Tiwari - MSFT said, the issue ended up being my web.config file (which was built for .NET 3.5 and not 4.7)
Here's the tutorial to set up Log Streaming: https://blogs.msdn.microsoft.com/azureossds/2016/09/28/how-to-identifyreview-errors-on-php-applications-in-azure-web-apps-using-log-stream-service/
My particular app's solution was to update my Azure App Service to use .NET 3.5, in its Application Settings, like so:
For me it worked after I turned "Allow Azure services and resources to access this server
" to Yes
I got this error even though I had enabled Application Logging (Filesystem), Detailed error messages and Failed request tracing in App Service logs
This page isn’t working
mysite.azurewebsites.net is currently unable
to handle this request.
HTTP ERROR 500
However by navigating to Log stream and selecting Application Logs I could see a detailed error message:
I know this question has already been answered but here is a recent view of the Azure Portal where I found a solution to this problem
I wonder if someone can help? I'm trying to deploy a mvc app to azure and have followed the what appeared to be simple instructions of selecting publish from my mvc app and using the imported azure profile. This all worked fine and with a couple of tweaks the site is working, after some testing I'm getting a 500 error, I've set the logging on but this doesn't help much.
After looking around I see that I can rdp to the site but this requires a web role and a different sort of publish am I missing something from the standard publish or do I need to add the cloud service stuff to my project?