how to host blazor wasm on local iis during debug

Viewed 34

i want to change IIS expres to local iis on my machine during development did someone managed to do this ? i installed IIS i installed vstudio iis integration as needed in vs installer i did created even for now simple 'localhost' website binded http on port lets say 49726

in vs project i added new debug profile as FULL IIS - not expres. so it adds to launchSettings.json

   "IIS": {
  "commandName": "IIS",
  "launchBrowser": true,
  "launchUrl": "http://localhost:49726",
  "environmentVariables": {
    "ASPNETCORE_ENVIRONMENT": "Development"
  }
}
},
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iis": {
  "applicationUrl": "http://localhost:49726",
  "sslPort": 0
}

when i run this it asks me to run as admin i do allow - it runs as admin then it ask to me to allow change dest folder. i do allow. it changes to C:\Users\xxx\source\repos\BlazorAppIIS\BlazorAppIIS\Server

then i see 403. - i add IUSR user to allow to read/write into this folder. fine

then after refresh i see 403.14 - so it is Directory browsing is not enabled when i do enable then i see FILEs / FOLDERS listed but not actual application

what am i missing here? do i need to add some 'module' to IIS ? is the patch C:\Users\xxx\source\repos\BlazorAppIIS\BlazorAppIIS\Server correct? i known that it is not publish but im not publishing. i want to use it here in development time.

thanks and best regards !

0 Answers
Related