In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what to do when debugging .net 4. 0 website in IIS7.5. I hope you will get something after reading this article. Let's discuss it together.
The dll that has just deployed ii7 is written by x86, and there will be the following problems
Iis 7 x86 could not load file or assembly 'Name' or one of its dependencies. Http://www.iis7.com/b/ssyqdq/ An attempt was made to load a program with an incorrect format.
To solve this problem, just set up an iis compatible x86 program. The specific steps are as follows:
1. Start-> run
two。
3. Advanced settings, Enable 32-Bit Applications set to True on it.
In the Win7 flagship version of the built-in IIS7.5 debugging. Net 4.0 website Wulitou 500 error solution does not say the cause, only the phenomenon.
Install Win7 install VS2010, where VS2010 comes with the. Net 4. 0 runtime. Enable the built-in IIS feature. It may be the flagship version that comes with IIS. Other versions have not been tried. Create a new Web site in IIS, and in the application pool, set the site to use the .NET Framework v4.0 runtime.
Browse
IE reported a 500 server error.
Because there is no problem with determining that the site uses the debugging server that comes with VS, there will be no error. So, it's probably a problem with the IIS setting. Later, after querying, the reason is that, because I installed VS2010 before enabling IIS when I installed the system, in that case, NET 4 is not registered with IIS, and the IIS that comes with the Win7 only supports .NET 2.0. Therefore, you need to register manually.
The registration steps are as follows:
Start by typing the word cmd in the search box, and then the cmd.exe application appears
Right-click on cmd.exe and select to run as an administrator.
Paste the following command into the command line window, enter, and complete the registration.
"% WINDIR%\ Microsoft.NET\ Framework\ v4.0.30319\ aspnet_regiis.exe"-iru-enable at this time, we see that the 4.0 runtime supports registration successfully in IIS.
Refresh IE, the website is coming out normally.
Unrecognized attribute "targetFramework"-the solution after installing VS2010, the following error occurs when a website created with .NET Framework 4 is placed under IIS (7. 0):
The version Information tells us that both the .NET Framework and ASP.NET are version 2.0, and we use .NET Framework 4.0 when we make the website, so we must set the .NET Framework property of the website to 4.0.
Under Win7, open the Control Panel-Administrative tools-Internet Information Services (IIS) Manager, select the default website, and select "Advanced Settings" in the "manage Web sites" column on the right. To change the application pool to ASP.NET v4.0, as shown in the following figure:
Now type localhost in the browser, and the problem should be solved.
After reading this article, I believe you have a certain understanding of "debugging in IIS7.5. Net 4.0 site appears nonsense, 500 errors", if you want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.