S
Steve
Hi. I'm a bit of a newbie, so please be gentle.
First, my configuration: I am using VB.NET 2003, Pocket PC 2002
(Thera) and a PPC 2000 IPAQ. My main problem is, when trying to
replicate, I get the message:
HResult: -2147012867 Message: A request to send data to the computer
running IIS has failed. For more information, see HRESULT.[,,,,,]
NativeError: 28037.
I found a MSDN page about this, but I'm not sure I'm able to follow it
correctly. But first, let me ask the easy question:
Question 1: Can someone explain conditional compilation a bit better
to me? I have the following snippet of code (which may be related to
my ultimate problem).
#If RSDIntranet Then
Public Const g_sSQLCEInternetUrl As String =
"http://128.1.1.1/sqlce/sscesa20.dll" 'RSDNET
#Else
Public Const g_sSQLCEInternetUrl As String =
"http://204.1.1.1/SQLCE/sscesa20.dll" 'Internet
#End If
In the above code, I basically need to see if I'm trying to access SQL
Server 2000 using either the LAN (internal), or using CDMA or dial-up
(external). Thus, I have two different IP addresses. Can someone
explain to me where the "RSDIntranet" is defined? I searched my
entire project, but found no Constant or variable being defined. Am I
that igorant?
Question 2: I am using merge replication, and am setting up my
connection with the following:
Dim repl As SqlCeReplication = New SqlCeReplication
repl.InternetUrl = g_sSQLCEInternetUrl
repl.Publisher = "wwwdev"
repl.PublisherSecurityMode = SecurityType.DBAuthentication
repl.InternetLogin = "TechMobile"
repl.InternetPassword = "ooLe&$3jJ;9x"
repl.PublisherLogin = "mylogin"
repl.PublisherPassword = "password"
repl.Publication = "TechMobile114Pub"
repl.SubscriberConnectionString = "Data Source=" &
MainMod.g_sDBPath
repl.Subscriber = "TechMobileSubscriber"
repl.PublisherDatabase = "TechMobile114"
repl.HostName = sEmployeeID
repl.QueryTimeout = 300
When I try to syncronize with my LAN connection, it works like a
champ. But when trying to synchronize using my Wireless WAN (again,
CDMA or dial-up), I get the "HResult..." error message at the
beginning of this post.
I'm really hoping someone can help me out. I'm very stuck.
Thanks!
Steve
First, my configuration: I am using VB.NET 2003, Pocket PC 2002
(Thera) and a PPC 2000 IPAQ. My main problem is, when trying to
replicate, I get the message:
HResult: -2147012867 Message: A request to send data to the computer
running IIS has failed. For more information, see HRESULT.[,,,,,]
NativeError: 28037.
I found a MSDN page about this, but I'm not sure I'm able to follow it
correctly. But first, let me ask the easy question:
Question 1: Can someone explain conditional compilation a bit better
to me? I have the following snippet of code (which may be related to
my ultimate problem).
#If RSDIntranet Then
Public Const g_sSQLCEInternetUrl As String =
"http://128.1.1.1/sqlce/sscesa20.dll" 'RSDNET
#Else
Public Const g_sSQLCEInternetUrl As String =
"http://204.1.1.1/SQLCE/sscesa20.dll" 'Internet
#End If
In the above code, I basically need to see if I'm trying to access SQL
Server 2000 using either the LAN (internal), or using CDMA or dial-up
(external). Thus, I have two different IP addresses. Can someone
explain to me where the "RSDIntranet" is defined? I searched my
entire project, but found no Constant or variable being defined. Am I
that igorant?
Question 2: I am using merge replication, and am setting up my
connection with the following:
Dim repl As SqlCeReplication = New SqlCeReplication
repl.InternetUrl = g_sSQLCEInternetUrl
repl.Publisher = "wwwdev"
repl.PublisherSecurityMode = SecurityType.DBAuthentication
repl.InternetLogin = "TechMobile"
repl.InternetPassword = "ooLe&$3jJ;9x"
repl.PublisherLogin = "mylogin"
repl.PublisherPassword = "password"
repl.Publication = "TechMobile114Pub"
repl.SubscriberConnectionString = "Data Source=" &
MainMod.g_sDBPath
repl.Subscriber = "TechMobileSubscriber"
repl.PublisherDatabase = "TechMobile114"
repl.HostName = sEmployeeID
repl.QueryTimeout = 300
When I try to syncronize with my LAN connection, it works like a
champ. But when trying to synchronize using my Wireless WAN (again,
CDMA or dial-up), I get the "HResult..." error message at the
beginning of this post.
I'm really hoping someone can help me out. I'm very stuck.
Thanks!
Steve