Sunday, May 31, 2009

No web.config found inside the latest release of DotNetNuke

If you have downloaded the latest version of DotNetNuke to play with it,and you have done all setup things correct still if you run the website then an error is thrown which says

Could not find file "c:\inetpub\wwwroot\DotNetNuke\web.config".

Exception Details: System.IO.FileNotFoundException: Could not find file "c:\inetpub\wwwroot\DotNetNuke\web.config".

Source Error:

Line 44:             ' open the web.config file
Line 45:             Dim xmlDoc As New XmlDocument
Line 46:             xmlDoc.Load(Common.Globals.ApplicationMapPath & "\web.config")
Line 47:             Return xmlDoc
Line 48:         End Function

This error is simply thrown as there is no web.config file inside the download if you have done whole source download.

This is because there are two other files called development.config and release.config

So the solution is just rename any of these files to web.config and you are done and ready to run your DotNetNuke installation.

Happy Programming!!!!!!!!!!!!!!!!!!!


Post a Comment