Groups | Blog | Home
all groups > dotnet compact framework > january 2007 >

dotnet compact framework : running IIS failed


nafi
1/18/2007 7:43:57 PM
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
Paul G. Tobey [eMVP]
1/19/2007 9:04:55 AM
"see HRESULT". Did you?

Paul T.

[quoted text, click to view]

nafi
1/20/2007 5:36:28 AM
hi ,
"HRESULT".....what does it mean ??....why it happens??.....can u
explain me?
thank u
[quoted text, click to view]
Paul G. Tobey [eMVP]
1/22/2007 9:58:46 AM
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.


[quoted text, click to view]

nafi
1/31/2007 11:55:17 PM
On Jan 23, 12:58 am, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
[quoted text, click to view]

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
ctacke/
2/1/2007 9:03:00 AM
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
--


[quoted text, click to view]

nafi
2/1/2007 5:53:12 PM
[quoted text, click to view]

i aleady check that settings.....but still i can't solve..
Thanks
AddThis Social Bookmark Button