开发者

Publishing .Net projects to a subdirectory

开发者 https://www.devze.com 2023-01-12 15:24 出处:网络
I have a project (开发者_开发百科.NET 3.5 C#) that works fine on the local machine and works fine when I publish to the root directory of the server but fails when I publish it to a subdirectory on th

I have a project (开发者_开发百科.NET 3.5 C#) that works fine on the local machine and works fine when I publish to the root directory of the server but fails when I publish it to a subdirectory on the server. Is there some sort of setting that I have to change to put it on a subdirectory?

Same thing for both web services and a web site in asp.net


You must set that sub directory to an application in IIS (pretty simple, I promise). Here is an MSDN article detailing the steps that you need to take for this to work (IIS 6).

http://msdn.microsoft.com/en-us/library/ha2y9493.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消