Access the XSD file, Computer says no!
Date: 11/28/08
(Asp Dot Net) Keywords: database, sql
I keep getting an error the error 1) in my code, I am using a xsd file to call stored procedure and
access the database. This worked fine under Windows 2000 using visual basic express 2005. I am now
on a XP Machine using VS 2005 and i can get it to work. The error occurs at this point 2) and the
code that defines that dataaccess is listed as 3). So what am i doing wrong then all suggestion
accepted.
1) Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
2) content_page = dataaccess.GetContentPages()
3)
Dim content_page As Object
Dim page As Object
Dim page_number As Integer
Dim page_content As String
' call out the pages from the database
Dim dataaccess As DataSet1TableAdapters.pagesTableAdapter = New DataSet1TableAdapters.pagesTableAdapter
content_page = dataaccess.GetContentPages()
' Loop through the record set
For Each page In content_page
' assigned the page and content values to variables
page_number = page
page_content = page
Source: http://community.livejournal.com/aspdotnet/101914.html