msxml3.dll error '80070005'  --- Access is denied.

ClinLabsLIS
ClinLabsLIS used Ask the Experts™
on
I have ASP website. The connection string to database is stored in an xml file.
The code is - dim myServer,myLogin,myPwd
      dim xmlDOC
      set xmlDOC = Server.CreateObject("Microsoft.XMLDOM")
      xmlDOC.async = "False"
      xmlDOC.load(Server.MapPath("..\..\CONNECTION\connE.xml"))

If the anonymous user option website's security is checked, i get the above error. If the integration authentication is checked the application is working fine. How do i make this website work for anonymous user option.

thanks in advance

DG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2005
Commented:
Give IUSR_machinename and Network System read privileges on the file.
Gary DavisDir Internet Svcs

Commented:
Try forward slashes in the Server.MapPath(). I'm not sure this is your problem but it does look like a problem.
Gary Davis
Top Expert 2005

Commented:
@gardavis,

Good eye.  Could be that as well or instead of what I suggested.

Author

Commented:
Thanks for the help. I gave the users IUSR and Network read privileges to this file and it is now working fine.
Top Expert 2005

Commented:
Great!  Glad it worked out.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial