iis express path for global theme directory

别说谁变了你拦得住时间么 提交于 2019-12-07 06:58:20

问题


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


回答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.




回答2:


Copy your theme files under the framework folder.

For example:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETClientFiles\Themes\MyTheme


来源:https://stackoverflow.com/questions/5444720/iis-express-path-for-global-theme-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!