Answered by:
Create an ASMX web service on IIS 7 on Vista fails

Question
-
wehn i create my web service in Visual Studio 2008 on vista, and i want to publish to an http URL on my computer to be hosted by IIS, i get an error message telling me to install components such as ASP.NEt, compatibility on ISS 6.0, but i did it, and i even tried to use Visual Studio in administrator privileges but i can expose my ASMX Service on IIS.
Can someone help me
Friday, January 25, 2008 12:59 AM
Answers
-
I see, the site you are tryign to host (C:\Users\admin\Documents\Visual Studio 2008\WebSites\TestUser) is outside of \inetpub\wwwroot, so under Vista you need to grant IIS access to the folder.
You can do that by:
1. Right click the folder where your site is located: "C:\Users\admin\Documents\Visual Studio 2008\WebSites\TestUser" and selecting Properties
2. Select the Security tab and click on Edit (for Windows Vista Only)
3. Add.. and type in "IIS_IUSRS" ... OK
That should do it.
Friday, January 25, 2008 9:52 PMModerator
All replies
-
A couple places you could check:
1. Right click on the vdir in inetmgr, do you see an option "Convert to Application"? If you do, the folder is not considered a virtual directory by IIS7 yet, you need to convert it for your ASMX service to work on IIS7.
2. Check your default application pool, is it set to use ASP.Net 2.0?
3. I am assuming you are trying to use ASP.Net 2.0 here, if you want to use ASP.Net 1.1 on IIS7, there are a long list of items you need to install on top of the compatibility on ISS6.0 thing...
Hope this helps.
- Proposed as answer by das_.net Wednesday, September 30, 2009 3:37 PM
Friday, January 25, 2008 1:15 AMModerator -
Thanks but i had done that already, and my dir was a virtual directory
And i want to work on asp.net 2.0
but when i want to access the asmx page in IE, i get the following error message :
Erreur HTTP 500.19 - Internal Server Error
Description : Impossible d'accéder à la page que vous avez demandée, car les données de configuration connexes relatives à la page ne sont pas valides.
Code d'erreur : 0x80070005
Notification : BeginRequest
Module : IIS Web Core
URL demandée : http://localhost:80/TestUser/Service.asmx
Chemin d'accès physique : C:\Users\admin\Documents\Visual Studio 2008\WebSites\TestUser\Service.asmx
Session utilisateur : Pas encore déterminé
Méthode d'ouverture de session : Pas encore déterminé
Gestionnaire : Pas encore déterminé
Erreur de configuration : Impossible de lire le fichier de configuration
Fichier de configuration : \\?\C:\Users\admin\Documents\Visual Studio 2008\WebSites\TestUser\web.config
The web.config file was generated automaticaly by Visual Studio and i didn't modify it
I have already used asmx web services but never on vista and IIS 7.0
It's a big problem because i can't go further on my development
Friday, January 25, 2008 9:32 AM -
I see, the site you are tryign to host (C:\Users\admin\Documents\Visual Studio 2008\WebSites\TestUser) is outside of \inetpub\wwwroot, so under Vista you need to grant IIS access to the folder.
You can do that by:
1. Right click the folder where your site is located: "C:\Users\admin\Documents\Visual Studio 2008\WebSites\TestUser" and selecting Properties
2. Select the Security tab and click on Edit (for Windows Vista Only)
3. Add.. and type in "IIS_IUSRS" ... OK
That should do it.
Friday, January 25, 2008 9:52 PMModerator -
great you are the best
Thanks and see you
Monday, January 28, 2008 9:21 PM -
HiI have the same problem and I am able to see "Convert to Application:" in my virtual Dir . What should I do for this.I have already added "IIS_IUSRS" for my application physical Dirso plz help I am struggling for thatWednesday, September 30, 2009 3:38 PM
-
I believe you have to use IIS Manager for that. It is located through the admin tools in control panel (classic view). If its not available, you have to add it through Control Panel - Programs - Turn Windows Features on or off - and drill down to the IIS components to add. It takes a few minutes and there is tons of other information out there just on IIS manager, but this should get you started. Oh, yes and run as admin. hope this helps.Thursday, October 1, 2009 7:09 PM
-
Also, in IIS 7, don't forget to also give access (for the web root folder) to "IIS APPPOOL\<APP POOL NAME>" for the Local System LOCATION.
And one other important thing to note. I don't believe Windows Server 2008 gives the IUSR user permissions to the IIS_IUSRS group. So you either have to give permissions for that user (IUSR) under the LOCATION of your web server domain, or go and Manage the groups and add IUSR to the IIS_IUSRS group. If you're just running your site in Windows 7, then no need for this step.
Monday, April 25, 2011 9:17 PM