I developed my first website for a simple internal application using Webmatrix in a Windows 2008 Server R2 machine.
I'm able to open the site with a browser in the same machine as it is running, but cannot open it from any other machine in the network. I cannot open the default IIS7 website either.
The error is 401 – Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied..
This is what I have done so far, without any changes in the results:
- Changed the port of my site to 80, and the default to 8080
- Where it lists all the sites (so far just the default and mine), right-clicked on my site, selected
Edit Permissions
, selected theSecurity
tab, and verified thatEveryone
hasAllow
permissions for everything - Where it lists all the sites (so far just the default and mine), right-clicked on my site, selected
Edit Permissions
, selected theSecurity
tab, and addedDomain Users
withRead & execute
,List folder contents
andRead
permissions.
BTW, I checked these 3 posts with other fellows having the same issues as me and there are no answers.
Can't access IIS7 from my home network
How does one allow access to networked PCs to see your "localhost" in IIS7 – Windows 7
And yes, I can ping the computer running IIS7, the WWW services are enabled with no restrictions, tried disabling firewall, etc.
Best Answer
WebMatrix is a development tool and uses IIS Express not IIS. IIS Express is a smaller version of IIS for use during development of an application and not to be used to host the final usable site. It is by default locked down to only allow the local user of the machine to access the site.
To correctly publish your site to IIS to be accessible by others, you need to configure normal IIS on the machine and publish your site from WebMatrix.
Information on configuring your site can be found at Microsoft Support:
How to set up your first IIS Web site
To publish from WebMatrix the following should help: Publish your Website
I would also suggest you read the following in detail with regards to WebMatrix:
WebMatrix 2
Among other things the following is important (bold by me)