Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am creating a project in vs 2013 web express which is asp.net 4.5 mvc 4 application. basically we know that in mvc application there is nothing like start up page. we can set view controller from route config file. default is home index. now i added a wcf service for some use. build it. to check if service code works fine i set svc file as a start up page so it will open a wcf test client where i can check my methods of services etc. once i satisfied with this i call the wcf service in my controller to get data pass it to the view and run the project again. now the weird thing happen :

i have already set wcf service as a start page now want home controller to run first which is already define in the route config but it gives service a priority and not to the route config. this is just a visual studio problem for now. now how can i undo the start page in visual studio only so that my home controller will call. temporary i apply a solution by adding a html file and set it as a start page so it will at least not open the wcf test link and when html page open in the browser i remove the file name and retype url based on my view and controller.

does any one know how to solve this problem ?
Posted
Comments
Animesh Datta 10-Apr-14 6:12am    
check the solution

1 solution

try this way

Right Click on your project --> go to properties window -->go to web tab-->clear the specific Page

thanks
 
Share this answer
 
Comments
ravikhoda 10-Apr-14 6:40am    
thanks it works like a charm.
Animesh Datta 10-Apr-14 6:43am    
your are welcome

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