Can not access virtual directory under virtual dotnet core api application on IIS 8

眉间皱痕 提交于 2019-12-04 21:40:22

I am agree with @Tseng but I will add following thing .

  1. ASP.net core is build for multi plateform so it does not handle some request or manage Virtual Directory or Application like IIS in other OS as well. In your case V1 is application in your main application

  2. If you have to do any such thing then you have do following thing.

    app.UseFileServer(new FileServerOptions()
        {
            FileProvider = new PhysicalFileProvider(<<your physical path>>),
            RequestPath = new PathString("/V1"),
            EnableDirectoryBrowsing = true // you make this true or false.
        });
    

Once you do this configuration you don't need to configure in IIS.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!