Security Error when sharing projects between solutions

G

Guest

I have some class objects each in separate projects that
belong to a solution. The projects reference one another
within that solution. The 'main' function calls the
other procedure/function (different projects) that
perform all the database work and manipulations to return
a dataset to the instantiating code. This solution works
without error.

I am trying to build another solution that will use those
same projects. The build is clean but when the code
executes, the try/catch catches an error with no error
number, just the text 'Security Error' as it steps down
to the first function in the 'main' function.

New Solution
-->Main function (Build Dataset) - [steps to here just
fine]
---->First function (add a table to the dataset) - [will
not step into here]

any help on how to resolve the error is appreciated
 
J

Jay

Attempting to create an Office solution (put some data
into Excel from SQL Server). I already have the classes
built (and in production) that build & return a dataset.
I want to reuse that code.

The error I am receiving upon execution
Error source: mscorlib
Error message: Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 failed.

I can pull out some of the functions into the top level
class and execute without modification or error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top