404 error for files from new project

0

I have a solution with several projects. One of the projects is startUp. It references to other projects are registered in the reference. I added a new project Adkplatform.mrp.web (right click to add a new project in visual studio).

I want to display a test page in the browser.

For the test.aspx page I get the error:

Server error in the application '/'. We could not find this resource. Description: http 404. probably, the resource (or one of its dependencies) is deleted, received a different name or temporarily unavailable. Review the following url and verify that it is entered correctly.

For the test.html page I get the error:*

*Detailed Error Information:
Module     IIS Web Core
Notification       MapRequestHandler
Handler    StaticFile
Error Code     0x80070002
Requested URL      http://localhost:3333/test.html
Physical Path      D:\WORK\Projects\Test\Software\.Net\Test\test.html
Logon Method       Cookies*

I understand it, the search for files in the startUp project. The test files have Build Action: Embedded Resource

What did I forget to do? In advance, thank.

c#
asp.net
iis
asked on Stack Overflow Jun 21, 2018 by PhiseySt • edited Jun 21, 2018 by PhiseySt

1 Answer

0

Sorry, the problem is in our local snippet. It is necessary for the display to call a method c# HostingEnvironment.RegisterVirtualPathProvider for each assembly. For a new project (and new assembly), it not was done.

answered on Stack Overflow Jun 21, 2018 by PhiseySt

User contributions licensed under CC BY-SA 3.0