In deployment ASP.NET When the website is deployed to IIS, visit the page http://localhost/UserCenter/user.aspx , but an exception was thrown. At this time, to detect whether the deployment is successful, you can write a text file for testing in the root directory text.txt , and then access the file http://localhost/UserCenter/test.txt If you can see the contents of this file, it means that there is no problem with the deployment. Maybe there is a problem with the code.
Abnormal prompt:
HTTP error 404.3 – not found
the page you are asking cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a mime map.
abnormal screenshot
The reason for this problem is that there are multiple. Net versions on the machine, so there are multiple ASP.NET Version. Now our application pool is in version 4.0, but this version is not registered in IIS, so this error is reported. Now what we need to do is register the 4.0 ASP.NET Version. In C: windows\ Microsoft.NET \Find IIS registration tools, namely aspnet, in the directory of framework64/v4.0.xxxx_ regiis.exe Then start it in the form of a DOS window, aspnet_ Regiis – I refer to MSDN for details http://msdn.microsoft.com/en-us/library/k6h9cz8h%28VS.80%29.aspx
Running results
At this point, restart the application pool and website, and you can see the normal ASPX rendered page.
Read More:
- [Solved] This application has no explicit mapping for /error, so you are seeing this as a fallback
- Git Error: please tell me who you are [How to Solve]
- This application has no explicit mapping for /error, so you are seeing this as a fallback.
- [Solved] Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this
- [Solved] SpringBoot Error: This application has no explicit mapping for /error, so you are seeing this
- [Solved] Wepy build watch Error: ERR! Parse WePY config failed. Are you trying to use
- The URL is timestamped to avoid caching problems when requesting the current path again
- IIS 404 The page cannot be displayed because an internal server error has occurred
- Redis Cluster Error: (error) CLUSTERDOWN Hash slot not served
- Filezilla Error: You appear to be behind a NAT router. Please configure the passive mode settings and …
- [Solved] Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are “development”, “test”, and “production”. Instead, received: undefined.
- [Solved] Opencv Compile Error: (CMake Error: The following variables are used in this project, but they are set to not)
- [Solved] CMake error: error in configuration process, project files may be invalid
- [Solved] Spark Error: org.apache.spark.SparkException: A master URL must be set in your configuration
- Proguard Packaging Error: You have to specify ‘-keep‘ options if you want to write out kept elements with ‘-print
- Solve chrome running error unknown error: cannot get automation extension
- [Solved] The Ruby zlib extension was not compiled
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- Nginx: How to Use Error_Page
- [Solved] Xcode13.1 Upgrade Error: CocoaPods installed but not working Failed to build gem native extension