Caspol Unable To Load Assembly Error
Contents |
Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search could not load file or assembly operation is not supported powershell Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups
Could Not Load File Or Assembly Operation Is Not Supported (exception From Hresult: 0x80131515)
Website Testing Store Headlines Experts Exchange > Questions > Unable to load assembly when using Caspol Want to Advertise Here? Solved Unable unblock all dlls in a folder to load assembly when using Caspol Posted on 2008-02-14 MS Development-Other Editors IDEs .NET Programming 1 Verified Solution 7 Comments 1,793 Views Last Modified: 2013-11-25 I am getting an error - Error: unable to load assembly
Installutil 0x80131515
when using Caspol. Background: I have the 1st part of this in Assembly zone but did not realise this was not for .net assembly but Assembly programming. ( please refer Error on startup of mapped network application for full problem ). Summary: I have received an error when trying to run .net application from a Network drive. It runs fine on my local drive. I understand that this is to do with permissions. loadfromremotesources enabled true I have used sn to create strong named assembly and copied it to the network location. I then used caspol -m -af k:\my folder\my app\myapp.exe and receive Error: unable to load assembly. Can anyone please tell me what I am doing wrong? Thanks 0 Question by:cmrnp Facebook Twitter LinkedIn Google LVL 1 Best Solution bycmrnp I needed quotes around the assembly name as it had spaces in it. This fixed the Error: load assembly but I still cannot run the program in question from the network. I had a quick look at the current Go to Solution 6 Comments LVL 96 Overall: Level 96 .NET Programming 63 MS Development-Other 20 Editors IDEs 15 Message Expert Comment by:Bob Learned2008-02-15 There is another way, if you add the trust level for the Intranet zone from the .NET configuration screen: 2.0-.NET-Framework-Configuration.png 0 LVL 1 Overall: Level 1 .NET Programming 1 Message Author Comment by:cmrnp2008-02-15 Sorry, as it is a clients machine. I don't want all intranet programs to have full trust. Thanks anyway. 0 LVL 96 Overall: Level 96 .NET Programming 63 MS Development-Other 20 Editors IDEs 15 Message Expert Comment by:Bob Learned2008-02-16 What is the Membership Condition for the trust? Bob 0 LVL 1 Overall: Level 1 .NET Programming 1 Message Accepted Solution by:cmrnp200
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Visual Studio and Visual Web Developer Express/Assemblies won't load from network folder Assemblies won't load from network folder [Answered]RSS 5 replies Last
Could Not Load File Or Assembly Or One Of Its Dependencies
post Aug 28, 2007 10:09 PM by Nathan_H ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Related Links Guidance Reply eelises None 0 Points 11 Posts Assemblies won't load from network folder Jun 08, 2007 08:09 AM|eelises|LINK Hi, We have a VS2005 web-application solution located on XP machine. The project is https://www.experts-exchange.com/questions/23165241/Unable-to-load-assembly-when-using-Caspol.html done by several team members. Assemlies are defined in web.config under
Error "Could not load file or assembly 'file://\\server\path\file.dll' or one of its dependencies. (0x80131515) Issue Call to a http://www.clearmindsoftware.com/post/Resolution-Error-Could-not-load-file-or-assembly-file5c5cserver5cpath5cfiledll-or-one-of-its-dependencies-(0x80131515) .NET Framework assembly on a network folder fails with error: "Could http://www.databaseforum.info/25/1253004.aspx not load file or assembly 'file://\\server\path\file.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) Troubleshooting In this particular case, I wanted to call an assembly with tests which had been deployed using Team Build to a shared folder, then use MSTest could not in the command line to run them. MSTest behaved differently depending on whether it is being called from a Windows 2008 R2 Standard server or Windows 8 Client. Using the following command line: MSTest /testcontainer:\\server\path\file.dll /detail:debugtrace /detail:traceinfo From Windows 8 client, user as local administrator: command works as expected. It loads the tests and executes them. From Windows could not load 2008 R2 Standard, user as a local administrator: command fails with the following message: Could not load file or assembly 'file://\\server\path\file.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) Further troubleshooting using 1) a mapped drive 2) PowerShell 3) /testcontainer parameter between quotes show that all these would also fail under Windows 2008 R2 Standard. The error “Could not load file or assembly” (0x80131515) is a catch-all error. For instance, it is also reported when the exe or dll was downloaded from an unsafe zone. This is fixed by right-clicking the assembly and choosing “Unlock” from the General tab. Sometimes the “Unlock” option won’t show, and in this case it wasn’t. Blocking is done based on a Zone Identifier alternate stream that is added to a file when it is copied from the Internet. To validate that the file is actually blocked, display this Zone Identifier using the following command (note the direction of the “<” sign – the opposite one would erase the file):
Top I've written a simple class as an assembly. The assembly is private, located on my hard drive, yet I get an error when I try to do FileIO from files on my own hard-drive (interestingly, in another private assembly I created and also living on my hard-drive I am able to read/write to a web site without issue). I tried loading the assembly into the caspol tool to check it's permissions but caspol always balks with "ERROR: Unable To Load Assembly". I looked at the assembly with the diassmbly tool and the everything looks fine. I can run other methods exposed by the assembly so I know the compilation is also OK.Any ideas .NET Development12 Index ‹ .NET Development ‹ Common Language Runtime