Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
770 views
in Technique[技术] by (71.8m points)

asp.net - HTTP 500 Internal Error - IIS websites

I have installed SP 2010 in a Windows Server 2008 R2 loaded environment. I have been using VS 2010 for developing application pages for SP 2010.

I make use of wsp builder to package all my dlls, pages, scripts and images into a solution package and deploy it in the web applications.

Everything was working like a charm. I started enduring a torrid time when all of a sudden my web applications started popping up with 'HTTP 500 Internal Server Error'. This started happening after I made some drastic changes in my application pages and deployed it.

I tried creating new web applications but its not doing me any good. Any insights on what could be the source of this issue?

Regards, Raghuraman.V

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Fixed this problem by editing the Web.config and applicationhost.config. C:Users\DocumentsIISExpressconfig or right click the IIS Express icon on the tray and view all application and click the desired website and then click the configuration file link.

Comment out

<error statusCode="500" prefixLanguageFilePath="%IIS_BIN%custerr" path="500.htm" />

Set the parent node to <httpErrors errorMode="DetailedLocalOnly"

Set the httpErrors to Allow

<section name="httpErrors" overrideModeDefault="Allow" />

Change your web project web.config HttpErrors

<httpErrors errorMode="Custom" existingResponse="Auto">

That should fix it, its basically saying that "I dont want IIS Express to override the configuration of my site".


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...