BUG: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
I did web sharing of the published folder and try to run the published site.
Using http://localhost/myweb/default.aspx
It shows error
“An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.”
There is no bug in the code, when tried to execute this code in debug mode it worked fine.
Cause of the Issue:
Visual Studio uses dotNET framework 2.0 to run the application / site and when you publish the site and make the folder as web shared from Properties > Web Sharing > MySite , it takes reference of ASP.NET 1.1.4437 by default to run the application.
Solution:
To resolve the error follow the steps:
Open you Internet Information Server (IIS).
Navigate to your web site.
Open the properties of your website.
Select “ASP.NET” and select asp.net version as 2.0.50727.
Click OK and you are done.
Refresh the page and your application/website will work.
No comments:
Post a Comment