Debug. Net 4.0 Web site in IIS7.5 500 error resolution (RPM)

Source: Internet
Author: User

The II7 DLL has just been deployed with x86 write, the following problems will occur

IIS 7 x86,could not load file or assembly ' Name ' or one of the ITS Dependenci es. An attempt is made to load a program with an incorrect format.

To fix this, just set up the IIS compatible x86 program on it, the steps:

1. Start-to-run

2.

3. Advanced settings, enable 32-bit applications is set to true.

Posted @ 2010-12-11 13:52 Little White Sheep Read (39) Comment (0) Edit

Debugging the. Net 4.0 Web site in the Win7 flagship version of IIS7.5 the solution to the error is not to say the reason, only to say the phenomenon.
    1. Installing Win7
    2. Install VS2010, where VS2010 comes with the. Net 4.0 runtime.
    3. With IIS enabled, it may be the ultimate version that comes with IIS and no other versions have tried.
    4. In IIS, in the new Web site, in the application pool, set the Web site to use the. NET Framework v4.0 Run-time library.
    5. Browse
    6. IE reported a 500 server error.

There is no problem with making sure that the site has no problems with the debug server that comes with vs. Therefore, an estimate is an IIS setup issue. Later, after the query, because I installed the system when the VS2010, and then enable IIS, so that. NET 4 is not registered in IIS, the Win7 comes with IIS only support. NET 2.0. Therefore, a manual registration is required.

The registration steps are as follows:

    1. Start, enter the cmd word in the lookup box, and then the Cmd.exe application appears
    2. Right-click on Cmd.exe and select Run as Administrator.
    3. Paste the following command into the Command Line window and enter to complete the registration.
      "%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe"-iru-enable
    4. This time, we see that in IIS, the 4.0 runtime supports registration success.
    5. Refresh IE, the site is out of normal.

Posted @ 2010-12-11 12:25 Little white Sheep Read (150) Comment (0) Edit

Unrecognized attribute "targetframework"---solution after you install VS2010, the following error appears under IIS (7.0) when you apply the. NET Framework 4-Created web site:

The version information tells us that both the. NET Framework and the ASP. NET Framework is 2.0, and when we make the Web site, the Web is used with the.

WIN7 Open Control Panel-Administrative Tools--internet Information Services (IIS) Manager, select the Default Web site, in the "Manage Web Site" section on the right, select "Advanced Settings ..." and modify the application pool to "ASP. NET V4.0" as shown in:

Now enter localhost in the browser, the problem should be solved!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.