Visual Studio and Umbraco setup through Remote Control - visual-studio-2010

I'm new to umbraco and have recently downloaded visual studio with the objective of setting it all up and getting it all to work. However, fact remains that I'm not suceeding and I've not been able to find any post related to this topic on the internet.
The scenario is simple:
I connect to a Windows Small Business Server through a gateway as: remote.mysite.com.
In that connection I log on to another server where I finally find the root directory of the umbraco installation.
How would I synchronize Visual Studio with that Umbraco folder, so I don't have to transfer files all the time?
Any help would be appreciated much!
Best regards,
Brinck10

If you want to avoid having to do an XCOPY deployment of your code to that distant server, Visual Studio will need to have a network connection.
You could set up an SSTP VPN connection through your Small Business Server and connect to the Umbraco server
You could also set up an FTP server on your Umbraco server but you'd need to also make exceptions on your office firewall.
You can also watch this video by Scott Hanselman.

Related

Visual Studio stuck in loading a project when not connected to company's network

I have a Visual Studio solution which initially came from the company's VSTS Git repo. The solution contains multiple projects including web and webapi projects. They use the local web server and local SQL Server.
When I am not connected to my company's network, Visual Studio 2017 gets stuck while loading one of the projects. I went through the *proj files and didn't see anything referencing something outside my local paths. I turned off NuGet's checking for downloading missing packages or trying to download packages as one of NuGet's sources is a company server.
I am unable to find the reason why VS gets stuck. While being stuck and I connect to the company's network using VPN, it continues loading the projects.
Is there a way to troubleshoot this and find the cause? Can VS create some kind of a useful log file?

Auto discover Team Foundation Server

I've searched the web and can't find a way to have a local Team Foundation Server auto discovered by Visual Studio.
Is it possible to configure it in e.g. Active Directory or the DNS server?
No, It's not possible.
VS use Team Explorer to connect to TFS, we have to provide the credential to add the TFS server first. The TFS server information is stored with Team Explorer. So, we can do nothing in AD or DNS server.
Once created the connection, the second time to start VS, it will automatically connect to the TFS server.

Is it possible to develop a classic ASP website directly on a webserver with TFS?

We currently have a very large Classic ASP website that is critical to our business. It is kept in Visual SourceSafe for version control and we have numerous developers who develop the site in Visual Studio 2005. We open the website with VS2005 directly from the Development web server. We can check the files in and out of VSS directly through VS2005 and all changes we make to the asp pages are visible on the development website immediately, without the need to check back in or copy any files.
We would like to move forward with VS2013 and TFS. Our newer websites are all in TFS and we want to standardize.
Is there a way that we can continue developing the website directly on the web server using VS2013 integrated with TFS? I have found number of articles and responses online about TFS and ASP.NET, but since we don't build classic ASP code, these don't seem to help us.
Really your development server is not where you should be doing your development, but on your local desktops, and then deploying to your development server for initial testing.
However with that said, it looks like your working directory in SourceSafe is where you have IIS pointing to on your development server. You can do the same thing with visual studio and TFS. Just have your Visual Studio workspace pointing to the same location, but checking in everything to TFS.
Edit- the bin directory for a project typically doesn't get checked in to TFS. The developer would have to make sure they build the project every time they wish to view the site on this development server to populate the bin directory.

Link remote site to visual studio 2010

i developed a site in my local laptop. The site is quite in an dvanced stage so i'd like to test it in the remote server where it will be once finished.
I use visual studio 2010 and i was asking myself if it was possible to leave the site in the server and go on developing it in my machine without loosing syncronization.
I mean, suppose i find a bug while navigating the site from my laptop. I would like to fix it without copying the site locally, and then put it back on the server manually.
Is this possible with Visual Studio 2010?
Some more info:
The site is hosted locally in C:\Mysite\ and in the server in C:\Mysite\ (the same directory).
I can connect to the server with remote desktop but the connection is authenticated (of course)... I wrote this in case it's useful information.
Thanks in advance!
You can, by simply selecting Open -> Website and choosing from FTP or Remote Site in the directory browser.
However, just because you can doesn't mean you should! Keep a development and production copy separately.
Open VS2010 and then in File menu choose Open -> Website -> Remote site.
Then enter your remote address and it's done, you can work on your remote site as if it was local.
it is not a good idea to publish your code directly to your server. However if you would like to do it, you can think of setting up continuous integration process. Whenever you commit the code, you can run a msbuild or nant script which gets latest code changes from source control and push to the server. You can also sse something like webdeploy... which ideal for web projects...

Need to name websites on localhost running on different Ports

I have my development PC on Windows 7 for ASP.NET and running Visual Studio 2010 and IIS 7 (NOT using the development web server). I have created multiple websites on different ports on my PC. E.g. http://localhost:8080 points to Website A. But when I open the site in Visual Studio, the project name shows as http://localhost:8080, as follows.
I would like to change that name to http://WebsiteA or http://WebsiteA:8080. Some identification.
I edited hosts and added
127.0.0.1 WebsiteA
Ping works fine. Also browsing WebsiteA:8080 works fine. But when I try opening the site (http://websitea:8080) in Visual Studio, it says Web site does not have Frontpage server extensions installed.
Is there any way to at least rename what's shown in the project list in Visual studio. I just need an identification on each website. I have about a dozen project and more may be added.
Thanks
IIS in Windows 7 allows you to have named virtual hosts. You can use that to separate out your sites. Visual studio cooperates with the naming of the virtual hosts. You will need to configure your visual studio project to operate against IIS (for debugging and running) rather than the visual studio built in web server.
Managed to find a way. This is what I did. Went to IIS Management, Created a new Website - Give it a name WebsiteA, Choose the folder where the web is located and give it a Host Name - WebsiteA. Click OK
Then go to Application Pools. You'll see your Host name there. Change the ASP.Net version to 4.0 or whatever you want. Then add a hosts entry 127.0.0.1 WebsiteA.
Now you can add http://WebsiteA in Visual Studio.
Thanks for all the help guys

Resources