Security Exception, assembly does allow partially trusted callers

I'm fairly new to C# and .NET. I'm developing a windows application that opens up a open file dialog and chooses an excel file to grab data from for the application. When I try to run the program i get a SecurityException, "That assembly does not allow partially trusted callers."  How do I get around this problem and what could be causing it?
Who is Participating?
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
Have a look to this explanation about how to get rid of it:
kbreaux25Author Commented:
I thought adding the allow partially trusted callers to the assembler would work but I still get a security exception assembly does not allow partially trusted callers.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.