Solved

Web.Services.MetadataLoadingException

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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 …

803 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