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?
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!
Or you could add the load from remote sources switch
{code}
<runtime>
<generatePublisherEvidence enabled="false"/>
<loadFromRemoteSources enabled="true"/>
</runtime>
{/code}
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.