WCF Can Only Serialize Parameters On Development Machine?

Jul 3, 2010

I have created a WCF service using vb.net. Everything works fine on my development machine but when I deployed it it failed with the following error'There was an error while trying to deserialize parameter [URL] I call a single method on the service and it has a single parameter called 'querys'. This parameter was a list(Of CustomType). I then created a new method with a single parameter of type ArrayList. Thinking that this should serialize. Again it works fine on my development machine but fails when I deploy it with the same error a above.

I am completely stumped how it can serialize a parameter on one machine and not on another. I've tried it on 2 other machine and it doesn't work on either of them. So that rules out a problem with the machine itself.All machines are running Win XP and .Net v3.5. The service was developed using VB .net in Visual Studio 2008.I have not included any code because the error is happening System.ServiceModel and as I mentioned above the code does work on the development machine.

View 3 Replies


ADVERTISEMENT

IDE :: Size Parameters Change When Development Machine Has Different Screen Resolution?

Mar 18, 2010

We did development of a VB application on a machine with a high resolution screen. Also the machine where the real application runs has a high resolution screen. After a while we wanted to do minnor changes on the application and we wanted to use a low resolution laptop for that. When we opened the application for editing we saw that all forms changed their sized automatically AND unwanted.How can we build and change applications in one form size that does not change depending on the resolution of the machine on which edits are made?

View 2 Replies

SocketException On Deployment But Not On Development Machine?

Oct 22, 2009

I have written an async UDP client to talk to a server at my company. When I run on my developer machine all is well. When I deploy to another machine I get a socket exception on EndReceive the first time I send data over the socket. My dev box is Win7 and I have deployed to both an XP SP3 machine and a Server 2003 R2 machine. Below is the receive code:

[code]...

View 1 Replies

Why Does SMTP Code Work On Development Machine

Sep 25, 2010

I don't THINK it should be a credentials issue.I'm reading the credentials out of a database and using the same ones whether the program is running on my development machine (Win7) or my production server (Win 2008 R2).[code]

View 4 Replies

WebService Development - Constructors With Parameters

Mar 3, 2010

I'm fairly new to WebService development and have just set up my own webservice (ASP.Net 3.5, Visual Studio 2008 .asmx file). I cannot find a way of setting up my webservice to take parameters on the constructor. If I create a constructor that takes parameters, it is not then shown when I hook up to the webservice from my application (it only shows a parameterless constructor).

View 2 Replies

VS 2008 Serialize A Class That Implements An Event That Don't Want To Serialize?

Aug 17, 2010

If a class is serialized and has events fired from it that are handled on a form you get the error "Form1 cannot be serialized" in c# you can use (to work around this):

[Code]....

View 1 Replies

Cannot Access The Database From Server Machine To Client Machine Using .net 3.5?

Dec 9, 2010

I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.

View 6 Replies

.Net Software Behaves Differently From Machine To Machine?

Dec 21, 2010

I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads

View 2 Replies

C# - Search For Names In The Database That Matches Whole Parameters Or Any Part Of Parameters

May 13, 2011

I'm writing a query to select all records that has any part of parameter. I have one table called Employees. Some people have name like this: John David Clark If the parameter is

[Code]....

I should be able to get result back as long as there's a match in the parameters. If I use Function Contains (q.FirstName & " " & q.LastName).Contains(employeeName), I will not get any result back if employeeName is "John Clark" Function Contains looks only for next words from left to right. It doesn't match a single word at a time. So that's why I used this in the Linq to SQL:

[Code]....

View 2 Replies

Blocking A Particular Machine From Accessing A Machine On LAN?

Jan 21, 2008

I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....

View 9 Replies

Error [07002] The # Binded Parameters < The # Of Parameters Makers

Aug 30, 2010

I am getting error [07002] the # binded parameters < the # of parameters makers, i checked both parameters were perfect even though i am getting this error here is my code

[Code]...

View 1 Replies

C# - Difference With Parameters.Add And Parameters.AddWithValue?

Feb 6, 2012

Basically Commands has Parameters and parameters has functions like Add, AddWithValue, and etc. In all tutorials i've seen, i usually noticed that they are using Add instead of AddWithValue.

[Code]...

since it saves my coding time. So which is better to use? Which is safe to use? Does it improves performance?

View 2 Replies

Get The GET Parameters And POST Parameters In Just One Function?

Aug 6, 2011

is there a way to get the GET parameters and POST parameters in just one function or Collection in ASP.NET? Like using $_REQUEST in PHP? I'm using VB.NET.

View 3 Replies

Asp.net - 2 Arrays To Serialize?

Jun 23, 2011

I have the following code which works well:

Dim dept As New ArrayList
Dim forename As New ArrayList
objJSONStringBuilder = New StringBuilder()

[Code].....

Eventually, I will want to add more columns, i.e. surname.

View 2 Replies

Asp.net Mvc - How To Serialize Json .NET?

Apr 26, 2012

I am trying to call a rest service..that service returns json object...I am able to send the request but unable to serialize the json...here is the code i am trying

[Code]...

View 1 Replies

C# - How To Serialize Only Some Properties In .Net

Mar 15, 2010

This is for a web project so i have several classes that inherit from Web.UI.

I only want to serialize very particular properties (basically, only local properties)

I'm aware of the XMLIgnore property that can be placed on a property to ignore items, but this won't work in my context since that would require modifying a bunch of stuff that i really don't want to modify (and probably can't).

So how do i tell the xml serializer to ignore everything except for X and Y or tell it to seralize just X and Y?

i could just create my own xml in a string builder or something and if that's the only way, so be it. however i'm looking for a method that will employ the built in XML stuff.

View 3 Replies

DeSerialize And Serialize From XML To XML?

Jan 13, 2011

I am trying to read in an XML document, add a record with a tag for the filename and write to a different XML document.I have been told I must use serialization.

View 2 Replies

How To Serialize A Hashtable

Nov 2, 2009

I have a hash table in which the key is of type Point and the value is of type PieceOfBoard. PieceOfBoard is derived from PictureBox. How do I serialize this hashtable to save it to a file?Do I need to add anything to the PieceOfBoard class?

View 3 Replies

How To Serialize An Object Into XML

Oct 9, 2011

How can I serialize a .net object into XML and then de-serialize it back?

View 3 Replies

Serialize A Listview Using .net?

Nov 7, 2009

how to serialize a listview using vb.net

View 1 Replies

Serialize A Structure To XML?

Feb 27, 2010

I'm writing a test application in order to figure out how to serialize a structure to XML. I can not get the following code to work for me and it's not obvious to me.

The following defines the structures I am attempting to serialize. I think I have the xml decoration correct - but the errors I'm receiving (see below) don't really give me much information.

Imports System.IO
Imports System.Xml.Serialization
Public Module modTestSerialization

[Code]....

View 2 Replies

Serialize A Toolstrip?

Aug 9, 2009

Is it possible to serialize a toolstrip?

View 1 Replies

Transfer Or Serialize Assembly

Sep 4, 2009

I need a way to transfer a compiled assembly from client to the server and be able to store that in the database or in a file in such a way that I can grab those bytes on the "to" side and re-load assembly. Is there a way to do it. To clarify, I have a winforms application that will generate code and compile it based on some metadata. Now I need to be able to transfer this to a web site and store it somehow, but I don't want a dll (because it can be de-compiled). I would then have a "server" program on the to side, that would load this in memory. I could just transfer encrypted source code, but I thought I could just transfer compiled assembly.

View 4 Replies

.net - BinaryFormatter.Serialize With MemoryStream?

Apr 25, 2011

I am having an issue using BinaryFormatter.Serialize. I have this generic extension method to "clone" an object via binary serialization:

[Code]...

This is killing performance. Anything more that about 7 or 8 clones brings the app to a halt. Why would this happen? The USING block ought to ensure the MemoryString is disposed of, right? Shouldn't a new MemoryString be created each time? I would think since the same original Mode object is the source for the serialization, the MemoryString length would be the same.

View 1 Replies

Add XML Comment During Serialize/deserialize?

Mar 31, 2009

I have an XML document that I am deserializing (VB .NET 3.5 Framework), changing some values, and the serializing again. The original document has several XML Comments in it. When I go through all the deserialize/serialize all of the comments are lost. Is there a way to preserve the comments? If not, is there a way to add comments on serialization without having to walk through with the writer and manually add all of the comments back in the appropriate place?

View 1 Replies

Asp.net - Serialize Array To Json?

Jun 23, 2011

I have the following code which serialize an array to json:

Dim col1 As New ArrayList
Dim col2 As New ArrayList
objJSONStringBuilder = New StringBuilder()
objSQLConnection = New SqlConnection(System.Configuration.ConfigurationManager.AppSettings("connString"))
objSQLCommand = New SqlCommand("select col1, col2 from table1", objSQLConnection)
objSQLCommand.Connection.Open()

[Code]...

View 2 Replies

Possible To Serialize A Rendered Image?

Oct 30, 2009

I have a 3D Engine which renders a 3D World onto any vb.net object with an HWND(Handle) -Picturebox or Form using Direct3D.What I'd like to do is stream that image over my LAN. I know its probably a weird idea, but I have a plan.Since the image is 'rendered' onto the object, the objects 'Image' Property is null, so sending that to a byte array doesn't do any good.Now, I've tried using the picturebox.drawtobitmap function, but it is far to slow for what I'm intending.I've used several functions in the Graphics control to try and get the image data off that picturebox, but to no avail.I've even tried sampling the surface data from Direct3D but none of these objects are able to be converted to a byte array.

View 2 Replies

Possible To Serialize Arraylist Of Objects Into xml?

Feb 27, 2009

Is it possible to serialize an arraylist of objects into xml?Its damn urgent.Kindly reply.

View 1 Replies

Serialize A Class That Is Not A Custom Of Our Own?

Apr 14, 2010

I need to look at the properties of an object and I cannot instantiate this object in the proper state on my dev machine. I need my client to run some code on her machine, serialize the object in question to disk and then I can analyze the file.[code]...

View 2 Replies

Serialize A Data Table In .net?

Apr 19, 2012

I'm trying to serialize a data table in vb.net:

Dim dt As New System.Data.DataTable

and for the serializer:

Dim js As JavaScriptSerializer = New JavaScriptSerializer()
dim jsonString as string
jsonString=js.serialize(dt)

when it serialize the data table on the last line,it got an error:

An unhandled exception of type 'System.InvalidOperationException' occurred in System.Web.Extensions.dll Additional information: A circular reference was detected while serializing an object of type 'System.Globalization.CultureInfo'I even make the simplest datatable with only 1 column and 1 row, but it just won't serialize it?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved