S
steve
I want to read and update a SharePoint list from a InfoPath project
written in VB using Visual Studio 2003. I'm getting a security error
(System.Security.SecurityException) with the following code. I added
a web reference that i called com.cgishare.www.
Dim cgishareLists As New com.cgishare.www.Lists
cgishareLists.Credentials = New
System.Net.NetworkCredential("my SharePoint ID", _
"my password")
Try
Dim node As System.Xml.XmlNode =
cgishareLists.GetListItems("Incidents", _
String.Empty, Nothing,
Nothing, String.Empty, Nothing)
Catch ex As Exception
End Try
Here's the error:
Message = "Exception of type
'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."
StackTrace = " at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at com.cgishare.www.Lists.GetListItems(String listName, String
viewName, XmlNode query, XmlNode viewFields, String rowLimit, XmlNode
queryOptions) in C:\my_data\Visual Studio Projects\New Jersey Request
and Replies\Web References\com.cgishare.www\Reference.vb:line 236
at
New_Jersey_Request_and_Replies.New_Jersey_Request_and_Replies._Startup(Application
app, XDocument doc) in C:\my_data\Visual Studio Projects\New Jersey
Request and Replies\FormCode.vb:line 37"
TargetSite = <error: an exception of type:
{System.Security.SecurityException} occurred>
System.Reflection.MethodBase
i'm stumped so far. any ideas?
thanks
steve
written in VB using Visual Studio 2003. I'm getting a security error
(System.Security.SecurityException) with the following code. I added
a web reference that i called com.cgishare.www.
Dim cgishareLists As New com.cgishare.www.Lists
cgishareLists.Credentials = New
System.Net.NetworkCredential("my SharePoint ID", _
"my password")
Try
Dim node As System.Xml.XmlNode =
cgishareLists.GetListItems("Incidents", _
String.Empty, Nothing,
Nothing, String.Empty, Nothing)
Catch ex As Exception
End Try
Here's the error:
Message = "Exception of type
'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."
StackTrace = " at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
at com.cgishare.www.Lists.GetListItems(String listName, String
viewName, XmlNode query, XmlNode viewFields, String rowLimit, XmlNode
queryOptions) in C:\my_data\Visual Studio Projects\New Jersey Request
and Replies\Web References\com.cgishare.www\Reference.vb:line 236
at
New_Jersey_Request_and_Replies.New_Jersey_Request_and_Replies._Startup(Application
app, XDocument doc) in C:\my_data\Visual Studio Projects\New Jersey
Request and Replies\FormCode.vb:line 37"
TargetSite = <error: an exception of type:
{System.Security.SecurityException} occurred>
System.Reflection.MethodBase
i'm stumped so far. any ideas?
thanks
steve