473,783 Members | 2,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

remoting datatable compression issue

hi,

Please refer this article because that is the dll iam using for
compression/decompression of datatables.
http://www.eggheadcafe.com/articles/20031219.asp
This is a windows application in C# & iam using remoting extensively
for my
database layer.

In the remote server iam having a method which returns byte[] instead
of
datatable using the compression logic mentioned in the article.

The code is below,

PAB.CompressDat aSet.Wrapper objCompressData = new
PAB.CompressDat aSet.Wrapper() return return
objCompressData .CompressDataTa ble(
objData.ExecQry RetDT("sp_name" ,CommandType.St oredProcedure,c olParams));

The above code returns a compressed byte array.

Now in the client side . i decompress it & convert it to datatable.

PAB.CompressDat aSet.Wrapper objUnCompress = new
PAB.CompressDat aSet.Wrapper();
DataTable
dtTable=objUnCo mpress.Decompre ssDataTable(obj .ExecQryRetDT(" sp_name",Comman dType.StoredPro cedure,colParam s));
It is during ths conversion i receive a serializationex ception & that
too in
most machines. But in some machines it works for atleast one remoting
server. It is quite a strange thing.

THis compressdataset dll mentioned in the article does not have source
code
..
U can visit http://www.eggheadcafe.com/articles/20040311.asp
which has the source code fr ths dll

I even ran the source referencing ths new dll & i found out it is in
wrapper.cs class the exception is happenning & it is when the stream is
being deserialized using the compactformatte r.cs.
This is the exact method where the error occurs
private object Deserialize(Str eam Wire,ref Object parent) method
& at ths line
InnerList[i].SetValue(Answe r,Deserialize(W ire,ref Temp));
Error Stack information is below,

"Object type cannot be converted to target type." }
[System.Argument Exception]: {"Object type cannot be converted to target
type." }
System.Object: {System.Argumen tException}
_className: null
_COMPlusExcepti onCode: -532459699
_exceptionMetho d: {undefined value>
_exceptionMetho dString: null
_helpURL: null
_HResult: -2147024809
_innerException : { }
_message: "Object type cannot be converted to target type."
_remoteStackInd ex: 0
_remoteStackTra ceString: null
_source: null
_stackTrace: {System.Array}
_stackTraceStri ng: null
_xcode: -532459699
_xptrs: 0
HelpLink: null
HResult: -2147024809
InnerException: { }
Message: "Object type cannot be converted to target type."
Source: "mscorlib"
StackTrace: " at
System.Reflecti on.RuntimeField Info.InternalSe tValue(Object obj, Object
val,
BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean
requiresAccessC heck, Boolean isBinderDefault )\r\n at
System.Reflecti on.RuntimeField Info.SetValue(O bject obj, Object val,
BindingFlags invokeAttr, Binder binder, CultureInfo culture)\r\n at
System.Reflecti on.FieldInfo.Se tValue(Object obj, Object value)\r\n at
Serialization.F ormatters.Compa ctFormatter.Des erialize(Stream Wire,
Object&
parent) in
F:\\Projects\\p roject_offline_ compress\\Compr essDataSet\\Com pactFormatter.c s:line
670"
TargetSite: {System.Reflect ion.RuntimeMeth odInfo}
Can u please help me on this because i think some small mistake in the
compactformatte r code is resultin in this error.

Let me know if u need any further information.

Thanks,
Pavan

Nov 17 '05 #1
0 1571

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1081
by: Markus Minichmayr | last post by:
Hello! I already posted this issue on the remoting NG, but didn't get an answer, so I try it here. I have a client/server app., that communicates via .NET remoting and I need to transport large binary objects, encapsulated in a special class. The clients sumtimes run on the same machine as the server and sometimes on others.
4
3118
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give it a go). What I want to do is this: Have a server instance of the program, this server instance will receive communication from client programs (as demonstrated in the AddMessage()
0
1427
by: pavan kumar | last post by:
hi, Please refer this article because that is the dll iam using for compression/decompression of datatables. http://www.eggheadcafe.com/articles/20031219.asp This is a windows application in C# & iam using remoting extensively for my database layer. In the remote server iam having a method which returns byte instead of
15
2414
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying to use remoting for our access to the SQL server, with the remoting being via IIS. Since all of our users will have accounts in the destination domain, we want to have IIS handle the security for us and not allow anonymous. We have set this up...
5
1914
by: LGHummel | last post by:
I'm trying to host a remoting app in IIS and am getting the following error: Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache. Error: 0x80070005 Access is denied. I tried adding ASPNET to the Administrators group with no success. The error is preceded by the following warning:
8
4255
by: sandy82 | last post by:
I coded a simple example in c# In which their is a client and a server using a dll . I am confused on the Point that u have to use the .dll on both sides .Cant we have a solution of having a dll on server side and the client calling the remote service . Also Can any1 tell that whats the Practical use of remoting .How u differentiate btw remoting and Web Services
0
950
by: Phill W. | last post by:
Can VB2005 /correctly/ pass a class derived from Datatable via .Net Remoting? Using VB2003, I created a class inherited from DataTable and added some extra bits to it. All was well until I tried passing it to a "server-side" method using .Net Remoting (even /after/ persuading Remoting to serialise Custom Types). I /sent/ an instance of my /derived/ class, but my server-side component only /received/ a DataTable, with all my extra...
1
1810
by: Tommaso Caldarola | last post by:
I need to transfer big files (up to 10 Gb), now I'm using IIS via Remoting with chunk of bytes (up to 500Kb). In the following article: Middle-Tier Hosting: Enterprise Services, IIS, DCOM, Web Services, and Remoting By Rockford Lhotka http://www.15seconds.com/issue/040812.htm
13
1901
by: José Joye | last post by:
Hello, What is the best way to stop a remoting server (Singleton SAO) that has been started with RemotingConfiguration.Configure(). For sure, I want to do this without quitting the application :-) In fact, at a given time based on an internal event, I would like to stop the remoting functionality within my process. Many thanks,
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.