views:

20

answers:

2

We have a shared drive where web applications are published to. When I attempt to publish I get the following error:

------ Publish started: Project: XXX.Web, Configuration: Release Any CPU ------
Connecting to T:\WebSites\XXX\...
Unable to create the Web site 'T:\WebSites\XXX'.  The path 'T:\WebSites\XXX' does not exist or you do not have access. The system cannot find the path specified.

Details

  • OS: Windows 7
  • IDE: Visual Studio 2008 (running as administrator)
  • Path exists? Yup.

I assume it's some permissions issue, but I have no idea where to start.

+2  A: 

There are two points of check.

  1. Share permissions.
  2. File permissions.

You can both found on the remote computer, right click on the folder name -> permissions, and you see the Sharing and the Security tab. Change them, to left you write.

Help: how to share files:
http://www.howtogeek.com/howto/windows-7/share-files-and-printers-in-windows-7-with-homegroup/

and a video tutorial about :
http://www.youtube.com/watch?v=BWB9pu1T2dQ

Video tutorial for share folder base on my answer
http://www.youtube.com/watch?v=OomgNBAv0hI&feature=related

Aristos
I can browse to the folder and add, edit and delete files without issue. The directory is certainly shared. Perhaps the issue is that Visual Studio isn't using my domain account when its attempting to publish to this directory?
Evil Pigeon
@Evil Pigeon Well if you can do that, then maybe is something diferent... I do not know, but in this case I use the FileMonitor from sysinternals to see whats try to open and fail.
Aristos
Thanks for the help, looking at process monitor it doesn't show anything when attempting to publish. Perhaps Visual Studio 2008 simply doesn't recognise mapped drives in Windows 7?
Evil Pigeon
+1  A: 

When you say administrator I will assume that you are an administrator to both the computer and the server containing the mapped drive. If that is the case then,

You might want to give this a shot:

To resolve this problem, add a MIME type for the .tmp file in IIS. To do so, follow these steps: In Control Panel, open Administrative Tools, and then double-click Internet Information Services. Expand the (local computer) node, and then expand Web Sites. Right-click Default Web Site, and then click Properties. In Default Web Site Properties, click the HTTP Headers Tab. Click MIME Types. In MIME Types, click New to register a file extension. In the Extension textbox, type .tmp . In the MIME Type textbox, type temp. Click OK.

http://support.microsoft.com/kb/817264

jangeador
Sorry, but this didn't work. Also, I had to type "application/temp" in the MIME Type textbox when adding mime types in IIS. This is IIS 7.5 by the way. Does IIS have anything to do with publishing from visual studio? This might get me on the right track.
Evil Pigeon
If you were debugging on the remote server IIS would be involved. Since you are only publishing to a mapped drive it shouldn't be the problem. Are you mapping the drive using explicit user credentials? net use T: \\WebServer\Folder /user:DOMAIN\Username
jangeador
The drive isn't mapped to a specific user (automatic logon script for all domain users). I was able to successfully publish using the UNC path \\SomeLocalServer\WebSites\XXX, so it's definitely something to do with the mapped drive. I am able to publish to T:\ with XP, it looks like Windows 7 is throwing a spanner in the works.
Evil Pigeon
Good thing that you found a workaround. Have you tried to run Windows 7 As Administrator and see if that makes a difference.
jangeador