Re: Mobile data replication/synchronization

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



There are a variety of reasons that you can receive this message, so if you can get any of the inner error messages or error codes it would greatly help.

You also noted that you are using the device emulator; have you verified network connectivity with the emulator? (Open IE on the emulator and put in the URL to the IIS box and see if can connect)

Also, what versions of IIS and SQL Server/SQL CE are you using?

--
Nino Benvenuti
Device Application Development MVP
http://nino.net/blog


"Marilyn" <Marilyn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:AFB082EB-6C9F-4337-A86E-CE0F8A960EAA@xxxxxxxxxxxxxxxx
Okay; made some revisions. Now the error says, "A request to send data to
the computer running IIS has failed. For more information, see HRESULT."

--Marilyn

"Marilyn" wrote:

Hi,

Thanks for responding. Amit set me straight on the Mobile directory for the
mobile database. I revised the code and when I first run my Synchronize
method, it copied the database to the My Documents folder in the device
emulator. So, it's apparently where it should be right now.

After that, this IIS error comes up in the device emulator. Details of the
error says it's a NullReferenceException originating from my synchronization
code.

I looked at the Event Viewer (as you suggested) and the latest log that has
a warning has a "Userenv" source. The information on this event states,
"Windows saved user ServerName\userName registry while an application or
service was still using the registry during log off. The memory used by the
user's registry has not been freed. The registry will be unloaded when it is
no longer in use.

This is often caused by services running as a user account, try configuring
the services to run in either the LocalService or NetworkService account."

I don't know what this is about or how to correct this. Thank you for any
help.

Marilyn


"Nino Benvenuti" wrote:

> Marilyn,
>
> In your original e-mail you have a data source of ''.\NfipCeDb.sdf', > which
> would indicate that your mobile db is on the root of your device; > however,
> you noted that "local CE database resides in C:\Databases", which is > both
> contradictory and, as Amit noted, not applicable to Windows CE /Windows
> Mobile devices. So, *is* your .sdf on the root of your device?
>
> In regards to your error messages, would you please post the full text > of
> your error messages (error numbers, too)? Additionally, have you > checked the
> Event Viewer on the machine running IIS and looked at the System and
> Application logs? Or even looked at the IIS logs themselves?
>
> -- > Nino Benvenuti
> Device Application Development MVP
> http://nino.net/blog
>
>
> "Marilyn" <Marilyn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:4CB12705-99E5-4678-93F9-1AD6F9AC149F@xxxxxxxxxxxxxxxx
> > Hi,
> >
> > Thanks for your response. That was very helpful.
> > Now, I'm getting an error saying, "An error occurred on the computer
> > running
> > IIS. Try restarting the IIS Server."
> >
> > I restarted the IIS on my desktop but the error is still there. Any
> > ideas?
> > --Again appreciate your assistance.
> >
> > "Amit" wrote:
> >
> >> you mentioned C:\database as the path,but there is no concept for > >> drive
> >> on a
> >> mobile device.
> >> check out this article,hope this helps:
> >> http://msdn2.microsoft.com/en-us/library/aa446539.aspx
> >>
> >> -- > >> Thanks and Regards
> >> Amit Ranjan
> >> blog:http://amitranjan.wordpress.com
> >>
> >>
> >> "Marilyn" wrote:
> >>
> >> > Hi,
> >> >
> >> > Could anyone please give me a sample code of the subscriber > >> > database's
> >> > connection string? I'm getting either a "path not found..." or
> >> > "NullReferenceException" errors.
> >> >
> >> >
> >> > My code goes:
> >> > _repl.SubscriberConnectionString = @"Data Source
> >> > =''.\NfipCeDb.sdf';
> >> > Max Database Size = 256; Default Lock Escalation=100";
> >> >
> >> > The local CE database resides in C:\Databases and I'm trying to
> >> > synchronize
> >> > it with the SQL Server.
> >> >
> >> > Thanks for any help.
> >> > --Marilyn
> >> >
> >> >
>
>

.



Relevant Pages

  • RE: QTEK S200 & SelfSigned Certificate ?
    ... When you followed Microsoft white paper to configure Windows mobile, ... Please enable IIS logging and reproduced the issue (sync with the SBS ... QTEK S200 & SelfSigned Certificate? ...
    (microsoft.public.windows.server.sbs)
  • Re: IIS 6 from a Samba share
    ... You may want to browse my blog entries to get a basic understanding of IIS, ... I can log on from that IIS machine to the samba server using the account info. Can make mappings, delete and add files, just like a regular share. ... no error messages are given, nothing in IIS logs, nothing in samba logs, nothing in the event viewer, just the 500 I get in my browser. ... In the IIS Software Development Kit or at the MSDN Online Library, search for topics titled Debugging ASP Scripts, Debugging Components, and Debugging ISAPI Extensions and Filters. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Fao Ken Kolda
    ... This is the remote obj that is in an empty web project ... enable custom error messages, "Off" to disable. ... access must be disabled in IIS. ... which requests belong to a particular session. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Mobile data replication/synchronization
    ... In your original e-mail you have a data source of ''.\NfipCeDb.sdf', which would indicate that your mobile db is on the root of your device; however, you noted that "local CE database resides in C:\Databases", which is both contradictory and, as Amit noted, not applicable to Windows CE /Windows Mobile devices. ... *is* your .sdf on the root of your device? ... have you checked the Event Viewer on the machine running IIS and looked at the System and Application logs? ... "Amit" wrote: ...
    (microsoft.public.pocketpc.developer)
  • Re: using different versions of .NET and .CF
    ... something wrong with the connection to the computer with IIS. ... My PocketPC is connected via USB cable to this PC. ... How do you connect the emulator and which version of ActiveSync do you use? ...
    (microsoft.public.dotnet.framework.compactframework)