Geeks With Blogs
Joel Ross

I've harped on Visual Studio 2005's website projects quite a bit lately, and I'm going to move to the web application model now that it's been officially released. But, I did want to talk about one last issue I've seen, because it's a doozy.

Some background: We have three projects that we're building and deploying. One is at the root of the website, and the other are sub applications (virtual directories) under the root. Of the two sub applications, one was set to compile all of the code into one DLL, and one was left like it was - compiling each code file into a randomly named DLL. The root site used the default compilation, but that part didn't seem to matter, because we changed that to compile to one DLL and still had the same issue that I'm going to lay out.

Basically, whenever the root application was deployed, it broke the sub application that used the default compilation model. We got errors saying it couldn't find the necessary DLLs. The sub app would remain broken until I uploaded the same exact files again. I don't know if this is a problem with ASP.NET 2.0, something we were doing, or possibly WebHost4Life's shared hosting environment.

What led us to fault the default compilation model? Well, the other sub application was unaffected by deployments of the root application. So our solution was to switch the problematic sub application to compile to one DLL. Once we did that, our issues went away, and I stopped trying to figure out what was going on. But if you ever run into this, now you'll know how to fix it!

Technorati Tags: | |

Posted on Friday, March 24, 2006 8:13 PM | Back to top


Comments on this post: A Possible Issue With Website Deployment in Visual Studio 2005?

# re: A Possible Issue With Website Deployment in Visual Studio 2005?
Requesting Gravatar...
Could you tell me how to modify or find the location where VS2005 creates the dlls for a website project? Can you specify a name or does it take on a default name?
Left by Sucheta on May 16, 2006 8:30 PM

# re: A Possible Issue With Website Deployment in Visual Studio 2005?
Requesting Gravatar...
Sucheta,

Website projets do not create a single DLL. By default, each page file has it's own DLL and the names are random. You can tell it to create a reproduceable name for each DLL, and using a website deployment project, you can tell it to create one dll, named whatever you want it to be.
Left by Joel Ross on May 16, 2006 8:48 PM

Your comment:
 (will show your gravatar)


Copyright © Joel Ross | Powered by: GeeksWithBlogs.net