次の方法で共有


Error while Publishing from Visual Studio 2005

Problem Description

Issues when you try to Publish your website from Visual Studio 2005. It might happen if you create a File System project called <someName> and while publishing you use the same name in IIS.

To reproduce this issue, create a simple File System based solution...

image

Go ahead and build the project and everything should be just fine. Then you need to publish this on IIS... (Junk in my case), you will see the following error message.

image

"You must choose a publish location that is not a sub-folder of the source Web Site".

The weird part of it is that, you will be able to create the Virtual Folder called Junk using the Create New Web Application button as can be seen below, but when you try to Publish the project, you won't be able to (as can be seen in the screen shot above).

image 

"Not good" is what you might say, and I won't differ much. In fact, if you try using Junk1, it would fail too. Now, try with MyJunk (or any other name that doesn't start with Junk). That should work and the Publish should succeed.

It is a product limitation and my preferred workaround for this particular issue is to use https://<serverName>/Junk and publish.

Hope this helps,
Rahul

Quote of the day:
Everyone is entitled to be stupid, but some abuse the privilege. - Unknown

Comments

  • Anonymous
    February 07, 2008
    PingBack from http://www.biosensorab.org/2008/02/07/error-while-publishing-from-visual-studio-2005/

  • Anonymous
    February 22, 2009
    Hi All, I have completed a VB.NET app .its working very fine from vs2005. Now I am trying to publishing app. My problem is that i got an error when i tried to run exe.I was using five VB6 dll in my app. 1)AxInterop.MSChart20Lib.dll.deploy 2)AxInterop.MSComctlLib.dll.deploy 3)Interop.MSChart20Lib.dll.deploy 4)Interop.MSFlexGridLib.dll.deploy 5)Interop.Scripting.dll.deploy 6)msmdvbanet.dll.deploy I dont know how i can debug this issue.Could anyone offer a solution to this problem? Thanks in advance Regards, Sajesh