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.
- Installing Win7
- Install VS2010, where VS2010 comes with the. Net 4.0 runtime.
- With IIS enabled, it may be the ultimate version that comes with IIS and no other versions have tried.
- 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.
- Browse
- 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:
- Start, enter the cmd word in the lookup box, and then the Cmd.exe application appears
- Right-click on Cmd.exe and select Run as Administrator.
- 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
- This time, we see that in IIS, the 4.0 runtime supports registration success.
- 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!