Solved

Web.Services.MetadataLoadingException

Posted on 2007-11-19
1
370 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now