Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear friends,

I have been working with a MVC Web application (Internet application) which I now want to put up in the real environment, question is that the application is part html, so do I need some specific methods to upload it to a server.

I remember the good old HTML sites use you work like this way, that once you done with a site you just upload it through ftp on the domain to a specific folder and the index.html was the main page to be called and Bob’s your uncle.

In Visual Studio there is a menu item under BUILD -> Publish "the project / or app. Do I have to just follow that ? and the program takes cares of the rest ? In my app there is a database, how does the file structure works, is it auto built, do I need to take some steps while uploading make folders or write some code or whatever??

PS. I previously asked a question and someone told to Google it ! well it’s true that one can find relevant info but its not that easy, like we are all not very quick and nerdy like some who have answer to everything, it might take a week, days to fine the relevant info, that's why I am writing here, so I might get guided in the right direction.
Posted

1 solution

You have to "Publish" your MVC project from Visual Studio and to:
1)specify a path on your Web Server, if your web server is in the same LAN
OR
2)Just publish it into a foloder from your compute like:
C:\MyPath\MyWebApp<br />
Then you just copy the entire content from your "MyWebApp" folder and copy via FTP on your final location."
 
Share this answer
 
v3
Comments
Jahangir Khan 6-Apr-14 4:32am    
then what happens ??? I have tried I go to my we browser, an I still cant figur out what to look for can you elaborate please ?
What shell I look for Globel aspx or where is the excuteable file which should show my website
Raul Iloc 7-Apr-14 0:57am    
All needed files for your web application will be copied into the folder specified by you.
Next step is to setup in your IIS the site parameters including the folder for your site where the web application files were deployed.
Jahangir Khan 7-Apr-14 2:52am    
Hello Raul, This is one of the other technical mystery’s, give me a bad headache, I do have IIS installed and working on my local machine, the folder with all the files exist on my desktop and the same is uploaded to an ftp server. Now call it dumb, but I don’t see or understand how on earth this app will work on in real life. Mind you I have an account on azure website and there things are so simple, from visual studio you make a profile and haaps bob's your uncle , in a minute your app is uploaded to the azure website and running, now when this comes down to putting it for the org i established, and using there ftp server when I upload, it also uploads, but hell I can’t make it run or work.. can you please explain instead of giving me external links. I have been looking up Google for many day and it just increases my frustration.
Raul Iloc 7-Apr-14 4:16am    
So you succeeded to upload your web application (that result after publishing it into a local folder) on your remote server. The next steps are:
1.Change in your web.config the SQL connection string so to can access your DB, and note that the your DB backup should also be restored in your running server first;
2.In the IIS you have to create a new site then set its :Site bindings": "Host Name" and "Port".
3.Also in IIS create an "Application Pool" for ASP.NET version 4.0 (or the version that your are using); If you cannot select the version of ASP.NET, you have to install the .NET framework used by you on the server AND/OR to registry the ASP.NET in IIS by using "regiis", after that to create your application pool;
4.By using IIS and "Manage web site-> Advanced settings" and set the "Application Pool" created above, and also set/verify the "Physical Path" property to point to the folder on your server where your web application was copied;
5.In IIS "Restart" the site and should works!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900