G
gregarican
My old laptop died and I copied over a VS2008 C# project to my new
one. This project entails using LINQ to query a ADO.NET Data Entity
Model and push the results into an XML file. Pretty straightforward.
When I build the project it's all good. But when I try to run the
project it fails when the program is trying to iterate through the
LINQ result set. The inner exception is listed as "Loading this
assembly would produce a different grant set from other instances."
I googled around and saw that perhaps some permissions issues are the
culprit. So I went in and verified the connection string was okay. It
is, as I built an identical ADO.NET Data Entity Model to the same DB
using the same connection settings and it tested out fine. I also went
into the app.config and set the trust as full. Still no dice getting
the program to run.
Any suggestions? When I debug my program right before the point of the
exception I see the model is totally empty of records. But I know I
can connect to it and I know my connection settings are okay. Is there
something else copying over the project that I need to change?
one. This project entails using LINQ to query a ADO.NET Data Entity
Model and push the results into an XML file. Pretty straightforward.
When I build the project it's all good. But when I try to run the
project it fails when the program is trying to iterate through the
LINQ result set. The inner exception is listed as "Loading this
assembly would produce a different grant set from other instances."
I googled around and saw that perhaps some permissions issues are the
culprit. So I went in and verified the connection string was okay. It
is, as I built an identical ADO.NET Data Entity Model to the same DB
using the same connection settings and it tested out fine. I also went
into the app.config and set the trust as full. Still no dice getting
the program to run.
Any suggestions? When I debug my program right before the point of the
exception I see the model is totally empty of records. But I know I
can connect to it and I know my connection settings are okay. Is there
something else copying over the project that I need to change?