Jano's Software Ramblings
Code & Pray from Monterrey

Hosting Apps in Virtual Directories in Godaddy

September 10, 2007 03:43 by Jano

Usually at work I built new Web applications everytime I have add a new server. Unfortunately, with GoDaddy Hosting(or any as a matter of fact) you have to work with virtual directories. Right now I have been using blogengine.net as my blog application, why? because I hate how GoDaddy works with the database and I cannot be bothered to work with it anymore, so I got lucky and found that BlogEngine.net that works purely with files. Then I decided to add a wiki to my hosting so that I could work with my master's Liderazgo para el Desarrollo Sostenible team. I wanted to build a wiki so that we can easily work together, and share information about energy savings. Then I found screwTurn wiki, and I was really happy to find out that it can also work exclusively with files. So I tested it in my local machine, made it work and uploaded it to the server. Then I tried to start the server at energy.janosoft.com and the installation failed miserably. I receive an error message that seemed to be related to the app trying to upload the settings from the base application (in this case it was bloglines.net application). I initially tought that it was a bug at Godaddy setting the root but when I removed I found an error that was definately relating to the missing root. So I googled around and found the sneaky poorly documented answer to my prayers. Asp.net applications settings are automatically inherited to children virtual directories. Can we stop this? yes we can you just need to enclose the system.web tag with a location tag and set the inheritInChildApplications attribute to false. This attribute doesn't even appear in the Visual Studio 2005 intellisense. So you get something like:

<location inheritInChildApplications="false">

    <system.web>

    .

    .

    </system.web> 

</location> 

 

I have to thanks Rick Strahl's Weblog  for the solution.  


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments are closed