Current Application Server Configuration:
IIS 6.0
Windows 2003 Server Standard Edition SP2
.NET Framework 3.5 SP1
Current Application Architecture
Classic ASP 3.0, referenced within HTML Frames
A few ASP.NET Web Forms
System.Web.Mvc.dll copied to Web Application bin folder
To test the feasibility of gradually incorporating ASP.NET MVC into our existing architecture, I published an MVC application to the aforementioned classic ASP application folder. I put in a hyperlink to the MVC page from one of the standard .html pages and I get a 404 response, telling me the requested page does not exist. I am using the same relative link that is being used on my local machine, which works fine.
Any pointers would be much appreciated.
Thanks.
Answered here ASP.NET MVC on IIS6
Related
I have an ASP classic application running and in same folder i have moved the mvc web deploy package.
Now when i redirect my page from classic asp to a controller/action it shows error 404.
It is running fine on local IIS but not on web server
Please help
Is it possible to self host asp.net mvc inside another application ie. console, windows forms, service etc etc.
I'd like to build an app that offers a web interface to control it and I'd like to use asp.net mvc for the web part of it.
I did take a quick look at Nancy which looks like it would work, though its not asp.net mvc it did support razor although it doesn't have quite the same level of support for it as asp.net (eg. strongly typed views)
I did also find this question but it doesn't really go into much depth
Possible to use ASPNET MVC2 without IIS?
You can use "IIS 7.0 Hostable Web Core" and host the web server as part of any user process, even a console application. The benefit is that it is very similar to full blown IIS (incl config etc) but the web server itself is running in your process.
Have a look at the following articles:
Host your own Web Server in your application using IIS 7.0 Hostable Web Core
Creating Hosted Web Core Applications
Please have a look at http://cassinidev.codeplex.com/
It has many advantages for example
No need IIS 7 on client machine
Support MVC (I have tested myself)
Work well with Windows Form and Web Browser Control for packaging as Windows App
Cross Win OS platform ( Windows XP, Vista, 7) I have test XP with .NET 4 installed
Hope this helps.
I know this question is old, but it is still relevant, so with the .NET Core 1.0 + ASP.NET MVC 6 you can self-host your MVC application easily. You can even combine MVC and WebAPI applications into one, and you can decide later if you want to use IIS, IIS Express or the self-hosting feature of the .NET Core.
You can try it if you follow the Yeoman approach from this post:
https://stackoverflow.com/a/30314393/980247
Hi,
I have done the following :
Start Visual Studio 2010
New Project > ASP.NET MVC
Default ASP.NET MVC project generated by VS2010
Add a couple off simple buttons on the first page
Start local IIS manager, Create a web application and point it to the ASP.NET MVC project
Set correct right on the ASP.NET MVC project folder(to the user running the thread pool in IIS7)
Browse site (http://localhost/MyTestSight/) and the first page is shown
Upload site to www.test.figurspel.net
Host sets the site to be runned on .NET 4.0
Browse www.test.figurspel.net and the site is not working?
The host has checked that tha Active Server Page is set to allow
Host has installed up to MVC 3
I could turn on the Browsable to see the file structure but this will not help to get the site running.
How do I get this asp.NET MVC web site running?
BestRegards
Is the application pool running in integrated mode the IIS site running under that application pool?
It's my understanding that if this isn't the case, the MVC site will not run.
Alternatively, have you tried this?
+1 Unicorn power HooooooO!!!!! Also I've always when hosting a site published the project to a different folder then setup the site via IIS from that folder hope this helps.
I can’t get a basic MVC site to work on my web server unless I’ve compiled it first in Visual Web Developer. If it doesn’t have a dll in the Bin, it says the Namespace can’t be found.
In classic asp.net I could just upload the files and the server would compile it at first run. Is this not the case in MVC? Essentially I’d like to build an MVC site without using Visual Web Developer.
That's cause ASP.NET MVC is not based on the Website model that many ASP.NET Web Forms apps were. It is based on the Web application model.
You can read about Web Application Projects here.
I've read about people migrating the Web Application to the Web site model in ASP.NET MVC but I don't recommended it.
Yes, you do need to compile an MVC site and deploy some DLLs in a bin folder when you deploy an MVC site
You can build MVC without Visual web developer... but why?
Does ASP.NET MVC require IIS? Could I develop an application that uses the new ASP.NET MVC framework on a client machine that does not have IIS installed?
From what i've read on the Mono site Site Link you can also run an asp.net MVC site under Mono using the Apache webserver as well.
A browser is all that is required on the client machine.
IIS is not required on the developer machine according to the download page.
Visual Web Developer 2008 Express, or the regular editions of Visual Studio will include the Cassini web server for development.
I think what you're asking is if you were to develop an ASP.NET MVC application would you need IIS on your local dev machine to run it?
The answer is, no you don't.
In short ASP.NET MVC can technically be run by any web server that can allow the website itself to handle the requests instead of the web server handling them.
You need IIS to get ASP.NET to work (MVC or WebForms). From what I know, it is ideal to have IIS 7 for MVC, but it is possible with IIS 6.
Developing a MVC application without IIS is possible, with the built-in web server integrated with VS 2008 (as been already mentioned), but for deployment, that is when you need IIS.