need help with a sql connection error in vb .net project
- From: "===Steve L. ===" <steve.lin@xxxxxxxxxxx>
- Date: 12 Aug 2005 08:51:21 -0700
i'm using sql2k with VB.studio.
when using a sql connection in my code such as
dim connect as new sqlconnect(...
....
connect.open()
in my project, the code ran fine on my local machine, but soon as i
moved the project to a network shared folder, and I've got the follow
erros:
when try to open the project:
===========================================================
The project location is not fully trusted by the .NET runtime. This is
usually because it is either a netowrk share or mapped to a network
share not on the local machine. If the ouput path is under the project
loaction, your code will not executed as fully trusted and you may
receive unexpected security exceptions.
===========================================================
and when ran the same project again, I've got another erro about
connection:
===========================================================
An unhandled exception of type 'System.Security.SecurityException'
occurred in mscorlib.dll
Additional information: Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
===========================================================
I've got the similar error msg when using integrated security in the
connection string. The strange thing is both project worked fine on my
local machine, but they won't work on network share (I'm logging
into the network as myself).
Why did this happen, and how to correct it? The ideal solution for me
will be no matter where I developed the project, I should be able to
move it to other places and it should continue to work.
thank you guys!
.
- Follow-Ups:
- Re: need help with a sql connection error in vb .net project
- From: Paul Clement
- Re: need help with a sql connection error in vb .net project
- From: Bob Butler
- Re: need help with a sql connection error in vb .net project
- Prev by Date: Re: VB program conversion from Windows 95 to Windows XP
- Next by Date: TreeView selection
- Previous by thread: SolidEdge and VB
- Next by thread: Re: need help with a sql connection error in vb .net project
- Index(es):
Relevant Pages
|