Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2005, 07:48 AM
Registered User
 
Join Date: Oct 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.Net PROBLEM IN THE NETWORK

I wrote a very simple application in vb.net which just formats
data (fetched by a query) and show them in Datagrid.
I used Sqlclient classes (SqlConnection,SqlDataAdapter etc) and
the program looks to work perfectly in a stand alone Pc. When I tried
to run in a network (I put the DataBase in the Server and the application in a WorkStation with XP Windows) the following message
raised (formatted by a procedure):
 From : mscorlib
 Message : Requestfor the permission of type
           System.data.SqlClient.SqlclientPermission,
           System.data,Version 1.0.5000.0
           Culture = Neutral, Public Key Token=b77a5c561934e089 failed

Has anyone idea of this ?

          Thanks a lot
             Zoro

 
Old February 1st, 2005, 09:36 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

How are you connecting to the database; are you using Integrated Security or supplying a username/password?

Something to try would be, when you are within the Visual Studio IDE, open up server explorer, add/find the computer with the database server on it and drag a new connection onto a windows form. Then get your conneciton string from here and see if you still get the same error

 
Old February 7th, 2005, 07:02 PM
Authorized User
 
Join Date: Feb 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To resolve this issue you should go to COntrol Panel => Admin Tools => .Net Wizards and adjust .Net security for "Intranet" to full trust and it will work.

Regards

 
Old March 31st, 2005, 12:39 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there a way to ask for permissions to run through code?

 
Old March 31st, 2005, 02:22 PM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found and excellent blog on this topic:
http://blogs.msdn.com/shawnfa/archiv.../20/57023.aspx






Similar Threads
Thread Thread Starter Forum Replies Last Post
Map Network drive VB .Net Isra2005 General .NET 2 November 26th, 2007 02:11 PM
Problem Converting C# to VB.NET in ASP.NET kwilliams ASP.NET 2.0 Basics 0 February 9th, 2007 06:22 PM
Set Permission for a folder in network with vb.net hossrad Visual Studio 2005 0 December 4th, 2006 01:59 AM
Problem with Exercise in Beg. asp.net for VB.net! mrfella71 BOOK: Beginning ASP.NET 1.0 1 October 23rd, 2005 12:06 PM
How to display all nodes in my Network using VB 6 harini19 VB How-To 1 January 16th, 2004 10:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.