Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have a web app currently in development. I have created the project using ASP.NET Core 1.1 with .NET Framework 4.6.2 due to some development standard i have to follow. This project is in MVC architecture and so far have tested no problem, yet.

So i have decided to share my project to my team and have my project checked into TFS. My teammate downloaded my project from there and she had her Visual Studio 2017(ver. 15.9.2) installed and also installed IIS into her laptop too. But when she tried to launch the project using Chrome browser, she gets the error as in the title above.
We have tried to look for any online solution and tried many workaround but to no avail.
Please any help would be appreciated here. Thank you.

What I have tried:

1. Change port number in project properties.
2. Reset IIS in cmd using "iisreset" command.
3. Checked the StartUp.cs to ensure "
template: "{controller=Home}/{action=Index}/{id?}");
" is there.
4. Restarted VS and laptop but to no avail too.
5. Checked launchSetting.json but everything is correct.

The above are the methods we have tried but failed to get this error solved.
Posted
Updated 7-Aug-19 3:16am
Comments
Ram Nunna 11-Mar-19 4:50am    
I personally feel that,you may be missed some settings in .net core pipeline in startup.cs. Re-check one more-time.
Benktesh Sharma 7-Aug-19 9:29am    
One area to check is the profiles in launchSetting for iisexpress and iis. There must be two different ports. If you are using iisexpress, then the iis setting looks like below:

"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:8881",
"sslPort": 44325
}
},

1 solution

You probably deleted your "Index" action in HomeController.

Try to add following code:

public IActionResult Index()
{
    return View("Index");
}
 
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