running IIS failed

N

nafi

hi,
now i'm working with replication using VS.Net2003 and SQL2000.....i
couldn't syncronize ....i got error like " A request to send data to
the computer running IIS has failed.For more information ,see HRESULT"
.......here my codes



Dim rep As SqlCeReplication
Try
rep = New SqlCeReplication

rep.PublisherSecurityMode =
SecurityType.NTAuthentication

rep.InternetUrl =
"https://152.226.128.226/Northwind/sscesa20.dll"

rep.InternetLogin = "Administrator"

rep.InternetPassword = "nafipassword"

rep.Publisher = "TP-B4EYXYGNF6AN\TP"

rep.PublisherDatabase = "Northwind"

rep.PublisherLogin = "sa"

rep.Publication = "NorthwindProducts"

rep.Subscriber = SUBSCRIBER

rep.SubscriberConnectionString = "Data source=\My
Documents\Products.sdf"

If File.Exists("\My Documents\Products.sdf")
Then
rep.Synchronize()
Else
MessageBox.Show("You must first create a database",
"Error")
End If

End Try


can anyone help me!!
Thank u
 
N

nafi

hi ,
"HRESULT".....what does it mean ??....why it happens??.....can u
explain me?
thank u
 
P

Paul G. Tobey [eMVP]

HRESULT is a common return type from many Windows API calls. There should
be an hresult field in the exception that is being thrown and from which the
message you indicated originated. Add error checking to your code to catch
the exception and, in the debugger, inspect the exception object...

Paul T.
 
N

nafi

HRESULT is a common return type from many Windows API calls. There should
be an hresult field in the exception that is being thrown and from which the
message you indicated originated. Add error checking to your code to catch
the exception and, in the debugger, inspect the exception object...

Paul T.






- Show quoted text -

Thanks Mr.Poul T for ur explanation about HRESULT.
i got the
HRESULT= -2147012867
Native Error=28037
do u have any suggestions to solve this error?

Thanks
-nafi
 
G

Guest

I found this on the first try with a Google search:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=53068&SiteID=1


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


nafi said:
HRESULT is a common return type from many Windows API calls. There
should
be an hresult field in the exception that is being thrown and from which
the
message you indicated originated. Add error checking to your code to
catch
the exception and, in the debugger, inspect the exception object...

Paul T.




hi ,
"HRESULT".....what does it mean ??....why it happens??.....can u
explain me?
thank u
Paul G. Tobey [eMVP] wrote:
"see HRESULT". Did you?
hi,
now i'm working with replication using VS.Net2003 and SQL2000.....i
couldn't syncronize ....i got error like " A request to send data to
the computer runningIIShasfailed.For more information ,see HRESULT"
......here my codes
Dim rep As SqlCeReplication
Try
rep = New SqlCeReplication
rep.PublisherSecurityMode =
SecurityType.NTAuthentication
rep.InternetLogin = "Administrator"
rep.InternetPassword = "nafipassword"
rep.Publisher = "TP-B4EYXYGNF6AN\TP"
rep.PublisherDatabase = "Northwind"
rep.PublisherLogin = "sa"
rep.Publication = "NorthwindProducts"
rep.Subscriber = SUBSCRIBER
rep.SubscriberConnectionString = "Data
source=\My
Documents\Products.sdf"
If File.Exists("\My Documents\Products.sdf")
Then
rep.Synchronize()
Else
MessageBox.Show("You must first create a database",
"Error")
End If
can anyone help me!!
Thank u- Hide quoted text -

- Show quoted text -

Thanks Mr.Poul T for ur explanation about HRESULT.
i got the
HRESULT= -2147012867
Native Error=28037
do u have any suggestions to solve this error?

Thanks
-nafi
 
N

nafi

I found this on the first try with a Google search:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=53068&SiteID=1

--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded Worldwww.opennetcf.com
--




HRESULTis a common return type from many Windows API calls. There
should
be anhresultfield in the exception that is being thrown and from which
the
message you indicated originated. Add error checking to your code to
catch
the exception and, in the debugger, inspect the exception object...
Paul T.

hi ,
"HRESULT".....what does it mean ??....why it happens??.....can u
explain me?
thank u
Paul G. Tobey [eMVP] wrote:
"seeHRESULT". Did you?
Paul T.
hi,
now i'm working with replication using VS.Net2003 and SQL2000.....i
couldn't syncronize ....i got error like " A request to send data to
the computer runningIIShasfailed.For more information ,seeHRESULT"
......here my codes
Dim rep As SqlCeReplication
Try
rep = New SqlCeReplication
rep.PublisherSecurityMode =
SecurityType.NTAuthentication
rep.InternetUrl =
"https://152.226.128.226/Northwind/sscesa20.dll"
rep.InternetLogin = "Administrator"
rep.InternetPassword = "nafipassword"
rep.Publisher = "TP-B4EYXYGNF6AN\TP"
rep.PublisherDatabase = "Northwind"
rep.PublisherLogin = "sa"
rep.Publication = "NorthwindProducts"
rep.Subscriber = SUBSCRIBER
rep.SubscriberConnectionString = "Data
source=\My
Documents\Products.sdf"
If File.Exists("\My Documents\Products.sdf")
Then
rep.Synchronize()
Else
MessageBox.Show("You must first create a database",
"Error")
End If
End Try
can anyone help me!!
Thank u- Hide quoted text -
- Show quoted text -
Thanks Mr.Poul T for ur explanation aboutHRESULT.
i got the
HRESULT= -2147012867
Native Error=28037
do u have any suggestions to solve this error?
Thanks
-nafi- Hide quoted text -

- Show quoted text -

i aleady check that settings.....but still i can't solve..
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top