Unable to open the Web site: http://.. Forbidden - visual-studio

Maybe somebody has already encountered with next problem:
When I try to open Remove Web Site using Visual Studio 2008 TS (File -> Open -> Web Site -> Remote) located on Windows Server 2008 SP2 Enterprise x64 (IIS 7.0) I'm getting next error:
alt text http://img193.imageshack.us/img193/7820/croppercapture1.png
I have access to the server. I added user 'Everyone' with Full Permissions for that web site root directory, but it's doesn't helped.
Also I have installed FrontPage Server Extensions for IIS 7.0.

Being as its IIS7 its complex; there is a page on learniis about it though.

Related

Visual Studio 2012 'Publish Profile' to Windows Server 2008 - 'Destination not compatible' error

I am deploying a website form Visual studio 2012 to a Windows Web Server 2008 R2.
I can connect to Web Deploy fine - though I get this error:
1>(27/05/2013 21:03:29) An error occurred when the request was processed on the remote computer.
1>Source (appHostConfig=Default Web Site/myAppMVC4) and destination (appHostConfig=myapp.com) are not compatible for the given operation.
1>Publish failed to deploy.
I fixed this by right clicking the project (not solution) - clicking Package/Publish Web and deselecting 'Include IIS settings as configured in IIS'
Now works fine.
Maybe this is because I'm using IIS 8 on Windows 8 locally - and IIS 7 on Windows Server 2008?

How do I get IIS Express to work in Windows 8?

So I've been working at this for about 2 days now and have essentially hit a dead end. I guess the first thing to know is, can IIS Express work in combination with Visual Studio 2010 and Windows 8?
I just got this new laptop in, with Windows 8 pre-installed. I installed Visual Studio 2010 Ultimate, SP1, and MVC 3. I had to enabled .NET Framework 4.0 myself...
I have a project that I transferred from my old computer (windows 7) to this computer. It was set up to run on IIS Express. So when I opened the project, VS2010 said that I was missing some components and asked if I wanted to install them--so it installed IIS Express for me. When I try to run my project, I get a "This page can't be displayed" page in IE. In fiddler, I get
- 302 HTTP localhost:16683 /
- 502 HTTP Tunnel to localhost:443
the SSL URL for the project is https://localhost:44300/
the URL for the project is http://localhost:16683/
If I go to IISExpress in my system tray and select the https link there, it opens the website up just fine. If I select the http link there, it get that "502 HTTP Tunnel to localhost:443" line in fiddler again... Why is it trying to tunnel to localhost:443???
Another thing to note is that I decided to create a test MVC 3 project from scratch to see what IIS Express would do. I set the project to run on IIS without enabling SSL. When I run the project is starts up just fine. When I click the logon link, it tries to redirect to an https link with port 44300...when it shouldn't be. I created a test project for the same purpose on my windows 7 machine, and the project did not do this.
The last thing to note is that after going to the https link for my initial project via the IIS Express tray icon, if I click the logon link for the test project, it now takes me to my initial project's https link... It's as if the projects are crossing over into each other...

Unable to start debugging on the web server after installing SharePoint

Visual studio 2010 was debugging fine on Win 7 , 64-bit machine. after installing sharepoint foundation 2010. SP site r working fine. but mvc, aspnet projects showing follwoing error
Unable to start debugging on the web server. the web server cound lnot find the requested resource.
thanks,
When SharePoint is installed the default web site in IIS is replaced by the SharePoint default site. Create a whole new website (and also an application pool preferrably) for yourself in IIS and deploy your code there and try debugging it. It should work.
From my past experience you cannot use an MVC template on a sharepoint environment (i.e. sharepoint iis site)
There are a few add-ons and customizations you can do, but their quite tedious.

Frontpage server extensions install problem

Here is the antenced of my story
I've got a problem with the VS or IIS. I don't know.
When in the Visual Studio 2010 I try to create website: throw up the follow errormessage:
Unable to create the Wet site'http://www.ecommerce.com'. The Web server does not appear to have FrontPage Server Extensions installe.
I download the Frontpage extension from here: http://www.iis.net/community/default.aspx?tabid=34&g=6&i=1630
Then I read how can it install, but when the article write that:
To extend a Web site using HTML Administration pages on Windows, use the following steps:
Click Start, point to Programs, point to Administrative Tools, and then click Microsoft SharePoint Administrator to open the Server Administration page.
In the list of virtual servers, click Extend next to the virtual server you want to extend.
In the Administrator box, type the user name for the administrator of the virtual server.
Click Submit.
I don't find Microsoft SharePoint Administrator on my Windows 7 Profesionnal 64 bit
or
You can extend a Web site by using the command-line tools, owsadm or owsrmadm. These tools are located in the "%ProgramFiles%\Common Files\Microsoft Shared\Web Server Extensions\50\bin" folder. To extend a Web site, use the install operation, which takes the following parameters.
I don't find the Web Server Extennsions dir on my Windows 7 Profesionnal 64 bit
I have read another article where write that, Use the Visual Studio DVD go to WCU dir and into the Web Server ... dir, but I don't find...
I download the FPSE and install with my local Administration account.
But the Visaul Studio Always says: The WEb server does not appear to haver FPSE installed.
How can I fix it? Install it?
Bad news (may not be so bad): FPSE for IIS 7 and 7.5 are not supported. Alternative is to use WebDav and here's an article explaining how to migrate FPSE Sites to WebDAV.
Good News (may not be so good due to licensing part): As of December 18, 2010, Ready-to-Run Software Inc. has created Microsoft FrontPage Server Extensions (FPSE) 2002 for IIS 7 and 7.5.
See this announcement from MS: FrontPage 2002 Server Extensions for IIS 7.0 on Windows Server 2008 and Windows Vista
If the FrontPage Server Extensions are installed, this error may occur because the _vti_bin virtual directory is not marked executable. To correct this problem, run the Internet Service Manager, select the Web server having the problem, and use the Check Server Extensions task. Reference: http://msdn.microsoft.com/en-us/library/aa984224%28v=vs.71%29.aspx

IIS 7.5 Invalid authentication headers 401.2 when viewing site in browser

I have a Visual Studio 2010 project that is using Forms Authentiation. It runs fine from within Cassini (visual studio systray IIS, aka pressing F5). I'm using MVC2.
I created a website in IIS 7.5 (on my Windows 7 machine)
then pointed the physical directory at my Visual Studio project file
Enabled only Forms Authentication in IIS
Keep receiving this error:
HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.
PS: I didn't use the Create Virtual Directory option in Visual studio, since I need host headers for what i'm doing, so a dedicated IIS website.
Follow the steps in this link
Error message when you try to visit a Web page that is hosted on IIS 7.0: "HTTP Error 401.2 - Unauthorized"
It is meant for IIS 7.0, but works for IIS 7.5 too.
See if this helps.
Fix 401.1 Error with Integrated Authentication on local machine

Resources