473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Security Error when sharing projects between solutions

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

Jul 21 '05 #1
1 1342
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.

-----Original Message-----
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 returna dataset to the instantiating code. This solution workswithout error.

I am trying to build another solution that will use thosesame 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

.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: chris | last post by:
im just starting to learn how sessions work and how to use them my question is if im geting a username and password from a visitor is it secure to store that information in a session variable or...
22
by: Alistair | last post by:
hello again oh knowledgable ones Today I took the plunge (more like a hell-hole dive) and upgraded to windows XP Pro.. and as I expected things are slightly different... what I didn't...
8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
1
by: Simon Neve | last post by:
Hello, This question is related to sharing .Net projects across solutions and is reposted from the SourceSafe group. We have several different solutions and want to share common assemblies...
6
by: Ken Galer | last post by:
I am working on a small project that I started at home. It originally was on the C: drive and was working properly. After bringing it to work I placed it in a folder on the server with the other...
7
by: Dan | last post by:
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for...
3
by: Dmitry Jouravlev | last post by:
Hi, I have a number of C++ solutions in Visual Studio .NET and when i compile them using "Whole Program Optimization", certain projects report a LNK1171 error saying that c2.dll could not be...
1
by: Jay W NOjwalkerSPAM | last post by:
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...
10
by: Phil | last post by:
VB2005 Express. I am developing a solution that involves a windows forms application and a number of class library projects (DLLs). Some of the DLLs require extra data files or third party dlls. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.