I’m getting the following error when calling a method on a C# service (connected through .net remoting).
“Because of security restrictions, the type cannot be accessed.”
What is the source of this error? How can I fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve seen other solutions for similar problems, but none of them were the same solution used to solve my particular problem.
Apparently I was missing an updated AssemblyInfo.cs file which includes the following statement:
This took care of the error for me.