Cannot initialise SSPI package

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=.")
      oConnection.Open()

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?
LVL 8
rfgkevAsked:
Who is Participating?
 
DarthModConnect With a Mentor Commented:
Submitted to PAQ with points refunded (500)

DarthMod
Community Support Moderator
0
 
ihenryCommented:
Where's the dll being loaded from?

Read this article could help

Configuring .NET Code Access Security
http://www.15seconds.com/issue/040121.htm
0
 
rfgkevAuthor Commented:
found the problem, had one of my dll's called security.dll  stupid error really.

http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3Bq253577
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.