Cannot initialise SSPI package

Posted on 2004-08-16
Last Modified: 2008-01-09
I'm having a problem with integrated security on SQL Server and security permissions in .net

      Dim oConnection As New OleDb.OleDbConnection("Provider=SQLOLEDB.1;Integrated Security=SSPI;Initial Catalog=forum;Data Source=.")

Above lines of code work fine in an exe but get a "Cannot initialise SSPI package" if ran from a dll. Any ideas how to solve this?
Question by:rfgkev
LVL 20

Expert Comment

ID: 11809987
Where's the dll being loaded from?

Read this article could help

Configuring .NET Code Access Security

Author Comment

ID: 11812683
found the problem, had one of my dll's called security.dll  stupid error really.

Accepted Solution

DarthMod earned 0 total points
ID: 12143514
Submitted to PAQ with points refunded (500)

Community Support Moderator

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now