Last post Oct 18, 2007 02:42 PM by RTernier
Oct 18, 2007 01:42 PM|uwillmore|LINK
My question is really quite simple. How to I get a web deployment project to copy files to a directory under the default root but NOT in my application folder? Let me explain real quick with some specifics.
I have a theme for my ASP.NET 2.0 web applications and I want all applications on the server to use the same theme. Of course I don't want the files for the theme to be copied to every virtual directory/application because that would mean I have too maintain
multiple copies of the theme and that is a maintenance night mare. Of course, the is an easy way to make a theme available to all applications in a web site. I just have to copy the files to the directory where IIS looks for them and that directory is:
I just need to create a folder called Themes in the above directory and then copy my theme files into that directory. All the theme files are in one directory and the name of that directory is the name of the theme. So if I want a global theme call MyFirstTheme
I need to place my style sheet and skin into the following directory
IIS looks for a theme in %IISDefaultRoot%\aspnet_client\system_web\2_0_50727 and if it can't find a theme called MyFirstThem there it looks in the applications dfirectory for a App_themes folder. If the MyFirstTheme is not found there either you get an
That was all pretty straight forward until I started building my web deployment project. I could not and still can't figure out how to set up a folder using the File System Viewer that will copy the theme to the directory shown above. The best I could do
was to copy the file to the application directory, which is of course wrong. I tried using a custom folder and a default location of [TARGETDIR], which I thought was set to the default website folder C:\Inetpub\wwwroot\ or D:\Inetpubwwwroot depending on which
drive is used for the web site. But that did not work either. It seems [TARGETDIR] is set to the application directory because when the install finished my theme was located in
Does anyone know how to do what I am trying to do?
I posted in the Master Pages, 'Themes and Navigation Controls' forum yesterday, but have received only one reply which was incorrect. I am hoping I'll have better luck getting an answer from this forum, since my problem is really
more of a deployment issue.
I look forward to your reply
VS 2005 Web Deployment Projects
"Web Deployment Project"
Oct 18, 2007 02:19 PM|RTernier|LINK
Oct 18, 2007 02:39 PM|uwillmore|LINK
I know that.
What I don't know is how to deploy to the global theme directory <IISDefaultRoot>\aspnet_client\system_web\2_0_50727\Themes using a Web Deployment project.
Oct 18, 2007 02:42 PM|RTernier|LINK
Create a batch file that does it, and get your deployment project to call the batch file.
(a .bat file).