Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / September 2003



Tip: Looking for answers? Try searching our database.

Visual Basic.net security on a Network Drive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian - 26 Sep 2003 17:55 GMT
I have a vb.net application which runs fine when
installed locally on a user machine but when the
application is run from a network drive a security
exception error occurs.  I've set the intranet zone
through the .Net Configuration wizard to Full Trust and
the app still has a security exception.  I've turned on
Just in Time Debugging and noticed the security exception
is happening at that below line of code.

Dim rs As New ADODB.Recordset()

Any help would be greatly appreciated.
Simon Roberts - 26 Sep 2003 22:59 GMT
"Brian" <dumasbj@StoneEnergy.com> wrote in news:018b01c3844e$fd2ff540
$a401280a@phx.gbl:

> I have a vb.net application which runs fine when
> installed locally on a user machine but when the
[quoted text clipped - 8 lines]
>
> Any help would be greatly appreciated.

Have you tryed to download the latest MDAC from microsoft at
http://www.microsoft.com/data/ and installing that... you will probably
find for some reason the ADO is damaged or possibly you might like to try
ADO 2.8

Simon
Brian - 30 Sep 2003 18:37 GMT
Thanks for the help about the version of MDAC.  If you
don't mind I have another problem that's happening since
the ADO part is fixed.  Below is another security issue
I'm have when executing the application from a network
drive

An unhandled exception of
type 'System.Security.SecurityException' occurred in
system.windows.forms.dll

Additional information: Security error.

The line of code where it errors out at follows:

   Private Sub frmMain_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles MyBase.Load
       Dim frmMainMenu As New frmMainMenu()
       'Try
       gForm = Me
       frmMainMenu.MdiParent = Me
       frmMainMenu.Show() <----THIS IS WHERE THE ERROR IS
       'Catch Ex As Exception
       '   MessageBox.Show(Ex.Message, "",
MessageBoxButtons.OK, MessageBoxIcon.Error)
       'End Try
   End Sub

>-----Original Message-----
>"Brian" <dumasbj@StoneEnergy.com> wrote in news:018b01c3844e$fd2ff540
[quoted text clipped - 20 lines]
>Simon
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.