开发者

WCF Server Application Unavailable - how to run application written in .NET4.0 (IIS6+)

开发者 https://www.devze.com 2023-01-22 09:29 出处:网络
I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6. I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I al

I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6.

I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I also changed all possible httpHandlers (svc etc), to run with NET4.0. All possible rights are checked (i think so).

Almost every request results in "Server Application Unavailable" (sometimes it is empty page with -2146232576 (0x80131700) value) and "...Please review 开发者_Go百科this log entry to discover what caused this error to occur." but EventViewer and IIS Log are empty.

Any ideas? Where to find error details?


Do you run any 2.0 apps on the same server? If yes it could be the issue in case they bot use the same application pool. The application tool itself doesn't have any .NET version setting, it's per virtual directory (application). But you can't use the same application pool to run applications with different versions of .NET Framework apps.


Create two seperate app pools one for your CLR 2.0 and CLR 4.0, the older clr can not host both CLRs, there was a similar issue with 1.1 and 2.0.

cheers


A little bit old question, but still could help someone...

If you installed the higher .NET f/w recently, check, if your apps written for lower versions of .NET f/w were not (automatically) moved to new app pool for the higher f/w. Many years ago something similar happenned to me after f/w 3.5 installation. Then my 3.5 application worked fine, but after any of the 2.0 apps was firstly called, the app pool crashed. Needed to move every app to corresponding app pool.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号