Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Web.Services.MetadataLoadingException

Posted on 2007-11-19
1
Medium Priority
?
384 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 2000 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

636 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