I set up a site using IIS Manager but cannot get it to serve a static web page from my local file system (get the above error) the only way I can serve it is to copy the page assets into the directory for the default site (C:\inetpub\wwwroot). I can't find any documentation that I can understand for IIS. How can I set the root of localhost for IIS to my project folder?
1
There are 1 best solutions below
Related Questions in IIS-EXPRESS
- Add Virtual Directory to IIS Express with launchsettings.json
- Blazor .NET 8 - Staging launch profile not starting website VS2022
- How do i run IIS Express-only projects via CLI?
- HTTP Error 413.1 - Request Entity Too Large issue
- HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page when running ASP.NET MVC 5 app from VS 2019 & IIS Express
- Brand new ASP .NET Core Web app gives 404 errors
- Debugging multiple web application within one IIS Express site
- .net 6.0 mvc app shows wwwroot folder directory listing instead of my application when I run the app
- Is it possible to set IIS Express service ID to an AD service Account
- Unable to start program "https://localhost:44333" There are no more files
- Can I use IIS Express using .NET Framework 4.8 using a .csproj file written in the SDK format?
- Unable to launch the IIS Express Web server in vs 2017
- Why is my BackgroundService getting cancelled?
- IIS Express Worker Process preventing Visual Studio 2022 project from building
- IIs Express, Local IIS: Web Config error: Cannot add duplicate collection entry of type add with unique key attribute Path set to '*'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The short, easy answer is "you can't". The better way is to move your project to the wwwroot folder.
You can, however, link additional folders in IIS Manager. If you link your project folder under wwwroot, you could access it at localhost\MyProjectFolder