IIS - not able to run website via IIS the following error occusrs

Asked By koteswara rao arvapalli on 15-Mar-12 06:54 AM
not able to run website via IIS the following error occusrs
Danasegarane Arunachalam replied to koteswara rao arvapalli on 15-Mar-12 07:43 AM
This error means that the ASP.Net Engine does not have the proper read/write access for the folder

1.Open the folder
2. Move one folder folder up
3.Right Click --> Choose Properties
3.Under Security Give the Full rights for the System user Group


Somesh Yadav replied to koteswara rao arvapalli on 15-Mar-12 07:46 AM
Solution

1. Set the custom error mode to "Off" to view the error. After rectifying it and before deployment, change it to "On" and specify a default error page, as follows:-

<customErrors defaultRedirect="ErrorPage.aspx" mode="On">

</customErrors>

such that your users will not be able to see the actual error and get your friendly error page where you can politely say "An error has occured! Sorry for the inconvenience ..." .

2. If the above solution is not working (i.e. even after setting the custom error mode to On, the same "Server Error" occurs, then the likely chance is that your web.config file is not well formed and has invalid characters etc.,

To resolve, it copy paste the contents of the file to a notepad, save it as an xml file and try to browse the xml file in the browser. If the xml file is unable to be rendered by the browser and throws error, then you can find the place where the tags are not well formed or invalid character(s) exist and rectify them.

Things worth noting is Web.config is case sensitive and even trailing / leading spaces can cause the above error.
dipa ahuja replied to koteswara rao arvapalli on 15-Mar-12 07:48 AM
Delete the temp files from your website. All files which have extension .tmp