iis-express

Could not load file or assembly in VS2017 with IIS express

故事扮演 提交于 2020-01-02 03:29:27
问题 We have a ASP.NET project in the company that runs for 5/6 developers. All Visual Studio 2017 and debug on IIS Express, no crazy setting or anything to make it run. 1 colleague cannot get it to work, he always gets the following exception: We had this problem a few months back, then out of frustration the PC was re-installed and the problem was gone. He didn't develop for a few weeks and today the problem appeared again. I searched long and far but it's such a generic error I can't really

Bad Request - Invalid Hostname when accessing localhost Web API or Web App from across LAN

谁都会走 提交于 2020-01-02 03:28:27
问题 I have an ASP .Net Core 1.1 Web API and Web App running on my localhost from Visual Studio 2017 on Windows 10. When I run the projects, the API runs on http://localhost:50082/api/ and the web app on http://localhost:60856/ However, if others on the LAN try to access it (using my computer's IP address - http://192.168.1.101:60856/ they get a Bad Request - Invalid Hostname Error. In fact,. I get this error too of I use my IP address. I've tried about a dozen variations in my C:\Users\Documents

aspnetcore.dll failed to load

只谈情不闲聊 提交于 2020-01-02 00:58:09
问题 I usually dev on a windows 7 desktop, using visual studio 2015 update 3. I have the same vs2015.3 on my windows 10 laptop. I copied an asp mvc 5 app I am working on to the laptop but it wont run when I try to launch it from VS. I get the "aspnetcore.dll failed to load" error. I looked around and most solutions are to repair the asp net core install, but my laptop does not have asp net core installed on it, because I don't use core yet. My project is targeting .Net 4.6. My desktop does have

Can't connect to IIS Express remotely from non-Windows machine

梦想的初衷 提交于 2020-01-01 18:59:26
问题 I am working on an ASP.NET application and I'd like the ability to test the application on my (Android) phone and iPad by connecting directly to my local IIS Express development server. I followed the instructions here on setting up IIS Express to allow remote connections. I am now able to view the application from another Windows machine on my local network by visiting http://my-computer-name:my-port-number/ in the browser. However, I am unable to view the application from any other platform

IIS Express crashes when starting a site from visual studio

纵然是瞬间 提交于 2020-01-01 03:57:30
问题 I started encountering this problem after installing the Visual Studio 2015 RC; I am no longer able to debug web projects from Visual Studio 2013. My projects build fine and VS launches a browser - I can see in my output that iisexpress.exe loads all the relevant DLLs for the project, but then right when I would expect to see my website, iisexpress.exe stops running and Visual Studio stops debugging. All the output Window tells me is this: The program '[3724] iisexpress.exe: Program Trace'

How can I create new applicationhost.config file in IIS Express Server?

徘徊边缘 提交于 2020-01-01 03:55:07
问题 I had to delete my applicationhost.config, because VS 1012 didn't deal with it. How can I create it? thank you. 回答1: Just run IISExpress and it will recreate the file for you. The exe is located at: "c:\Program Files\IIS Express\iisexpress.exe". Hope this helps. 回答2: After you deleted applicationhost.config you do not need to run iisexpress.exe manually, you can simply load your project in Visual Studio and run it. Visual Studio will take care of that plus it will change applicationhost

SPI Port Forward and Visual Studio 2013 (IIS Express)

醉酒当歌 提交于 2020-01-01 03:41:08
问题 I was in two minds about whether this post belongs on Stack Overflow or Server Fault so if I have the wrong area then apologies! I chose Server Fault as I believe the only difference between a previous working solution and the current issue I have is IIS Express. I have successfully used SPI Port Forward to test local websites mid-development when using Visual Studio 2010 but with the upgrade to Visual Studio 2013 and the inclusion of IIS Express I am no longer able to see my website when

How to set Allow Parent Paths in IIS Express Config

六月ゝ 毕业季﹏ 提交于 2019-12-31 17:54:19
问题 I'm assuming this is possible in the applicationhost.config file but I did not see a parent paths setting. How do you allow parent paths for a specific site running under IIS Express? 回答1: Browse to C:\Documents and Settings\$your user name$\My Documents\IISExpress\config Open applicationHost.config Find the <system.webServer> section Change the <asp> section to the following… By default it only had the cache and empty limits bits but feel free to adjust any parameters you don't want. <asp

How to set Allow Parent Paths in IIS Express Config

ぃ、小莉子 提交于 2019-12-31 17:52:41
问题 I'm assuming this is possible in the applicationhost.config file but I did not see a parent paths setting. How do you allow parent paths for a specific site running under IIS Express? 回答1: Browse to C:\Documents and Settings\$your user name$\My Documents\IISExpress\config Open applicationHost.config Find the <system.webServer> section Change the <asp> section to the following… By default it only had the cache and empty limits bits but feel free to adjust any parameters you don't want. <asp

Global variables within IIS Express

家住魔仙堡 提交于 2019-12-31 17:50:58
问题 I've just installed IIS Express, can anyone tell me where it gets the settings for the following variables? %IIS_BIN% %IIS_USER_HOME% %IIS_SITES_HOME% %SYSTEMDRIVE% Thanks 回答1: The following three environment variables are set by iisexpress.exe during the process startup. %IIS_BIN% - refers to IIS Express installation folder ( %PROGRAMFILES%\IIS Express ) %IIS_USER_HOME% - %USERPROFILE%\Documents\IISExpress %IIS_SITES_HOME% - %USERPROFILE%\Documents\My Web Sites %SYSTEMDRIVE% - is a standard