Sync ASP.NET website with web server? - asp.net

I have an IIS 8 web server with FTP access configured. On my development PC, I created a new ASP.NET project with Visual Studio 2013. How can I "publish" / upload my project to the web server on build? I noticed that while creating a project, I can choose "FTP" to create the files on the webserver, but then Visual Studio doesn't create the folder structure, include jquery, sample code, etc.

In Visual Studio you can create a publish profile and configure your FTP server on it. Then, after the publish profile is created, you can use the "One-Click Publish" feature to send the files to your server. It even has some preview options, that allow you to see the changes that are being made.
Here is a link from Microsoft describing the entire process: http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx
And here is another useful link from Microsoft containing an overview of the web deployment process for Visual Studio and ASP.Net applications
http://msdn.microsoft.com/en-us/library/dd394698(v=vs.110).aspx
Both links are targeted to Visual Studio 2012, but i think they also apply for VS 2013

Related

Visual Studio Online continuous deploy ASP.NET web pages to Azure Websites without build

How can I continuous deploy an ASP.NET web pages project to Azure Websites(Web App) without building it by hosted build controller(provided by Visual Studio Online)?
My project contains web pages and do not need to build in order to work. The web pages will be build dynamically when it is live. Also, I don't want to waste my build minutes in order to publish it since it is not required to build. However, I can't found any setting regarding this in Visual Studio. I had set up and wanted to use continuous deployment in Azure Websites.
Please help!
If you install the Azure SDK stuff for Visual Studio you can publish directly to an Azure Website from Visual Studio. You don't need to run your build on a build server, just build locally. Left click on your web project then select "Publish..." then you should see a "Publish Web" wizard that lets you select your azure website and push your built to it.

Debug ASP.NET web forms in full IIS

I'm running Visual Studio 2013 Ultimate on a Windows 8.1 (with Update 1) laptop, and I would like to debug an ASP.NET web forms project against IIS, which is installed on the local Windows 8.1 instance.
Previous versions of Visual Studio had an option to use IIS Express or full IIS, but I cannot find that option in the Project properties anymore.
How do I deploy & debug my ASP.NET web forms project in full IIS?
EDIT: When I right-click on my project, I see this:
And then if I click on "Properties Window" I see this:
This is one way to have your project available in IIS:
Press Ctrl+X, type inetmgr
or
Open your IIS Manager Application.
Expand the tree on the left.
Add WebSite
Give a name to the website and port
For file location provide the same file location were your project is.
Assuming your port number is 3000 just simply type http://localhost:3000 in your browser.
Now from Visual Studio go to:
file Open...
WebSite (you will see that IIS is available on the left).
Open your new web site
This will let you debug from IIS and any changes you make will be directly made on IIS as well.
I just double checked one of my local Web Forms applications locally running in Visual Studio 2013 Ultimate on Windows 8.1. The settings are still there. If you open the project properties for your Web Forms project, you should see the following:
After selecting Local IIS, setting a port, and saving, you should be walked through the process of configuring a Virtual Directory for your site (if one isn't already configured).
EDIT
After looking at your edit, it looks like you've created a Web Site Project rather than a Web Application Project. You can read about the various differences here:
Web Application Projects versus Web Site Projects in Visual Studio
If you haven't written any significant code yet, I'd suggest deleting the Web Site Project and creating a new Web Application Project. You'll then see the settings as described above.
If you really want to keep the Web Site Project, you'll have to configure the site in IIS and then open it in Visual Studio using the 'Open Web Site...' dialog (and then choosing Local IIS as the source):

How to make asp.net app run with visual studio server instead of IIS?

I have downloaded this blog engine
https://github.com/lelandrichardson/MiniBlog
I cannot run it within Visual Studio because it wants IIS : how to change this ?
If your project doesn't load in Visual Studio (it is greyed out), you need to manually edit the project file (MiniBlog.csproj) in a text editor. You just need to look for the UseIIS tag, and change its value to False:
<UseIIS>False</UseIIS>
When you do the above, Visual Studio should be able to load the project. It should now default to the Visual Studio web server.
Once you are able to load the project in Visual Studio, you can choose another web server, if you wish. You just need to right-click on the project in the tree view and then select Properties. From there, if you open the Web tab, you can choose the legacy Visual Studio Web Development Server, IIS Express (you may need to install this), or the Server version of IIS.
Just a note - I was unable to actually build the project that you linked to. There appear to be missing dlls, but that is out of the scope of this question.
try to add IIS Express 7.5 for visual studio http://www.microsoft.com/en-us/download/details.aspx?id=1038

Incremental web publishing and preview changes with Visual Studio 2012 to local file system or FTP

I'm trying to set up a publishing workflow for an ASP.NET site I'm working on. It will be located in a shared/network folder and I would like to publish from Visual Studio 2012.
I have seen that VS 2012 has some improvements when publishing a site, like previewing changes and incremental deployment but all the tutorials I have seen so far are showing Windows Azure, for example:
http://www.techbubbles.com/aspnet/web-publishing-features-in-visual-studio-2012/
Does VS 2012 support change previews and incremental publishing to local file system or FTP or only just for Azure ?
If not, are there any alternatives ?
You can also get these features using a web deploy publishing profile pointed at a IIS instance on your network. Here's the relevant MSDN article.

Deploying ASP.net application developed using VS2008express edition on MServer 2008

I want to deploy a Website which i have created using Microsoft Visual Studio 2008 Express Edition onto a server having Microsoft Windows Server 2008.
I dont know anything about deployment. I want to know what are the things required on the Server in order to make the application work.
i had used ajax toolkit VS2008 Express Edition and mysql on my developer machine.
Do you have full access to the server or are you using a hosting provider?
When you say Website, do you mean your project is a Website project or is it a Web Application project?
If it's a website project you should use the WebDeploy project add-in. In fact you'll need this since the Web Deploy project will merge all your pages into one dll. I'm not sure of the limitation of the Express Edition no you'll need to check.
WebDeployment Project post
Deploying a WebSite project
Deploying a Web Application Project

Resources