need help with a sql connection error in vb .net project



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!

.



Relevant Pages

  • Re: Help - I tried to define a home network and now I cant logon!!!
    ... Try doing the control-alt-delete again to bring up the logon ... domain or the local machine by clicking on ... to your corporate network domain. ... > network connection. ...
    (microsoft.public.win2000.security)
  • Re: Network Printer Access Denied
    ... The printer will print from the local machine it is connected to. ... > have you checked the printer connection cables? ... can that computer print on it? ... > so you know its printer sharing on the network. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: OT: FOAK, Simple Networking.
    ... or network not responding. ... Occasionally we get connection made, ... as a local machine only, and not onto the domain as such, but don't ... an IP address on the network than having a problem authenticating to ...
    (uk.rec.motorcycles)
  • Map drive to local drive..
    ... machine unless I go thru the 'entire network'.. ... I can't map this drive..or worse ... yet, my wireless connection goes down and my mapped drive is dosconnected, ... How do I map to the local machine? ...
    (microsoft.public.windowsxp.network_web)
  • RE: Problems with Permissions
    ... And SBS server is only take ... the role of an internal server. ... they are all configured to connected to internal network. ... g. Run the Configure Email and Internet Connection Wizard on SBS server. ...
    (microsoft.public.windows.server.sbs)