i am a little confused about the problem. when exactly does the security exception occur. is the exception thrown when you try to make the call to the COM component, or does it occur earlier (e.g., when you try to invoke the web service)?
when the web service app calls the COM component the user that is making the call is actually the aspnet user and not the user that you pass to the web service. so you need to make sure that this user has access to the component. hope that helps -joe -----Original Message----- From: Tarquin Vaughan-Scott [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 12:44 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Web Service Security problem Hi Listers I have a web service that calls into a VB6 COM component. I have generated the COM wrapper using VS.NET and have tested the call using a .NET windows app, it works fine. When I call the web service that then tries to call the VB6 component I get a security access denied exception. The web service is set up to use basic authentication and I have set only one role in the web.config file. The role has only one user and I pass the user credentials using a NetworkCredentials object. Even when I add the user to the administrators group I get the access denied error. Does anyone have any suggestions?? Thanks Tarquin ------------------------------------------ Tarquin Vaughan-Scott Analyst Programmer Woolworths Web Development phone: 021 407 3264 fax: 021 407 6308 cell: 082 8242474 ------------------------------------------ Please note: This e-mail and its contents are subject to a disclaimer which can be viewed at http://www.woolworths.co.za/disclaimer. Should you be unable to access the link please e-mail [EMAIL PROTECTED] and a copy of the disclaimer will be e-mailed to you. =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
