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开发者_JAVA技巧\Themes
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.
Copy your theme files under the framework folder.
For example:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\Themes\MyTheme
精彩评论