473,770 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with WCF WebService hosted in IIS 6.0

Hi,

I have written a webservice using WCF. Everything works fine and I can
consume the webservice using wsdl, svcutil or visual studio as long as
the application pool is running under network_service or an account that
is a member of the local administrators group.

This webservice needs to run as a different user. When I change the
identity, the request http://server/myservice.svc?xsd=xsd0 fails (IIS
Log indicated an HTTP/200 (OK) - but no data is returned to the client)
and hence, I cannot consume the service as the complete schema is not
returned. The page http://server/myservice.svc?wsdl works fine, it's
just the xsd=xsd0, xsd=xsd1 etc.. that don't work. I've tried monitoring
using regmon and filemon but have been unable to find a cause for this.

Any tips anyone? I really don't want the app to run under an identity
that is local administrator, and network_service does not have the
appropriate rights on the network services that this webservice accesses.
Regards,

Arild
Mar 21 '07 #1
3 8703
Arild Bakken wrote:
Hi,

I have written a webservice using WCF. Everything works fine and I can
consume the webservice using wsdl, svcutil or visual studio as long as
the application pool is running under network_service or an account that
is a member of the local administrators group.
Actually, being member of the local administrators group does not fix
the problem. Being a domain administrator does though... I don't get
this. Also when running as that serviceaccount I keep getting the
ASP.NET Event ID 1093 indicating that it could not read the
cache memory limit. I fixed that using the MetaAcl.vbs script but still
noe xsd from the WCF webservice.
Regards,

Arild
Mar 21 '07 #2
Forget that last post about local administrator not being enough - it
was probably my browsercache or a missing iisreset that led me to
misinterpret the results.

I've now used MetaAcl to grant the serviceaccount full access to the
entire IIS MetaBase and that did not do the trick. A filemon to scan for
any access denied problems results in none - regmon to scan for any
access denied problems does result in some keys regarding certificates
but I also get those when being local admin and when running as network
service so I don't think that is the problem.

Am I looking at a complete reinstall of these servers (there are two in
a NLB)? Will it even help to reinstall?
Regards,

Arild
(getting frustrated)
Mar 21 '07 #3
Arild Bakken wrote:
Hi,

I have written a webservice using WCF. Everything works fine and I can
consume the webservice using wsdl, svcutil or visual studio as long as
the application pool is running under network_service or an account that
is a member of the local administrators group.
Ah - found it!

I was monitoring the w3wp.exe process, but it spawns off a csc.exe
process when generating the xsd and when monitoring that one I could see
that the account did not have enough rights on the Windows\Temp folder.
I would have expected the IIS_WPG group to have enough rights to perform
the required operations though. Adding "list contents" and "delete"
rights to this group (same as the network service account has) solved it.
Regards,

Arild
Mar 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3150
by: Raul Cortes | last post by:
I have been developing winforms for a while. I had an app, that downlods exchange rates from an html page from a website, creating a dataset, and then writing the xml to the local drive. Basically, when I need an old exchange rate, I already have it on my dataset, and whenever there is a new exchange rate, I have to do the access to the html page...
3
3566
by: Merav Orion via .NET 247 | last post by:
I have a problem calling webservice from client side javascript. The javascript call the settimeout() method. when the user press submit button it ignore the press and keep refreshing the page. it looks like the data is not transferred to the asp page from the web service. just after going to internet option -> security -> Custom level -> Access data sources across domains -> and check the enable radio -> the problem is fixed. I need a...
3
1610
by: Gary H | last post by:
Hi, If I were to write an application hosted webservice (ie a webservice that is contained wholly within the application) what sort of .NET technology would I use? I am writing an application that has a GUI and allows an remote application to send messages to it via web service methods. I currently have it working but using an ASP.NET webservice that communicates with the GUI application via .NET remoting. It works OK I would rather...
3
2345
by: Zeez | last post by:
Hi all, I have a webpage that calls a webservice found on a remote computer. Below is the code of my webpage: ===================================== <html> <head> <script language="JavaScript"> var iCallID;
2
2708
by: Fred | last post by:
Hi, I have a webservice created in VB.NET 2003 hosted on a Windows 2003 server. This service inserts data into a SQL Server 2000 database also hosted on a Windows 2003 server. The webserver is in a closed DMZ and the Database Sever is on the internal network. The firewall is configured to allow traffic to the DB Server on port 1433. Form the outside world the request get passed throught to the webserver as it should be. However when...
5
2939
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I admit I am rather confused and frustrated. That being said, I'd like some direction in how exactly I'm supposed to accomplish this. Thanks very much, JK
1
2468
by: =?Utf-8?B?d2R1ZGVr?= | last post by:
I have a web service hosting a WCF library, which works fine but produced a strange signature when interacting with vs 2005/2.0 clients. My method takes 3 strings and returns a bool as below. bool CanRun(string appName, string userName, string function); However the auto generated proxy in 2005 looks like this void CanRun(string appName, string userName, string function, out bool result, out bool resultSpecified);
1
1043
by: Jeronimo Bertran | last post by:
We have a WebService on a server that uses a public IP and a special port number. Is there an easy way to access the IP using a redirection from a domain name that is hosted on a different server? For example, we are currently accessing the web service using http://75.68.20.67:91/MyService.asmx And we want to be able to access it through http://MyDomain/MyService.asmx or something similar.
2
3844
by: cmrhema | last post by:
Hi, I have a webservice, which works fine. I am working in windows xp. I hosted the webservice by integrating with .mpp file using COM component and it works successfully. Now I uploaded into the server, its windows 2003 server. When I run the webservice it executes perfectly for the first time, whereas it does not execute from second time onwards. But the same webservice when worked from visual studio 2005 inside windows server 2003,...
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.