.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.NET Framework 4.0 DLL

4 REPLIES 4
Reply
Message 1 of 5
jerry.bryant
1896 Views, 4 Replies

.NET Framework 4.0 DLL

This is getting ridiculous......

AutoCAD 2011....Visual Studio 2010 Pro
I created a Framework 4.0 DLL.....and it loads and runs fine on my machine.

 

Here is my "acad.exe.config"

<configuration>

  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>

<!--All assemblies in AutoCAD are fully trusted so there's no point generating publisher evidence-->
   <runtime>       
 <generatePublisherEvidence enabled="false"/>   
   </runtime>
</configuration>

 

I went to another users machine...and had him Download .Net Framework 4.0 from:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&dis...

 

I changed his "acad.exe.config"...to be just like mine...shown above.

 

When he tries to NETLOAD the DLL he gets:

 

Cannot load assembly. Error details:
System.BadImageFormException: Could not load file or assembly "....filename....." or one of it's dependencies.
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Blah..Blah..Blah...

WHAT ON GOD"S EARTH DO I HAVE TO DO TO MAKE THIS WORK?



 

Jerry Bryant
"Swing hard and hope you hit it!"
4 REPLIES 4
Message 2 of 5
jerry.bryant
in reply to: jerry.bryant

Problem here was...I was "attempting" to run the DLL from a network location...and have since found out that .....that might not work unless you jump thru hoops...oh well...guess we'll have to copy everything down to local hard drives......great!

Jerry Bryant
"Swing hard and hope you hit it!"
Message 3 of 5
BillZndl
in reply to: jerry.bryant

Or you could add the load from remote sources switch

 

{code}

<runtime>       
 <generatePublisherEvidence enabled="false"/>
     <loadFromRemoteSources enabled="true"/>
   </runtime>

 

 

{/code}

Message 4 of 5
jerry.bryant
in reply to: BillZndl

Do you add this....loadFromRemoteSources......to the Local "acad.exe.config" file?

Jerry Bryant
"Swing hard and hope you hit it!"
Message 5 of 5
BillZndl
in reply to: jerry.bryant

That's what I did.

http://msdn.microsoft.com/en-us/library/dd409252.aspx

 

Then I set the security settings for the computers and the network location using CASPOL.exe the same as I did in earlier versions.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost