Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Mobile > Need help setting up RDA

Reply
Thread Tools

Need help setting up RDA

 
 
Phillip N Rounds
Guest
Posts: n/a
 
      03-31-2006
I'm trying to use RDA to exchange data between a CF 2.0 app and SQL Server
2005 ( Developer Edition ), and I guess I really don't know what I'm doing.

SQL Server 2005 is up and running.

I've installed SQL CE ( 3.0 ) on my development machine.

I've configured IIS ( 5.1 ) for RDA as follows:

Run SqlCE30SetupEn.exe
Run ConnWiz30 in c:\Program Files\Microsoft SQL Server 2005 Mobile\Server,
with the following selections:

Subscriber: SQL Server CE
Name: Kept current Server Name
Configure Directory: New Virtual Directory,
Call it 'RDA'
No SSL,
Anonymous Connection
Didn't select Virtual Directory used for SQL Server Merge Replication with
UNC Snapshot

The install finished with no errors, the virtual directory RDA shows up in
IIS and as a real subdirectory of c:\PF\MSSqlSrver2005\Server\,
containing the files __ServerName_RDA & sqlcesa30.dll

In VS 2005 I have my CE 2.0 application containing the following:

string dbFile = "\\mydb.sdf";
string CONN = "DataSource=" + dbFile;
SqlCeConnection _localDB;
SqlCeEngine theEngine = new SqlCeEngine( CONN);

if ( !System.IO.File.Exists( dbFile)
{
theEngine.CreateDatabase();
}

_localDB = new SqlCeConnection( CONN);
_localDB.Open();

string url = " http://MyServer/RDA/sscesa30.dll ";

SqlCeRemoteDataAccess rda = new SqlCeRemoteDataAccess( url, CONN);
string RemoteConnectString = "Provider=SQLOLEDB;Data
Source=MyServer\\Instance;User ID=MyUserID;pwd=MyPassword";
string pull = "Select * from MyTable";
rda.Pull(" LocalCopyOfMyTable", pull, RemoteConnectString);


The last command, rda.Pull(... ) generates an exception, 'An error has
occurred on the computer running IIS. Try restarting the IIS server' A
native error, 28022 is also show, though that is simply
HTTPSTATUSSERVERERROR with the same message.

Any idea of where I went wrong?

Thanks





 
Reply With Quote
 
 
 
 
Phillip N Rounds
Guest
Posts: n/a
 
      03-31-2006
Before you ask, IIS didn't kick an error to the event log.

"Phillip N Rounds" <> wrote in message
news:%23V9%...
> I'm trying to use RDA to exchange data between a CF 2.0 app and SQL Server
> 2005 ( Developer Edition ), and I guess I really don't know what I'm
> doing.
>
> SQL Server 2005 is up and running.
>
> I've installed SQL CE ( 3.0 ) on my development machine.
>
> I've configured IIS ( 5.1 ) for RDA as follows:
>
> Run SqlCE30SetupEn.exe
> Run ConnWiz30 in c:\Program Files\Microsoft SQL Server 2005
> Mobile\Server, with the following selections:
>
> Subscriber: SQL Server CE
> Name: Kept current Server Name
> Configure Directory: New Virtual Directory,
> Call it 'RDA'
> No SSL,
> Anonymous Connection
> Didn't select Virtual Directory used for SQL Server Merge Replication with
> UNC Snapshot
>
> The install finished with no errors, the virtual directory RDA shows up in
> IIS and as a real subdirectory of c:\PF\MSSqlSrver2005\Server\,
> containing the files __ServerName_RDA & sqlcesa30.dll
>
> In VS 2005 I have my CE 2.0 application containing the following:
>
> string dbFile = "\\mydb.sdf";
> string CONN = "DataSource=" + dbFile;
> SqlCeConnection _localDB;
> SqlCeEngine theEngine = new SqlCeEngine( CONN);
>
> if ( !System.IO.File.Exists( dbFile)
> {
> theEngine.CreateDatabase();
> }
>
> _localDB = new SqlCeConnection( CONN);
> _localDB.Open();
>
> string url = " http://MyServer/RDA/sscesa30.dll ";
>
> SqlCeRemoteDataAccess rda = new SqlCeRemoteDataAccess( url, CONN);
> string RemoteConnectString = "Provider=SQLOLEDB;Data
> Source=MyServer\\Instance;User ID=MyUserID;pwd=MyPassword";
> string pull = "Select * from MyTable";
> rda.Pull(" LocalCopyOfMyTable", pull, RemoteConnectString);
>
>
> The last command, rda.Pull(... ) generates an exception, 'An error has
> occurred on the computer running IIS. Try restarting the IIS server' A
> native error, 28022 is also show, though that is simply
> HTTPSTATUSSERVERERROR with the same message.
>
> Any idea of where I went wrong?
>
> Thanks
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-dev and setting up setting up f2py on Windows XP Sile Python 5 08-18-2006 08:13 AM
PLEEEEASE HELP! I NEED HELP SETTING UP MY NETWORK! =?Utf-8?B?TGFuY2U=?= Wireless Networking 1 04-21-2005 03:46 AM
URGENT: Need help in setting environment variable.. pls help Rahul S. C Programming 3 11-01-2004 10:53 AM
tomcat 4.x : setting mime type for a directory or setting a default mime type CJ Java 1 10-29-2004 07:51 PM
Setting a configurable time-out setting for all the communication initiated with Remoting object. Srinivasa Raghavan Sethuraman ASP .Net 0 06-30-2004 10:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57