Solved

Web.Services.MetadataLoadingException

Posted on 2007-11-19
1
380 Views
Last Modified: 2008-02-01
I am getting the following exception:

Thinktecture.Tools.Web.Services.MetadataLoadingException: An error occured
while trying to load validation schemas. --->
System.UnauthorizedAccessException: Access to the path
'C:\WebServices\Game\trunk\GameService' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks)
   at System.Web.Services.Description.ServiceDescription.Read(String
fileName, Boolean validate)
   at System.Web.Services.Description.ServiceDescription.Read(String
fileName)
   at
Thinktecture.Tools.Web.Services.Extensions.ValidationExtension.GetInitializer(Type
serviceType)
   --- End of inner exception stack trace ---
   at
Thinktecture.Tools.Web.Services.Extensions.ValidationExtension.GetInitializer(Type
serviceType)
   at
System.Web.Services.Protocols.SoapReflectedExtension.GetInitializer(Type
serviceType)
   at
System.Web.Services.Protocols.SoapReflectedExtension.GetInitializers(Type
serviceType, SoapReflectedExtension[] extensions)
   at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
   at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
   at AccountInfoServices.AccountInfoServices..ctor() in
C:\WebServices\Game\trunk\AccountManager\AccountInfoServicesProxy.cs:line
78
   at GameServicePort.GameServicePort..ctor() in
c:\WebServices\Game\trunk\GameService\App_Code\GameServicePort\GameServicePort.cs:line
84


I have my webservice, and I have another webservice whose client is in an
external project. But still getting the above error. Anyone got any ideas
or hints.

Cheers
0
Comment
Question by:directxBOB
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 20312318
You need to give the web service authentication user the rights to a file for the target folder.  Normally, the user is ASPNET, but under certain circumstances that user can change to IUSR_<machine>.

Bob
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question