简体   繁体   中英

Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException

I'm seriously going crazy because in the last 5 hours I obtain the same error when I start my app.

Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The request could not be completed. (Internal Server Error)

The server is ok, there aren't problems there. I tried to change https in http from the applicationUrl string. Doesn't work.

The MobileServiceInvalidOperationException is a wrapper exception - there is an inner exception that explains what the issue is. Given the Internal Server Error message, I'm guessing that the server is returning 500 Internal Server Error . This is a generic server error that basically means "The server crashed for some reason", which isn't helpful.

To diagnose, go to your Azure website and select Diagnostic logging in the menu. Turn on Application Logging and set the verbosity to Verbose. Then go to Log Stream (which is directly below the Diagnostic logging settings in the menu) to start looking at a live view of the logs. You will see the exception once you retry the request.

As an alternative, you can use remote debugging, which I love. Once you know what routine the exception is being caused in, you can set a breakpoint in that routine within Visual Studio, then go to the Cloud Explorer, log into Azure, and start a remote debugging session on the backend. Again, send your request and you can inspect the internal state of the method during the request.

If you need to see the request itself, you can look at the FREB logs, which are XML files that are stored for every single failed request. You need to turn on failed request logging for this to work, which is done in Diagnostic logging.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM