Link to home
Start Free TrialLog in
Avatar of Chris Jones
Chris JonesFlag for United States of America

asked on

MVC deployment

Hello,

i have a simple sample MVC application and i am trying to deploy it on the server but its not working when i browse to the page. i am very green to MVC and just trying it out for my next project.Can anyone tell me whey my application is not working when i put the path in.

Example
http://apps.tamu-commerce.edu/alumnigiving/views/home/index.aspx
Avatar of Alfredo Luis Torres Serrano
Alfredo Luis Torres Serrano
Flag of United States of America image

Hi,

  Can you tell us your development environment.

  Visual Studio and Framework 3.5 or 4 with mvc 2 or 3??

Gretings
Avatar of Chris Jones

ASKER

environment


  Visual Studio and Framework  4 with mvc 2
A good start:

http://msdn.microsoft.com/en-us/library/dd394709.aspx

And don't forget to either install the ASP.NET MVC 2 server-centric components on your server or to bin deploy your ASP.NET MVC 2 application.

Hope this help
i think the project is deployed correct but i cant seem to browse the project. there is no errors just no pages.
Wher you run locally the default page is shown??

Are you deployinn to iis 5 or 6 or 7??
Did you see

http://msdn.microsoft.com/en-us/library/dd394709.aspx

MVC in a different aproach than tradiotional programming, Model , View , Controller, not all together.

The lerning curve is very easy but you have to understand the architectural design principle.

Hope this help
@ Masteraco: i have read some of this document but while learning i have made it to a point where i upload my application and its not displaying on the server Also a i am using iis 5
Ok,

  After you deploy, Can you see the virtual directory created in the IIs???

Are the ASP.NET MVC 2 server-centric components on your server??

yes i can see the directory in IIS structure is as follows

Bin
Content
Scripts
views
Global.ascx
web.config
ok,

  are you deploying to your local computer or to a rmeote server??

my local system shows the project correctly when i run in debug mode and the current issue is deploying to my web server.
Ok,

   Then you have to check if the server has the ASP.NET MVC 2 server-centric components and the Asp .net release in the server.

  If you deploy a tradiotional asp .net project in the web server runs ok??

Did you double-check if the correct version of View files are deployed? Maybe they were copied but not refreshed on the production server after you've made some changes?
yes a traditional application works but i added my references with the project and it works but just cant browse to a control file.
Here is my dev folder structure User generated image
Here is my server structure User generated image
Have you tried to deploy (not just run) to your local pc??

yes it runs on my system i have not deployed it to my system
Please deploy locally on your pc and tell me if it run, just change the producion server ip for your local ip.
ok doing that now and will update soon.
i get this error when i deploy on my system

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Check the web application folder permission and make sure the following users and groups are included \ASPNET and \IIS_IUSRS and \IUSR
ok fixed that error it was a security issue but you are correct it does not work on my local system .
Wich version of Visual Studio are you using??

VS 2010
NOTE: it works fine in my VS2010 debuger
oh no i got it to work i just restarted the service
Have you installed the the ASP.NET MVC 2 server-centric components??

So, You have to restart the service on the server
i have not installed the ASP.NET MVC 2 server-centric components i read on the Microsoft form that i can just add the references to the project
Ok,

  So the website is working fine on your local system right?
Wich version of Asp have you installed on the production server? must be the same than in the development environment.
yes its is  .net 4 framework
You have installed mvc framework on your pc but not in the server??
correct
Chek the installed applications to see if in the server is the mvc framework installed
If you have installed Visual Studio 2010, ASP.NET MVC 2 is already installed on your computer. You can get the most up-to-date version of the ASP.NET MVC 2 framework from the ASP.NET MVC download page.

hope pthis help
i installed MVC on the server and still the same issue
Also you have to install ASP.NET MVC 2 server-centric components.
where do i download this ?
i have installed this
The server OS in Windows Server 2003??
yes
What Framework are you targeting in your proyject?

Fv4
ASKER CERTIFIED SOLUTION
Avatar of Alfredo Luis Torres Serrano
Alfredo Luis Torres Serrano
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sorry guys for the long wait the server does not have MVC installed and the info structure area will not install it
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
If  the info structure area will not install it  you can not work with mvc.
I want a moderator review i think the info is good enough to accept as an answer.
I recomend #3 Post ID: 37383206