Debug ASp.NET MVC with IIS5 in Visual Studio 2008 - asp.net-mvc

I have been trying this for some time but could not figure out yet. Is there a way to choose IIS5 as the web server instead of the default Cassini which comes with Visual Studio 2008?
I have web flow(request, response) from my web site to a 3rd party provider and would like to know what I am getting back from the 3rd party.
Right now the Cassini server cannot be open for the world on internet. I have to publish the code in IIS5 and write the response to file to debug. But it would be nice if I could do it in Visual Studio 2008 directly which will save me lot of time.
Thanks in advance.

You can choose IIS in the properties of the web project:
alt text http://learn.iis.net/Content_Cache/387/Properties-Web.png

Related

Error when loading an ASP.NET MVC Project

I developed an asp.net mvc 5 web application using VS 2015 community edition. All things worked perfectly, but a few days ago, Visual studio was unable to load the web project, and the below error message is displayed :
error : The Web Application Project elab is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. In addition, you must install the following IIS components: ASP.NET
I tried to run VS as "Administrator" but unfortunately due to our organisation security policy, I don't have this privileges.
Is there a way to overcome of this problem ?
You can try the below solution
In the solution explorer, right click on the project and select "Properties"
Click on "Web" tab
Select "Use Visual studio development Server" radio button
The above steps will help you to Switch from local IIS to IIS Express ie Visual studio development Server
Note : In the same way you can switch back to use local iis at any time you want, but that requires an administration privilege

Visual Studio 2012 IIS 7 - JavaScript File Lock

I am using Visual Studio 2012 to develop an MVC 4 web application. I have also created a virtual directory on my local IIS 7 server which points to my MVC application. Both IIS and Visual Studio 2012 point to the same source code.
I usually edit JavaScript files and hit refresh on my browser to reload the JavaScript file.
For some reason whenever I edit the JavaScript via Visual Studio 2012 it is write protected (by IIS) so I have to touch the web.config file in order for IIS to release the file in order to overwrite the file. This is really annoying when debugging because I have to reload the application every time I make a minor change to a JavaScript file.
Has anyone had this issue and how did you resolve it.
Any help would be greatly appreciated. Thank You

How to create a ASP.NET MVC web application project in VS2012

I am using Windows 8, and Visual Studio 2012. I need to create a ASP.NET MVC web application. But, when i click on Project types --> visual C# i only see windows store and not Web (as seen in VS 2008).
How can i create a MVC web application ? Help
I suspect you are using Visual Studio Express for Windows 8?
If so, you will also need Visual Studio Express for Web in order to create your MVC app.
See the different versions here: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products
u can also user WebMatrix to create aps.net mvc project
it's free tool for asp.net from microsoft
u can get WebMatrix from here http://www.microsoft.com/web/webmatrix/
During the install, there should have been options, one of which was Visual Web Developer. Make sure that was installed (that was what it was called in VS 2010).

MVC in Visual Studio Express

I got Visual Studio 2010 Express C# Edition. I'm using WinXP as OS.
How do I get ASP.Net MVC in it? I saw another question that stated that MVC was included automatically, but I cannot find it anywhere. I've also tried by installing MVC3 RC2. Didn't show up either.
Isn't it possible to use MVC with Express edition?
(I've also got VS 2008 Professional on the same computer)
Edit
I needed the Visual Studio Web Developer Edition to get MVC2.
But how do I get MVC3?
Edit 2
I have XP Home edition which is not supported by web platform installer since IIS is not included. I guess that's why MVC3 wont install in Visual Studio 2010 Express (although it installed fine on my computer which is a bit strange)
Isn't it possible to use MVC with Express edition?
Sure is. I installed VS2010 web express edition and when I choose New Project then it shows the MVC2 web application and empty web application project template. Last week I also installed MVC3 RC via the web platform installer and that shows up too.
You need to explicitly download MVC 3 RC2 from here and install it:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=955d593e-cbd1-4ed1-88eb-02ff79dd74d8

Asp.net mvc in MS Expression Web (and other web editing tools)

Today I gave in to all the banners asking me to test MS Expression web 2 demo.
After some setup hickups I fired up the thing and immediately encountered a problem:
How do I make this tool work with my asp.net-mvc projects? Actually, how do I make my websites work with ANY tool but visual studio 2008?
Untill now I did everything with VS2008 / Notepad++.
Does anybody have experience with using asp.net-mvc projects in tools like dreamweaver, expression web etc?
You can use any web tool to edit the HTML+CSS+Javascript side of the site, but you'll need to compile it with VS2008 or MSBuild to run it.

Resources