I have been using VS 2010's Copy Web Site a lot to publish my sites to a Windows 2008 Server. I have now got a new PC (Win7) with VS 2012 installed, and moved my sites/projects to this new PC. But I can't get the Copy Web Site to work here. I always receive error:
The ~/ directory does not exist
There is no problem to connect to the same directory via Windows Explore FTP. I have tried to remove the cache from WebsiteCashe, but no help. Any ideas?
Related
I used to be able to open an FTP website in Visual Studio 2012 until recently when it stopped working correctly. I can connect to my server using FTP and I get the full folder list of my servers websites, but attempting to open any file in any of the folders (asp.x,aspx.vb etc) Visual Studio just hangs - has anyone else experienced this, and if so how was it resolved?
Thanks.
I had the same problem today. I've installed Visual Studio updates (through visual studio update checker) and everything works fine now
I have updated visual studio 2012 last night, this was Visual Studio 2012 Update 4. It was working fine before but now i am unable to connect with tfs server. Please let me know what i am doing wrong?
This is the error:
TF400324: Team Foundation services are not available from server https://myServer.visualstudio.com/defaultcollection.
Technical information (for administrator):
Unable to connect to the remote server
try clearing your cache folder?
C:\Users\XXXX\AppData\Local\Microsoft\Team Foundation
TFS3 is VS2010, TFS4 is VS2012, TFS5 is VS2013
Stop all instances of Visual Studio.
Zip/Rar all the files as a backup, then delete all files except for the backup zip/rar.
Restart Visual Studio and it will recreate all the files and you should be able to connect as shown here:
I followed this steps to get rid of this issue:
Close all instances of Visual Studio.
Open the Task Manager and check if any TFS Services are running. Select each of them and click on End Process Tree.
Browse to the folder below and delete all the contents and folders in
%LocalAppData%\Microsoft\Team Foundation\4.0\Cache
and in
%LocalAppData%\Microsoft\Team Foundation\5.0\Cache
Restart Visual Studio and try triggering build.
If you are switching from one version of TFS to another, you may require repeating this solution again. If you are using older version of TFS, you may have to navigate to
%LocalAppData%\Microsoft\Team Foundation\
and find out the version folder instead of navigating directly. It would be
TFS3 if using VS2010, TFS4 if using VS2012, TFS5 if using VS2013.
Source: TF400324: Team Foundation Services are not available from server
In my case clearing of cache folders didn't work out.
What I also did is enabling SSL in IIS for Team Foundation Server.
Hopefully, StartSSL.com can offer it for free.
Step by step:
On server side:
Cleare cache folders like it described above;
Get the SSL following procedure described here;
Enable SSL for Team foundation server in IIS (netmgr);
Check if your TFS server is available over https (check link https://tfs.your-server, the certificate should be valid and page opened without any warnings);
On client side:
Remove all TFS servers in Visual Studio;
Add your TFS server connection with HTTPS (not HTTP).
Now you are able to work with VS-TFS link.
If the above methods don't work, and in the Output tab shows you have to contact the server administrator, then the TFS is actually down and you are disconnected to it.
I know this is an old thread but the problem still appeared in VS 2013 and TFS 2013.
In my case the IIS on the server side was not running. After starting it VS could immediate connect again.
I copied my project over to another computer to open it and in visual studio and got this error:
http://localhost:51278 : error : Error opening web http://localhost:51278. The Web site 'http://localhost:51278' could not be found.
I have looked on the link here stated in other answers: http://support.microsoft.com/kb/326497
But I fail since I cant find a (Projectname.vbproj.webinfo) File, all I have is a .SLN File.
I set up IIS and dragged the project into the root at (C:\inetpub\wwwroot). Upon opening the file in visual studio I know get this error. Any ideas?
EDIT:
I ran visual studio as ADMIN and got this error:
http://localhost:51278 : error : Error opening web http://localhost:51278. The Web Site 'http://localhost:51278' is configured to use IIS Express as the web server but the URL is currently configured on the local IIS web server. To open this Web Site, you must use IIS Manager to remove the bindings using this URL from the local IIS web server.
This might be a stupid question, but I have a problem with Visual Studio 2013 and IIS (not Express), that the Visual Studio debugger by default uses IIS Express (iisexpress.exe) to debug code. But I do not want that, but I want to use IIS installed on my computer (w3wp.exe).
I succeeded in debugging with IIS by using Attach to Process... and then selecting All Users and then picking w3wp.exe as a process. But I need to do this every time I start debugging. Is there a way to use IIS by default? In Visual Studio 2012, everything worked well, but in VS 2013 I cannot find an option to use IIS (w3wp.exe) by default.
I am debugging a Web Site ASP.NET 4.0.
Thanks for any help!
If your website project was opened via IIS, it should debug the IIS process automatically. If your site exists in IIS currently, you should be able to find it via File -> Open -> Web Site.
If you opened an IIS Express based website project (or via the file system, which uses IIS Express by default), then run the site through IIS, VS doesn't know that the site is running in IIS.
In order to get this working on my setup (VS2013, IIS7, Win7) I needed to go into IIS Management Console and manually enable Windows Authentication.
I'm trying to publish a desktop application to a FTP location for updating over the web. Conceptually this works fine, I've published to my local disk, manually copied the files up there, installed from that location, and updates are automatically installed.
Ideally though I'd like to not have to publish to local and copy, I'd like to publish straight to FTP or even WebDAV. When entering an FTP location though I get this error:
Failed to connect to 'ftp://xxx.xxx.xxx/' with the following error: Unable to create the Web site 'ftp://xxx.xxx.xxx'.
The components for communicating with FrontPage Server Extensions are not installed.
Google tells me that on previous Visual Studio versio I could add the "Visual Studio Web Authoring Component" through Add/Remove programs and repair, but that doesn't exist in VS 2012. I'm using VS Express 2012 for Windows Desktop.
How do I install the required components?
Installing Visual Studio Express 2012 for Web gives you the right components:
Article: http://msdn.microsoft.com/en-us/library/dd537667.aspx
Download: http://www.microsoft.com/web/downloads/platform.aspx?templang=de-de
Sidenotes:
The FrontPage Server Extension is available as Apache Mod, and IIS extension.
IIS: http://www.iis.net/learn/publish/frontpage-server-extensions/installing-the-frontpage-server-extensions-on-iis#02
Apache: http://docs.cpanel.net/twiki/bin/view/EasyApache/Apache/ModFrontPage