hi
I have been facing problem using C# webservices (secured using SSL).
In my webservice(secu red with SSL)
It works fine if I try to access data from database through dataset.
If I try to confirm the dataset with schema using following line
ds.ReadXMLSchem a(schema) and then access data through dataset
schema is a url to my xsd file.
schema = https://localcomputer/sample/trace.xsd
It would be of great help if you could provide any solution for this.
The error message is as follows:
System.Net.WebE xception: The underlying connection was closed: Could not
establish trust relationship with remote server. at
System.Net.Http WebRequest.Chec kFinalStatus() at
System.Net.Http WebRequest.EndG etResponse(IAsy ncResult asyncResult) at
System.Net.Http WebRequest.GetR esponse() at
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String
role, Type ofObjectToRetur n) at System.Xml.XmlT extReader.Creat eScanner() at
System.Xml.XmlT extReader.Init( ) at System.Xml.XmlT extReader.Read( ) at
System.Xml.XmlR eader.MoveToCon tent() at
System.Data.Dat aSet.ReadXmlSch ema(XmlReader reader, Boolean denyResolving) at
System.Data.Dat aSet.ReadXmlSch ema(String fileName) at
sample.WebServi ces.Utils.Commo nTasks.Retrieve ById(String EntityId, String
xmlTagName, String TableName, String PrimaryKey, String xmlFields, String
ConnectionStrin g, String Schema) in d:\sample\utils \commontasks.cs :line 101
Thanks in advance
This ds.readXMLSchem a(schema) works if not used with SSL Webservices.
the trace.xsd file is as well accessible
I have been facing problem using C# webservices (secured using SSL).
In my webservice(secu red with SSL)
It works fine if I try to access data from database through dataset.
If I try to confirm the dataset with schema using following line
ds.ReadXMLSchem a(schema) and then access data through dataset
schema is a url to my xsd file.
schema = https://localcomputer/sample/trace.xsd
It would be of great help if you could provide any solution for this.
The error message is as follows:
System.Net.WebE xception: The underlying connection was closed: Could not
establish trust relationship with remote server. at
System.Net.Http WebRequest.Chec kFinalStatus() at
System.Net.Http WebRequest.EndG etResponse(IAsy ncResult asyncResult) at
System.Net.Http WebRequest.GetR esponse() at
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String
role, Type ofObjectToRetur n) at System.Xml.XmlT extReader.Creat eScanner() at
System.Xml.XmlT extReader.Init( ) at System.Xml.XmlT extReader.Read( ) at
System.Xml.XmlR eader.MoveToCon tent() at
System.Data.Dat aSet.ReadXmlSch ema(XmlReader reader, Boolean denyResolving) at
System.Data.Dat aSet.ReadXmlSch ema(String fileName) at
sample.WebServi ces.Utils.Commo nTasks.Retrieve ById(String EntityId, String
xmlTagName, String TableName, String PrimaryKey, String xmlFields, String
ConnectionStrin g, String Schema) in d:\sample\utils \commontasks.cs :line 101
Thanks in advance
This ds.readXMLSchem a(schema) works if not used with SSL Webservices.
the trace.xsd file is as well accessible