Install mvc2 on a server - asp.net

I'm on the microsoft download center to download mvc2.
But here I see three links and I have doubts what is what I need:
http://www.microsoft.com/downloads/details.aspx?FamilyID=c9ba1fe1-3ba8-439a-9e21-def90a8615a9&displaylang=en#Requirements
release notes
MV2 for visual studio 2008
A test project of MVC2
From which place i could download MVC2 to execute on my server? I dont have there any Visual Studio, etc...

You should simply deploy System.Web.Mvc.dll along with your project.
You don't need to install anything on the server.

Best way to do it, is use Microsoft's Web Platform Installer. It handles the deployment for you, and can be run straight from IIS.

Related

How to create an exe out of ASP.NET project

I need to create an .exe or find a way to run my project in other computer witch i don't have and i cant install Visual Studio. Is there a way to make this possible? Btw I'm using Visual Studio 2013. Thanks anyway.
You don't need visual studio to simply run an ASP.NET project, you can publish it to any machine that has the .NET runtime and a suitable web server.

ASP.net Core Web Application Template is missing

I am trying to follow this tutorial: https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start
However, when I get to the Create a Razor Web App section, there is no template in my install of VS2017.
I have both the .net core and asp.net and web dev workloads installed. Where have I gone wrong?
Open Visual Studio (assuming its 2017) and go to: Tools > Extensions and Updates
Click "ASP.Net and web development", then select the appropriate Individual Components in the right hand pane. You'll find components such as ".Net Core 2.0 Development tools" and ASP.Net web development tools"
Have you got the latest update for your Visual Studio installation?
Head to Add or Remove Programs
find Visual Studio
Click Modify
Allow the installer to update
Install any updates that are missing
On top of that, do you have the latest version of the .NET Core SDK?
It seems I had an OS issue that caused updates to fail. Have rebuilt the PC and all working as expected now. Very much a sledgehammer approach, but this was something fundamentally wrong with the installation.

Web Deployment tools for Visual Studio 2013

I am responsible for supporting a relatively complex Website project written with .NET 3.5.
Previously I was using Web Deployment Project with Visual Studio 2010 to deploy this website but at the moment I have only access to Visual Studio 2013.
As far as I know, there is no longer such a tool to be used for deployment in Visual Studio 2013 and I do want to compile the code before deploying to the production server. As mentioned earlier, the project is a bit complex and this would not be easy to be converted to a Web Application.
Any idea?
Unless I missed it, unsure what the issue is - in VS2013, Publish is what you are looking for (either WebSite or Application).
What exactly do you mean by "none of the (vs 2013 publish) options worked"? What is/was the issue?
In one of your comments, you state you want to "pre-compile" (aka "don't want to upload .cs source files) and that's a setting in Publish.
You can Publish to your local file system: "Custom" -> File System:
This extension still exists for Visual Studio 2013: http://www.iis.net/downloads/microsoft/web-deploy
Little bit confused with the question because you are keep referring about website rather web application.
If you are looking to convert web site to web app then you need to follow this: http://msdn.microsoft.com/en-us/library/vstudio/aa983476(v=vs.100).aspx
Otherwise, if you are referring about the deployment project. Yes, it is no longer available.
I'd a very similar situation like you and Since 2013 I have stopped using any deployment project, instead I have started using Publish that creates a deployment package for you on a Network , FTP, Local Drive or even on Azure.
Here is a nice guide from Microsoft
http://msdn.microsoft.com/en-us/library/dd465323(v=vs.110).aspx
If you still want to go for Deployment Project, then you would need to go for "Installshield" limited edition,which is free (http://samirvaidya.blogspot.com.au/2013/11/how-to-enable-installshield-le-for.html).
http://msdn.microsoft.com/en-us/library/2kt85ked(v=vs.110).aspx

How to automate deployment of Web Application in Visual Studio 2010?

I have been trying to use WebDeploy in Visual Studio 2010 to deploy our Web Application but it deploy the whole code as it is. Is there an option somewhere like before "Allow this site to be updateable" for WebDeploy?
EDIT:
Ok, there is no option available for Web Application and only for Web Site projects.
For Web Application projects, you could add a Web Deployment project which helps you getting a precompiled version, but it doesnt automatically publish it to IIS. Any way to automate that?
Thanks
u can use the options in the publish website as to get 1. make my site upgradeable 2.make different assembly file for each page 3.pre compiled version when you right click your web app and publish it. Hope i got it right

Unlocking asp.net mvc templates in VS 2008

Ok so i downloaded the asp.net mvc through the web platform installer. Rebooted the machine and fired up VS 2008 express. Lo and behold there were no website/project templates that could setup an mvc project. I did a little research and found out they would not show up in the express version. No matter - i got team suite edition too so i installed that and hoped for the templates to show up. They did not, so i reinstalled the mvc and they still won't show up.
I hate this part of developing - i just want to dognammed tools to work - what am i doing wrong - why won't the templates show up? I can't seem to uninstall mvc now and reinstalling just tells me that it's already installed...
If you have asp.net mvc installed and don't see templates in visual studio, you should try to run administrative command prompt and run devenv - setup so that templates can be registered.
c:\Windows\system32>cd "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>devenv - setup
this should help
If you installed Team Suite after mvc, it won't see the templates. Try reinstalling MVC, it's light and shouldn't take long.
Are you sure? I thought that but it HAS to be .NET 3.5 AND it's a Web Application from the New Project dialog and not through the New Website dialog. Annoying but alas!

Resources