Solved

Web.Services.MetadataLoadingException

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

732 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