(I already asked the question on stackoverflow : http://stackoverflow.com/questions/5444720/iis-express-path-for-global-theme-directory :
but somebody on this forum may know the answer).
<div class="post-text">
I'm using Visual Studio 2010 SP1, ASP.NET Webforms, Framework .NET 3.5 and
IIS Express (also called WebMatrix).
I get the following compilation error in Visual Studio with my WebSite :
Theme 'MySweetyTheme' cannot be found in the application or global theme directories.
Do you know where the global theme directories is located with IIS Express ?
(My favorite search engine seems unfriendly this time).
Hello, I suggest if your using Web Martix look or search starting at user documents and Web Sites. the common location on the system is C: \ User \ User Name \ Documents \ WebSites \ other files. the common location on the system is C: \ Documents Settings
\ User Name \ local setttings \ Documents \ WebSites \ other files. The IIS Express will start to build sites or extend sites from where ever the WebSites folder exists on the system. I hope this helps. If your using Visual Studio Web Developer to open sites
then use the WebSites folder as a start. Be sure to launch the Visual Web Developer from the IIS Express or code changes may break your Web Site. I Hope this helps, Martin
Windows and Linux work Together IT-Pros
Community Member Award 2011
My application isn't located in "My documents\My WebSites" because I clicked "Use IIS Express..." in Visual Studio 2010. My application is located in "C:\Workspace\...".
(Of course, I can put MySweetyTheme in the App_Themes folder of my application but I want to share these theme between several applications).
=> So, I'm still looking for a solution.
I looked at "applicationhost.config" and "aspnet.config" in "My Documents\IIS Express" but without any success.
IIS Express will search themes located in [SiteRootPath]\aspnet_client\system_web\[version]\Themes directory, the SiteRootPath is physical path of the root application, version is .NetFramwork version. Sub applications will be able to share themes in that
directory.
Hope helps, thanks.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
Ubikuity
3 Posts
iis express path for global theme directory
Mar 27, 2011 12:16 AM|LINK
(I already asked the question on stackoverflow : http://stackoverflow.com/questions/5444720/iis-express-path-for-global-theme-directory :
<div class="post-text">but somebody on this forum may know the answer).
I'm using Visual Studio 2010 SP1, ASP.NET Webforms, Framework .NET 3.5 and IIS Express (also called WebMatrix).
I get the following compilation error in Visual Studio with my WebSite :
Do you know where the global theme directories is located with IIS Express ?
(My favorite search engine seems unfriendly this time).
For information :
-
-
</div>With IIS 5.0/6.0 the global theme path is :
With Cassini (ASP.NET Development Server) the global theme path is :
WebMatrix IIS Express theme asp.net v3.5
HCamper
8048 Posts
Re: iis express path for global theme directory
Mar 27, 2011 12:57 PM|LINK
Community Member Award 2011
Ubikuity
3 Posts
Re: iis express path for global theme directory
Mar 27, 2011 01:24 PM|LINK
My application isn't located in "My documents\My WebSites" because I clicked "Use IIS Express..." in Visual Studio 2010. My application is located in "C:\Workspace\...".
(Of course, I can put MySweetyTheme in the App_Themes folder of my application but I want to share these theme between several applications).
=> So, I'm still looking for a solution.
System.Web.Compilation.ThemeDirectoryCompiler.GetGlobalThemeVirtualDir(string theme)
System.Web.Compilation.BuildManager.ScriptVirtualDir.SimpleCombineWithDir(string theme)
And with the debugger, I found that :
AppRelativeVirtualPathString = "~/aspnet_client/system_web/2_0_50727/Themes/MySweetyTheme/"
=> How to "plug" that virtual path in IIS Express ?
HCamper
8048 Posts
Re: iis express path for global theme directory
Mar 27, 2011 03:53 PM|LINK
Hello,
Ok. Then your question really is how to use the built-in API for Web Matrix
to properly insert theme file and location so that both Web Site and Web Matrix have shared access.
This method "I looked at "applicationhost.config" and "aspnet.config" is really hard way to get this working.
How about a simple way of using what is part of the Editor using @ Tag and Web Matrix API.
The Web Martix has a number of @ Tag Functions offered your look at the Web Matrix Site or Use the Razor Boozk.
The Web Martix API of @ { Name, content } might work as an example.
It might take a bit of trial & test to see what works.
You might find the answer at the Web Matrix Forum.
I hope this helps,
Martin
Community Member Award 2011
Leo Tang - M...
4161 Posts
Microsoft
Re: iis express path for global theme directory
Mar 30, 2011 09:56 AM|LINK
Hi,
IIS Express will search themes located in [SiteRootPath]\aspnet_client\system_web\[version]\Themes directory, the SiteRootPath is physical path of the root application, version is .NetFramwork version. Sub applications will be able to share themes in that directory.
Hope helps, thanks.
Feedback to us
Develop and promote your apps in Windows Store
Ubikuity
3 Posts
Re: iis express path for global theme directory
Apr 27, 2011 03:54 PM|LINK