Needing help at square one

Needing help at square one

Anonymous
Not applicable
1,890 Views
8 Replies
Message 1 of 9

Needing help at square one

Anonymous
Not applicable

May I bother the group with a square one problem. I see the following error message when attempting to run the first hello world type VB.NET application on a W7 64 machine running AutoCAD 2010. This message occurs when issuing the new command created by the NETLOADed DLL.

 

"Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system administrator, or use the Microsoft .NET Framework Configuration tool." 

 

I take it Microsoft has thrown up another roadblock related to either permissions, registry or both. Specifically what has happened?  Does every created DLL need unique permission or does the .NET framework in general need permission? Specifically what needs to be done for the created applications to function unhampered? Whatever the fix, is it required for all computers to run the created application?

 

Finally, knowing that I do not have administrative rights on my machine and that the "system administrator" is swamped, what methods do I have available to troubleshoot and identify the specific critical conditions that are not present on my machine. For example, would there be readable configuration files somewhere in the labyrinth of folders on my machine from which I could deduce something?

 

Thanks,aks 

0 Likes
Accepted solutions (1)
1,891 Views
8 Replies
Replies (8)
Message 2 of 9

norman.yuan
Mentor
Mentor
Accepted solution

Where your .NET dll is loaded into AutoCAD from? From a network share location, or from local drive of the running computer?

 

If it is the former, you need to learn about .NET code access security and configure the computer for that. Search the Internet for information on CASPOL.exe tool. Alternately, copy the DLL to local disk and load into AutoCAD from there.

 

 

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 9

Anonymous
Not applicable

Thank you Norman.

 

The DLL was on the network. Moving it to local solved the problem, but I had to restart AutoCAD. Apparently a subsequent NETLOAD from a local folder did not unload the previous. Is there a "NETUNLOAD" command?

 

0 Likes
Message 4 of 9

michael_robertson
Collaborator
Collaborator

There is no NetUnLoad command (it's a .NET thing, not AutoCAD).

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
0 Likes
Message 5 of 9

Anonymous
Not applicable

If there is no NetUnload (and inferring there is no NetReload) then are you saying that someone would have to restart the AutoCAD session to utilize a freshly tweaked .NET creation?

0 Likes
Message 6 of 9

jamierobertson1
Enthusiast
Enthusiast

yes, AutoCAD has to be restarted to reload your assembly.

0 Likes
Message 7 of 9

Anonymous
Not applicable

It depends on the "tweak".

Visual Studio's "Edit and Continue" is possible for some changes.

0 Likes
Message 8 of 9

Anonymous
Not applicable

Thank you. Can a newly loaded  "Assembly02" redefine a command that is defined in an already  loaded "Assembly01"? 

0 Likes
Message 9 of 9

jamierobertson1
Enthusiast
Enthusiast

Yep, you can do that.

0 Likes