|
|
|
|
Hey guys and girls, please help me if you can. It's a simple click once deployment ("check for update") to my own local host (Vista), I was doing one of those "How to videos" on checking for updates from visual basic how to videos section. I have all the IIS components installed. As you can see from the error message below: it isnt actually saying anything, ie, what the hell is %1 ???? Anyway, I had it working, ie, I could do an update, re-publish, then go and check it and it was working fine. But now I cant get past here:
Error1Failed to connect to 'http://localhost/Radio/' with the following error: Unable to open the Web site 'http://localhost/Radio/'. To access local IIS Web sites, you must install the following IIS components:
%1 In addition, you must run Visual Studio in the context of an administrator account.
For more information, press F1.11Radio
Please tell me if you need more info. It's visual studio 2008. Check for update app publishing to my local host, ie, not a server on the web as such.
**** Visual Studio is definately running as administrator as well, so that part of the error message is wrong too!!!!
Arrrggghhhhhh!!!!!
Please help.
| | | | | JimmyTeeRock Tuesday, May 27, 2008 2:52 AM |
hey Robin,
thanks for the reply.
You know what, in the end it wasnt the components. I had every single one of them installed and it still wouldnt work.
It ended up being "run as administrator" - Vista.
aaarrrggghhhhhhh
For anyone else, the problem is ascerbated because VS2008 will say it's running as administrator up in the title bar when it isnt actually running as admin.
For Vista
You need to right click the short cut that you use to start VS2008, and choose 'properties', 'advanced" then "run as admin". There is a way you can run as admin all the time, just google it.
All the best.
Jimmy | | JimmyTeeRock Thursday, May 29, 2008 3:20 PM |
You must have IIS installed and running, and apparently there are components of IIS that are not enabled that need to be.
This is your first clue:you must install the following IIS components
I remember going through that, and going into the IIS configuration andenabling/installing each component that they tell you you need, and then it will work. Doesn't it give you a list?
RobinS.
GoldMail.com
| | RobinDotNet Thursday, May 29, 2008 4:34 AM | | | JimmyTeeRock Thursday, May 29, 2008 3:18 PM |
hey Robin,
thanks for the reply.
You know what, in the end it wasnt the components. I had every single one of them installed and it still wouldnt work.
It ended up being "run as administrator" - Vista.
aaarrrggghhhhhhh
For anyone else, the problem is ascerbated because VS2008 will say it's running as administrator up in the title bar when it isnt actually running as admin.
For Vista
You need to right click the short cut that you use to start VS2008, and choose 'properties', 'advanced" then "run as admin". There is a way you can run as admin all the time, just google it.
All the best.
Jimmy | | JimmyTeeRock Thursday, May 29, 2008 3:20 PM |
Yeah, there's a difference between running Visual Studio in an administrative account and running Visual Studio as an administrator.
RobinS.
GoldMail.com
| | RobinDotNet Friday, May 30, 2008 12:01 AM | I have the "Run as administrator" checked on my VS2008 sp1 shortcut, I am administrator and the problem is still happening. Also, the list of needed components is missing in the error message.
--------------------------- Microsoft Visual Studio --------------------------- Unable to open the Web site 'http://localhost/km'. To access local IIS Web sites, you must install the following IIS components:
In addition, you must run Visual Studio in the context of an administrator account.
For more information, press F1.
I am running on Win Server 2008. Any ideas?
Thanks,
Marco | | m.zirino Thursday, August 28, 2008 5:44 AM | Fixed. I forgot where I found this advice, but reinstalling IIS7 did the trick. I had just upgrades to Visual Studio 2008 sp1, running IIS7 on Windows 2008.
Marco
| | m.zirino Thursday, August 28, 2008 9:50 PM | I got this error message when trying to publish a WCF service on Vista from Visual Studio 2008:
Unable to create the Web site 'http://localhost/TheAppName/'. To access local IIS Web sites, you must install the following IIS components:
IIS 6 Metabase and IIS 6 Configuration Compatibility ASP.NET Windows Authentication
In addition, you must run Visual Studio in the context of an administrator account.
--------------
These are the things that I already had done in advance:
I had installed IIS after installing .NET and Visual Studio. Becauseof this, I had registered ASP.NET by using the command aspnet_iisreg.exe -i from a Visual Studio command prompt. This command prompt had to be run as administrator, so I right clicked on the shortcut on the start menu and chose Run as Administrator.
I also run Visual Studio 2008 as administrator. This can be done e.g. byright clicking onthe shortcut, choosing "options"and configure it to run as admin...
--------------
My solution. This is what I did to make the WCF-publishing work from Visual Studio 2008 on Vista:
In addition to installing IIS, I had to go back to the list showing windows functions (from the Programs and Functions in Control Panel). In one of the folders – under the Internet Information Services installation folder �I had to choose to install Simple Security (windows security). It was not chosen by default.
I had to do the same with the option IIS 6 Metabase and IIS 6 Configuration Compatibility, which I also found in a folder under the Internet Information Services installation folder; that is, one of the "folders" where you choose to enable/install windows functionality from the control panel... I'm not talking about a folder on disk.
After installing I had to restart IIS with iisreset from a command prompt (running as admin).
After doing this, I was able to publish the WCF service from Visual Studio to the IIS running locally on my PC.
| | Jo Inge Arnes Tuesday, November 11, 2008 2:53 AM | Just FYI: Are you trying to use ClickOnce (the publish tab in VS) to deploy and install a Windows service that uses WCF?
You can't, and even if it works, you shouldn't.
ClickOnce is designed to be used Windows Forms and WPF applications, not services. Note that it installs with no privileges under a specific user account, the location can not be relied upon, you can't put it in the startup when the server starts up, etc. Some people have gotten this to work, but it is not supported, and in the next version they could change something that completely makes it not work.
I just thought I would let you know your course of action will probably cause you great grief in the not-too-distant future. Of course, you should feel free to ignore me.
RobinS.
GoldMail.com
| | RobinDotNet Tuesday, November 11, 2008 5:51 AM | I'm using the WCF Publishing Wizard in Visual Studio 2008?
The same one that is mentioned at the end of this blog post (no, it's not my blog... btw):
https://www.gazitt.com/blog/PermaLink,guid,009d6ee2-d260-4a53-b6f6-420aa68f9dcb.aspx
| | Jo Inge Arnes Tuesday, November 11, 2008 6:36 AM | Okay, cool. That's not ClickOnce deployment, but it does look like some kind of form of it that they have created just for WCF. In that case, go ahead and use it. Thanks for posting the info on the IIS stuff.
When I got those errors, I just went and reconfigured my IIS server the way the error message said to. I would be concerned that your method of using "simple security" would make my computer vulnerable in some way. That's not saying it would, mind you. Just a concern.
So thanks for posting, and good luck with your WCF service!
RobinS.
GoldMail.com | | RobinDotNet Tuesday, November 11, 2008 6:27 PM |
|