You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After many hours debugging a problem where I was getting a 404 for my IIS express site when using the following code to setup the project location:
ProjectLocation.FromPath("MyProject.GUI")
I have come to the conclusion that relative paths should not be allowed to be passed to this method, or at the very least they need to be converted to absolute paths before being passed to IIS Express command line (and then on to iisexpress.exe via the generated applicationhost.config).
The reason being that IIS appears not to support relative paths for the virtualDirectoryphysicalPath setting, which is ultimately where the "MyProject.GUI" string is getting passed to. It returns a 404 in some instances, or may not work at all. But it gives no obvious errors when spun up.
The text was updated successfully, but these errors were encountered:
After many hours debugging a problem where I was getting a 404 for my IIS express site when using the following code to setup the project location:
ProjectLocation.FromPath("MyProject.GUI")
I have come to the conclusion that relative paths should not be allowed to be passed to this method, or at the very least they need to be converted to absolute paths before being passed to IIS Express command line (and then on to iisexpress.exe via the generated
applicationhost.config
).The reason being that IIS appears not to support relative paths for the
virtualDirectory
physicalPath
setting, which is ultimately where the "MyProject.GUI" string is getting passed to. It returns a 404 in some instances, or may not work at all. But it gives no obvious errors when spun up.The text was updated successfully, but these errors were encountered: