It’s used in the project ASP.NET MVC, deployed in the server’s IIS. When deploying the new version, the following exception was thrown.
Solution: 1. If you can log in to the server, restart the corresponding website in IIS. 2. If you can’t log in to the server and deploy through FTP, you need to delete the previous file first, and then upload a new file instead of directly uploading a new file to cover the original file.
The problems are analyzed as follows:
This website is deployed in the IIS site on the server. Developers have no permission to log in to this server, and can only deploy remotely through FTP. In the normal operation of the website, we uploaded the_ Layout.cshtml File to replace the original file, immediately threw an exception. The analysis may be due to the conflict between IIS and application worker process after loading the new cshtml file and the previous version of its cache. The solution is to delete the old one completely first_ Layout.cshtml At this time, an exception will be thrown to the page, and the new file will not be found_ Layout.cshtml File, and then re access, everything is normal.
Read More:
- Getoutputstream() has already been called for this response
- When feign is called, the solution of request method ‘post’ not supported appears
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- Debug error: abort() has been called error causes and Solutions
- TypeError: object of type ‘builtin_function_or_method’ has no len()
- Eclipse run main method error: a JNI error has occurred, please check your installation and try again
- “Method does not override method from its superclass”
- Difference between isempty method and isblank method in stringutils
- Error in loadNamespace(name) : there is no package called ‘yaml’
- RuntimeError: cudnn RNN backward can only be called in training mode
- Error occurred when Python called cv2.findcontours: valueerror: not enough values to unpack (expected 3, got 2)
- C++: terminate called after throwing an instance of ‘std::length_error‘ (sort function cmp sorting rules problem)
- How to Fix distributed training report terminate called after throwing an instance of’std::length_error’
- Solve the problem that power view in Excel prompts activate method of oleobject class failed or activate method like oleobject is invalid
- R language error error: n() should only be called in a data context
- Runtime error: terminate called after throwing an instance of ‘STD:: Logic_ error’
- c++ terminate called after throwing an instance of ‘std::system_error‘ what(): Unknown error -1
- Python – get the information of calling function from called function
- Solve the error in Ubuntu 18.04: called “net usershare info” but it failed: failed to execute child process “net”
- Override the equals method and override the toString method