Accessing IIS Express from another machine [duplicate] - visual-studio

This question already has answers here:
How to enable external request in IIS Express?
(27 answers)
Closed 1 year ago.
I want to access the site from another machine, like 192.168.1.11:10369
I found a solution for it, that is: http://bendetat.com/access-iis-express-from-another-machine.html
It's working well if I run the project in Web Matrix
But doesn't work from Visual Studio and showing Error Bad Request.. http://prntscr.com/ifz2jq (But it is working fine as http://localhost:10369/)
What should I do.. so that it can work from VS through IP address, as it is working good in web matrix and localhost/

Try like this:
iisexpress-proxy 8080 to 3000
source: stackoverflow.com/a/29971694/11600278

Related

Ran into a really weird problem with running localhost

I started having this issue yesterday, but suddenly I'm unable to run even basic projects. The project starts as expected, but then the browser always shows this in microsoft edge. This is literally the boiler plate project generated when making a new application. Has anyone else run into this problem and came up with a solution?
This is what I got my features set to...
Edit 1:
I've been able to confirm that I do not have the issue with older .NET Framework projects running off of IIS Express. The issue seems to be purely when trying to run .NET Core applications using Kestrel.
Edit 2:
Went back and tried to change the port number to see if that made a difference. Unfortunately, it didn't seem to do anything. (Swapped port number 5001 to 5501 just to see if it would load the template website.)
Also checked to see what is going on when trying to run the template program. I can see port 5001 appear, but the state is TIME_WAIT and it never gets to established.
Edit 3:
When I start the .net core app it does get this far on the server...
Going back in time, the last thing I was doing before this problem started was creating a new user for my local SQL Server as well a setting up a database. I had already installed SSMS and didn't have any issues before that point, but I'm unsure how setting up a new user for a specific database on the SQL Server in SSMS would cause this problem.
I used Code first migrations via command line EF tools. I'm pretty sure this isn't related, as the problems began before I got to this point.
EDIT 4:
I tried accessing the default site via IP instead of using localhost. Oddly, 127.0.0.1:5001/mycontroller works, but trying to access it via localhost:5001/mycontroller does not work.
Edit 5:
I ran a test to see if a .net framework project can successfully launch and show up on localhost to make sure the issue is strictly with .NET Core applications using Kestrel. As it turns out, running an older .NET Framework style project on IIS Express does work on localhost.

can I use WSL2 for fullstack development?

I am intrigued by the WSL2 and wondering if I can use it for full stack web development using LAMP, Node or Python. I have a dual boot with linux where I have a lamp stack. My only concern is about displaying the site on a browser. For instance, say that I created a react app in the wsl2 and used visual studio code WSL to manage it. How does this build and show in the browser in wsl2?
Thank you for your solution in advance.
Update 2022/july/07: This question was right when I started using WSL and I was wondering it's implications. I am aware that WSL's IP keeps changing so it is rather a playground than an environment. Thank you for answering this query.
Look here: https://github.com/microsoft/WSL/issues/4392
You need to force 0.0.0.0 instead of using default 127.0.0.1 to
localhost.
After that you should be able to access website from local PCs browser, since ports inside WSL can be bound locally to your machine.

Scripts load as default document, but not when referenced directly

Just fired up a fresh Windows Server 2008 instance on Amazon EC2 to begin messing around with the ColdFusion 10 beta and ran into an interesting issue.
This WORKS and properly renders the default index.cfm in the root:
mydomain.com/
This however DOES NOT work:
mydomain.com/index.cfm
Any .cfm file referenced directly within the url doesn't load but if referenced as the default document in a given directory does work.
Like I said, this is a fresh install with nothing outside of the ColdFusion 10 public beta installed along side IIS 7. Ideas?
This is a connector issue from within IIS. The IIS CFM Handler Mappings should have been taken care of during the installation process but apparently that didn't happen in this case. It's possible IIS is missing a feature (like ISAPI support) that the connector needs in order to function.
You can try re-installing (and thus re-running the connection process) or you may be able to use wsconfig directly to re-install just the connector bit:
ColdFusion10\config\wsconfig
... whatever is easiest for you.
Jordan is correct, this is a connector issue with CF10/IIS.
This question is similar to:
Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404
I posted an answer to that question that may be useful to others who find this question.
I had the same problem but the "Web Server Configuration Tool" (i.e. wsconfig) did not work for me. My answer to this other question provides info on how to manually install the connector in IIS 7.x.

ASP.NET MVC3 deployment - _layout master page not found in IIS [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
The layout page “{path}” could not be found
I published the site to local IIS server using "Filesystem Profile". After hitting through local url from IIS, web site does not find master page e.g. "~/Views/Shared/_Layout.cshtml"
The same website runs perfectly from the vs-2010 on same machine.
Thanks buddies for reply.
Actually I was trying to setup on Win-2008-R2 with IIS 7.5.
There was an issue with permissions. The site is configured with app pool .NET 4.0 which runs under NetworkService account. Giving acccess right to "NetworkService" for website resolved the issue.
Another question addressing the same issue:
The layout page "{path}" could not be found
Another link for configuration:
http://learn.iis.net/page.aspx/624/application-pool-identities/

Test Website with IE7 [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine
I need to test a website with IE7.
Does anyone know if there was a way of doing this in windows7 without setting up a VM with XP+SP2 on it?
Expression Web SuperPreview is Microsoft's own tool for this.
I like IETester a lot. Works pretty good and no need to have the old versions installed. It runs on 7 as well.
You can try Spoon Browser Sandbox.

Resources