Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System.IO.FileLoadException 1

Status
Not open for further replies.

SavantMan

Programmer
Apr 17, 2002
165
US
I have a project that works just fine on one machine, but when deployed in exactly the same way on a different machine, I get a "System.IO.FileLoadException: Access is denied:" error. Knowing very little about IIS I'm not sure what the problem might be.

Going to address:
Produces:

System.IO.FileLoadException: Access is denied: 'TestServer'.
File name: "TestServer"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Runtime.Remoting.RemotingConfigInfo.LoadType(String typeName, String assemblyName)
at System.Runtime.Remoting.RemotingConfigInfo.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.RemotingConfigHandler.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.RemotingServices.GetServerTypeForUri(String URI)
at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.CanServiceRequest(HttpContext context)
at System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.InternalProcessRequest(HttpContext context)

=== Pre-bind state information ===
LOG: DisplayName = TestServer
(Partial)
LOG: Appbase = file:///c:/inetpub/LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: TestServer
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/testservice/189033a1/1d9963c7/TestServer.DLL.
LOG: Attempting download of new URL file:///c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/testservice/189033a1/1d9963c7/TestServer/TestServer.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: TestServer, Version=1.0.2231.35938, Culture=neutral, PublicKeyToken=null


Any suggestions would be greatly appreciated.
 
Access is denied" generally means a permissions problem. I'd start with checking that the relevant user ahs the correct permissions on that folder.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks ca8msm - here's a star for your reply!! I had thought that I had looked at all possible permissions issues late last night, but with a nights sleep looked again and fixed the problem this morning. Essentially I had to give full access to the "Users" group to the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 and all subfolders.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top