问题描述
我想这一点。我建立了asp.net网站。
当我通过发布VS2008到IIS它工作正常。
比方说我的网站是在C:\\项目\\ WEBSITE1 \\
我想将其发布到c:\\的Inetpub \\ wwwroot的\\ WebsiteOne
I am trying this. I have built asp.net website.When I publish to IIS through VS2008 it works fine.Lets say my site is at c:\projects\Website1\I want to publish it to c:\Inetpub\wwwroot\WebsiteOne
我试图模仿从工作室发布。这是发布和删除任何在身边。
I am trying to mimic publish from studio. That is publish and remove anything that is in side.
我试过这样:
aspnet_compiler -v / WebsiteOne -f C:\\的Inetpub \\ wwwroot的\\ WebsiteOne
I tried this:aspnet_compiler -v/WebsiteOne -f c:\Inetpub\wwwroot\WebsiteOne
错误:
错误ASPRUNTIME:在precompilation目标目录(C:\\的Inetpub \\ wwwroot的\\ WebsiteOne)不能在相同的树源应用程序目录(C:\\的Inetpub \\ wwwroot的\\ WebsiteOne)。
Error:error ASPRUNTIME: The precompilation target directory (c:\Inetpub\wwwroot\WebsiteOne) cannot be in the same tree as the source application directory (c:\inetpub\wwwroot\WebsiteOne).
当我尝试这样做:
aspnet_compiler -v / WebsiteOne
When I tried this:aspnet_compiler -v/WebsiteOne
我得到错误此应用程序已经是precompiled。
I get error This application is already precompiled.
任何人谁可以给我就怎么做编译行建设和网站发布见识
Anyone who could give me an insight on how to do compile line building and publishing of website
感谢
推荐答案
我在此期间解决了这个问题。你只需要通过物理路径,因为它拿起从IIS中
I solved the problem in meantime. You just need to pass the physical path, because it picks up one from IIS
aspnet_compiler -v/WebsiteOne -p c:\projects\Website1 -f c:\Inetpub\wwwroot\WebsiteOne
在情况下,别人遇到了同样的问题。
in case someone else encountered same problem..
这篇关于试图建立并使用aspnet_compiler命令行发布Asp.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!