 |
|
 |
please help.
I am not getting the reference data at all.
Getting error on the list box
Request:GetReferenceData PayLoad:(Queued)..Please help
|
|
|
|
 |
|
 |
Is this code in a running state ??? And can i get source code for server which would interact with this client ?? It would be very grateful to you...
Please plz plz , give the server source code
|
|
|
|
 |
|
 |
Hi,
Is it the code for the Web Service that you are looking for? If so it's in the SampleWeb folder of the Demo Project zip file (2nd link on the top of the article).
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
By web service, do u mean the server ??? I want to know that, the demo will run on one machine, so, how will the demo app interact with the server ?? I mean, client and server cannot run on one machine, so, Please explain me..
|
|
|
|
 |
|
 |
Basically, i want to know that, how will this application work, ie, ur demo application is of client side, so, from where i would get the server application??
|
|
|
|
 |
|
 |
HI,
Yes. The server here is a webservice. The demo application demonstrates how you can build both the client and server ends to be compatible with SOAB which allows you to take your SmartClient application offline.
As to how to run this solution:
You need only download db4o library[^] (Free for non commercial work) and update the reference to the db4o.dll in the SOAB project.
If you have Visual Studio (standard edition or above), simply run the demo solution selecting SampleSmartClient as the start up project. The sample webservice wil run from VS Development server.
However, if you have only VS express edition, you should deploy the SampleWeb project to a IIS and update the reference to the server in SampleSmartClient app.config.
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
I downloaded from the following link.........
http://www.db4o.com/community/qdownload.aspx?file=net2.msi"
After downloading and installing, i went back to visual studio 2005 and added the references by browsing the dll file in C:program files-->db40objects-->db4o-7.4-->bin-->net-2.0..........
There were 10 dll files, so i added all of them as references (but i first removed the existing references of db40).
But, the program still had errors (6 errors) -
Error 1 : The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?) D:\College\Major Project\Ideas\FINAL\Alternative Smart-Client Offline Application Block using Object Databases\SOAB_demo\SOAB\OfflineApplicationBlock.cs
Error 2 : The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?) D:\College\Major Project\Ideas\FINAL\Alternative Smart-Client Offline Application Block using Object Databases\SOAB_demo\SOAB\Cache\CacheManager.cs
Error 3 : The type or namespace name 'com' could not be found (are you missing a using directive or an assembly reference?) D:\College\Major Project\Ideas\FINAL\Alternative Smart-Client Offline Application Block using Object Databases\SOAB_demo\SOAB\Data\Database.cs
Error 4 : The type or namespace name 'ObjectContainer' could not be found (are you missing a using directive or an assembly reference?) D:\College\Major Project\Ideas\FINAL\Alternative Smart-Client Offline Application Block using Object Databases\SOAB_demo\SOAB\Data\Database.cs
Error 5 : The type or namespace name 'ObjectContainer' could not be found (are you missing a using directive or an assembly reference?) D:\College\Major Project\Ideas\FINAL\Alternative Smart-Client Offline Application Block using Object Databases\SOAB_demo\SOAB\Data\Database.cs
Error 6 : Metadata file 'D:\College\Major Project\Ideas\FINAL\Alternative Smart-Client Offline Application Block using Object Databases\SOAB_demo\SOAB\bin\Debug\SOAB.dll' could not be found
Warning : Could not resolve this reference. Could not locate the assembly "db4o". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
What to do now ???
Please help me sir....How to remove these errors ??
|
|
|
|
 |
|
|
 |
|
 |
Thanks for ur reply sir.
I downloaded db4o-5.5 from the above link. I installed it. then, in VS 2005, i added db4o.dll file as reference contained in the C:/db4o-5.5/dll/net/db40.dll
When i builded the project, the same 6 errors appeared again.
The following lines are having error (the bold text implies that they could not be found)
using com.db4o;
private ObjectContainer db;
public ObjectContainer RawDatabase { get { return this.db; } }
Now, what to do sir ?
I need ur help...
Please reply....
|
|
|
|
 |
|
|
 |
|
 |
Ya, it worked, thanks a lot sir. You really helped me a lot. Thanks
Sir, now the client ran successfully. So, how will i run the server on an another pc (actually i want to run client and server on different machines), but on my pc, client is running, I want server to be run on another machine.
How to do that?? and how will the server and client interact with each other ???
Actually, the code is for client and server both, so thats why i was asking you.
when i will run server and client on different pcs then how will they interact??
and sir as the code is same then how will server will be different than client when run on other pc, how will i run server on other pc, just run this application code or something else i need to add ??
|
|
|
|
 |
|
 |
Hi,
You need to publish (manually or using VS) the web service code to IIS running on the other machine. Once you've done that you need to update the app.config of the client point to the new webservice location.
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Hello Sir,
1) While running the code and making the entries of like books, authors, they are stored in the serverdb.xml file.
When i need to delete all the entries, i go to ServerDB.xml file and delete the entries.
So, by this, all names (book, author) should be deleted. but when i again compile the project, i found that, the names of authors were still there, they were not deleted.
How to solve this problem ??
2) when, in online mode, suppose on the server there is an entry :
Book-book1 (ID:1)
author-auth1 (ID:2)
country-UK
So, when, i press the refresh button, this entry gets duplicated, and if i refresh it 10 times, the entry will duplicate 10 times.
How to solve this problem ??
Please Help me sir..
|
|
|
|
 |
|
 |
Hi Nitish,
I'm wondering whether you are trying to do more with the demo application than it was intended for. Of course, you should be able to extend it to the level that it would provide you with the full functionality that you require. But, it was only supposed to demonstrate a basic set of functions; beyond which, you would have to add your own code to get what you want out of it.
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Sir, I was wondering that when I click refresh, on the running application, the treeview repeats itself. The problem is that I am not able to figure it out. Actually Sir I am new to the C# language in ASP.Net and this is giving me problem right from starting and sir please I need help!!!
Also the path followed by the control of the program when I click refresh to display
the book records is not understood by me.
It will be very kind if you answer all my queries,
Thanks in advance.
Regards
Nitish Kumar
|
|
|
|
 |
|
 |
Hi,
The reason it shows duplicate entries in the tree is because, I've forgotten to include 1 line of code
Should be:
private void btnRefreshBookList_Click( object sender, EventArgs e )
{
tvwBooks.Nodes.Clear();
// rest of the code ...
How the app behaves after clicking on refresh is:
1) Download the list of books from the Web service.
2) Display them on the tree view.
At #1 on the Web Service end:
The DataServices class loads the list of books created so far, from a XML file.
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Thank you very much sir... this problem of refresh was really annoying me a lot but you helped me out.
Sir, i had previously you about running this demo on 2 PCs where one would act as client and another as the server, and also how they would communicate.
You said that - "You need to publish (manually or using VS) the web service code to IIS running on the other machine. Once you've done that you need to update the app.config of the client point to the new webservice location."
But now i have learnt that, this demo is using ASP.NET development server (which is used to run locally), and to run this demo on 2 different PCs, we need to change ASP.NET development server to IIS.
So, how can i change that ???
Because, the root URL now is http://localhost:53619/SampleWeb
When i try to change "localhost to my ip address, it doesnt work. I think this is bcoz of using ASP.NET development server. So, how to change to IIS ???
Please clear my doubts.
With regards
Nitish
|
|
|
|
 |
|
 |
Hi,
Right click on the Web Site project in visual studio and select Publish Website. In the publish dialog box, under Target Location use the ... button to bring up a dialog box that will let you pick a "Local IIS" site to publish to.
Once you've done that, from your other machine right click on the Web References\ServiceProxy in the SampleSmartClient project and select properties.
Change the Web Reference URL property from http://localhost:/SampleWeb/Service.asmx to http://192.168.1.2/SampleWeb/Service.asmx (assuming 192.168.1.2 was the IP of the machine you published the web service on).
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Hello sir.
As you said, i followed all the above said steps for the 2 machines, but a problem occurred.
On the 1st PC (on which i gave the web reference of 2nd PC), i ran the project, and like always had, entered book name and author, but when i went to online mode, then the queued message turned into an error and no update could be made to the server.
I am not able to understand that, we r running this demo on 2 PC's. But each one is having client and a server. So, how would the updations to the server be made to the 2nd PC (because the application is designed to run on a single PC).
I mean that, we are running this demo on 2 pc's, so when we move to online mode, where would the updations to the server be stored(on which PC)??
Please sir, clear my doubts and how to solve this problem.
Thanks
Nitish
|
|
|
|
 |
|
 |
You dont' need the client and the server on the same machines. 1 machine could contain the client and the other should contain the server. The client's reference should be updated to point to the service on running on the server.
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Hello Sir, I did the same as told by you.
On 1st pc(supposed to be the server), I had run only the SampleWeb (firstly i had published the sampleweb to IIS) and on the 2nd pc(supposed to be the client), I had run SOAB+Sampleclient and had updated the reference to the server correctly(by replacing the localhost with ip address of server's pc and both pc's were on LAN).
But still the application gave error after i switched from offline to online(after making book entry in offline mode), ie errored.
What i should i do now?? Is anyone of the steps missing??
Do i have to write modified code for client and the server to solve this problem ??
Help me out sir.
Thanks
|
|
|
|
 |
|
 |
Nitish,
You would also need to create the App_Data folder in your server and make sure it has read/write permissions for IIS. Sorry I missed this one.
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Hello Sir,
I tried to run the demo on 2 PC's but i faced errors, so i find it wise to run locally first and then run on 2 different PC's.
Previously, I was running your demo application locally. But now i am running them individually like SampleWeb and SampleClient.
I have successfully hosted the Web Service (SampleWeb) on IIS and i am running (SampleClient+SOAB) in VS 2005 and i have updated the reference in serviceproxy class to - http://localhost/Service.asmx
Now, i have my web service running in browser. I then, run the client. Now, i add bookname and author name and the request goes to the queue. When i switch to online mode, then it shows - "Request:CreateAuthor Payload:author1(Errored)" (assuming the name of author entered is author1).
How to solve this problem sir ???
Please help sir.
Thanks
nitish
|
|
|
|
 |
|
 |
Can you turn on Debug > Exceptions > Break when exception is thrown for Common Language Runtime Exceptions and let me know where exactly you get an exception and what that exception is?
Sameera Perera
http://www.codoxide.com
|
|
|
|
 |
|
 |
Hello Sir,
Firstly i had my webservice running in the browser (by publishing it on IIS)
http://server6.theimagehosting.com/image.php?img=soab_image3.jpg[^]">
I am running Sampleclient+SOAB in VS2005
http://server6.theimagehosting.com/image.php?img=soab_image7.jpg[^]">[^]
I had inserted breakpoint in the "public ServiceRequest GetNextTransferableRequest()" in Queuemanager.cs http://server6.theimagehosting.com/image.php?img=soab_image2.jpg[^]">
When i run the demo, always, there was a request which was queued. I dont know why a request was there, when i had not made a request.
http://server6.theimagehosting.com/image.php?img=soab_image1.jpg[^]">
I had then, entered the bookname and author name like always and it went in the queue.
http://server6.theimagehosting.com/image.php?img=soab_image4.jpg[^]">
But when i moved to online, then, my client got stucked (no updations to server were made) and the breakpoint seemed to be correct, there was error.
http://server6.theimagehosting.com/image.php?img=soab_image5.jpg[^]">
So, how to deal with it ??
Help it out sir.
Thanks
nitish
modified on Sunday, April 19, 2009 1:47 PM
|
|
|
|
 |