iis express path for global theme directory
Asked Answered
A

2

4

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).

For information :

  • With IIS 5.0/6.0 the global theme path is : C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\Themes

  • With Cassini (ASP.NET Development Server) the global theme path is : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\Themes

Annam answered 26/3, 2011 at 19:23 Comment(1)
I opened a topic on IIS forum but I'm still looking for an answer : forums.iis.net/p/1176796/1976366.aspx#1976366Annam
N
1

This question was answered on the IIS forum. The answer is included below.

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.

Navaho answered 15/4, 2011 at 15:59 Comment(1)
Yes, I created the topic on IIS forum but the answer is incomplete. I added a virtual directory in "applicationhost.config" (<virtualDirectory path="/aspnet_client" physicalPath="C:\Inetpub\wwwroot\aspnet_client" />) but I can't create a virtual directory available for all WebSites in IIS Express.Annam
B
0

Copy your theme files under the framework folder.

For example:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\Themes\MyTheme
Breakable answered 26/11, 2013 at 10:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.