How to solve server errors in ASP. NET "/" applications, asp.net applications
When I learned how to verify the control in asp.net, I always prompted this problem when running the program: "/" server errors in the application. For example:
Related methods are found on the Internet:
In webconfig, find
<appSettings> <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> <addkey="ValidationSettings:UnobtrusiveValidationMode"value="WebForms" /> </appSettings>
Then delete<Addkey = "ValidationSettings: UnobtrusiveValidationMode" value = "WebForms"/>You can.
However, when you view the content in the configuration file, you find that there is no such content at all, and you cannot add all the content. I don't want to think about it anymore. I will put it aside for the moment.
However, I have been talking about this issue for a long time. Then I carefully read the content added to the configuration file and found that the second key is for the Validation control and the final attribute is set to "WebForms ", I have seen similar problems on the Internet before, so I willSet the value attribute to "None ",Then run the task again.
The added content is:
<Add key = "ValidationSettings: UnobtrusiveValidationMode" value = "None"/>
We hope that the solution provided in this Article can help you solve server errors in the "/" application.
Articles you may be interested in:
- When running asp.net, an http Error occurs. 404-the file or directory is not found.
- Cause and solution of Runtime Error in Asp. Net Program
- Asp.net running prompt does not set object reference to object instance error Solution
- Implementation of ASP. NET logging error logs
- How to resolve 404 error when deploying asp.net in IIS
- Example of asp.net error handling Application_Error event
- Asp.net error capture (error handling) page_error event usage
- Solution to asp.net iis7 default document error exceptions
- In ASP. NET, MVC calls the JsonResult method using AJAX and returns a custom error message.
- Asp.net error: 0x8007000B exception Solution