Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My webhost needs a web page in main folder with the name of “index.html” or “default.html” or something like that. But ASP MVC application (in Visual Studio 2010) doesn’t make such file, so when I upload ASP MVC website, viewers only see my files and folders.

Do I need a special webhost or I should do something else?
Posted
Comments
Vivek Krishnamurthy 14-Mar-12 23:41pm    
Not clear what is the problem ? Do you want to use index.html when the request to website is made ?
Can you not add a dummy index.html or default.html (which would redirect to appropriate MVC action) ?
MehdiNaseri 16-Mar-12 7:13am    
When I make and run ASP MVC applications on my computer, there isn’t any problem but when I upload website, it is not accessible on webhost. Why?

Is it because my host doesn’t support .Net framework 4?
Each website have a file like “default.html” and the host use it as start page of website but ASP MVC applications don’t have such file. we should make this file or it is not necessary?
Does an ASP MVC application need special host or configuration?

1 solution

ASP MVC need special host which supports MVC.
 
Share this answer
 

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