Lately I'm struggling with a problem concerning deployment. I've worked through kilometers of forum posts and blogs but I couldn't resolve the problem. The website that I'm trying to deploy is very basic, it has only two Routes (the basic ones) and I've
added .mvc behind {controller}. I've also asked my hosting party like a thousend times whether the server runs ASP.NET 3.5, and it does. I even requested to make a mapping for .mvc in the aspnet_isapi dll. Still the application displays only the first page
(and with a broken image on it) and all other pages only return a 404. Is there anyone out there who has a clue about what's going wrong here? I've got the feeling that the server just don't understand Routes, but how did he ended up with the homepage then?
I found this in a topic regarding deployment on a IIS 5.1 server, is this also applicable on the 6.0? And where in the web.config file should I place this line of code? Also, is this the solution to my problem?
Anybody any idea? Does anyone know a good deployment walktrhough for a MVC application? This really is a problem that I need to sort out on the short term.
I have the preview 2 up and deployed on my server so it is possible. I don't use the .mvc route extension and instead use wildcard mappings to process all url's with the .net runtime. I didn't run into many issues setting this up. Obviously a lot will
depend upon your host. Have you confirmed that they added the .mvc mapping? Do you have your mvc/routing/abstraction dll's deployed locally in the application bin?
Sorry for the late reply, I had an extraordinary weekend with no computers in sight. My host confirmed that all the mappings were added friday night late. All additional (mvc, routing and abstractions) dll's are in place. The global.asax is configured with
the .mvc extension and still... It seems that I've taken all the required steps but still the 404 shows up. Do you have a good idea about the source of the problem? Is this a hosting issue or a developers one ('cause it works on my machine ;-)).
There has been a little change in my problem. After my host finally mapped the .mvc extension in the aspnet_isapi dll there's is a new problem. I'm getting the "server application unavailable" error. If I'm right, it can't occur because of a double dll
while I've got only the standard dll's in my project.
Really hard to say what might be going on. Have you tried to host the sample mvc app you get when you first create a project? Maybe that will give you a good starting place to figure out any errors.
Hi superevanc and anybody else having a good suggestion,
After weeks of problem solving and trying different things to fire this application up my hostingprovider has given up all hope. Even a standard Microsoft MVC application couldn't be launched properly.
So now I'm back at the beginning, well actually I have a nearly finished website and am in desperate need of a hosting provider that can properly publish an ASP.NET MVC application. Does anybody knows such a provider? I recon yes while most people didn't
encounter much problems putting the app. on the web. Oh, I'm using an SQL 2005 database.
If you're still in need of hosting send me a private message and I can send you the contact information of someone that should be able to help you out.
deTukker
0 Points
6 Posts
Deployment MVC R2 on IIS 6.0 based server
May 27, 2008 10:07 PM|LINK
Hi,
Lately I'm struggling with a problem concerning deployment. I've worked through kilometers of forum posts and blogs but I couldn't resolve the problem. The website that I'm trying to deploy is very basic, it has only two Routes (the basic ones) and I've added .mvc behind {controller}. I've also asked my hosting party like a thousend times whether the server runs ASP.NET 3.5, and it does. I even requested to make a mapping for .mvc in the aspnet_isapi dll. Still the application displays only the first page (and with a broken image on it) and all other pages only return a 404. Is there anyone out there who has a clue about what's going wrong here? I've got the feeling that the server just don't understand Routes, but how did he ended up with the homepage then?
Thanks, deTukker
deTukker
0 Points
6 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
May 28, 2008 06:51 AM|LINK
I found this in a topic regarding deployment on a IIS 5.1 server, is this also applicable on the 6.0? And where in the web.config file should I place this line of code? Also, is this the solution to my problem?
<add name="MvcScriptMap" preCondition="classicMode" verb="*" path="*.mvc" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" />
deTukker
0 Points
6 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
May 28, 2008 02:59 PM|LINK
Anybody any idea? Does anyone know a good deployment walktrhough for a MVC application? This really is a problem that I need to sort out on the short term.
superevanc
Member
117 Points
50 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
May 29, 2008 07:14 PM|LINK
Hey deTukker,
I have the preview 2 up and deployed on my server so it is possible. I don't use the .mvc route extension and instead use wildcard mappings to process all url's with the .net runtime. I didn't run into many issues setting this up. Obviously a lot will depend upon your host. Have you confirmed that they added the .mvc mapping? Do you have your mvc/routing/abstraction dll's deployed locally in the application bin?
deTukker
0 Points
6 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
Jun 02, 2008 06:00 PM|LINK
Hey superevanc,
Sorry for the late reply, I had an extraordinary weekend with no computers in sight. My host confirmed that all the mappings were added friday night late. All additional (mvc, routing and abstractions) dll's are in place. The global.asax is configured with the .mvc extension and still... It seems that I've taken all the required steps but still the 404 shows up. Do you have a good idea about the source of the problem? Is this a hosting issue or a developers one ('cause it works on my machine ;-)).
Thanks! deTukker
superevanc
Member
117 Points
50 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
Jun 06, 2008 02:10 PM|LINK
deTukker
0 Points
6 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
Jun 06, 2008 04:35 PM|LINK
Hi,
There has been a little change in my problem. After my host finally mapped the .mvc extension in the aspnet_isapi dll there's is a new problem. I'm getting the "server application unavailable" error. If I'm right, it can't occur because of a double dll while I've got only the standard dll's in my project.
Any idea, can I give you some more info?
Thanks, deTukker
superevanc
Member
117 Points
50 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
Jun 06, 2008 08:43 PM|LINK
deTukker
0 Points
6 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
Jun 18, 2008 04:55 PM|LINK
Hi superevanc and anybody else having a good suggestion,
After weeks of problem solving and trying different things to fire this application up my hostingprovider has given up all hope. Even a standard Microsoft MVC application couldn't be launched properly.
So now I'm back at the beginning, well actually I have a nearly finished website and am in desperate need of a hosting provider that can properly publish an ASP.NET MVC application. Does anybody knows such a provider? I recon yes while most people didn't encounter much problems putting the app. on the web. Oh, I'm using an SQL 2005 database.
Thanks! deTukker
TNE
Member
203 Points
57 Posts
Re: Deployment MVC R2 on IIS 6.0 based server
Jun 19, 2008 05:29 AM|LINK
If you're still in need of hosting send me a private message and I can send you the contact information of someone that should be able to help you out.