VS 2010 Serialization Done In DLL Won't Work In 2nd Pgm?

Dec 31, 2010

I've written one pgm that used byte serialization to save a file. It eventually morphed into a program and a library class (dll) so I could save/retrieve the byte serialization/desrerialization file from a different program that would use the same dll that originally serialized file in the first program. But, the first program seems to own the serialized file, not the DLL. The first progam is GenerateEventList and has the added reference Imports EventDBS which is the DLL. The second program EventDisplay also has Imports EventDBS to read the file. It produces the exception:

View 4 Replies


ADVERTISEMENT

Serialization Missing Dot Right Before New Line Serialization

Sep 17, 2009

I've been using XML serialization for a while, and today I realized something really odd. If I have a new line right after a "dot" (.), when i deserialize, I lose the dot. Has anyone ever had this happen to them? The following is my serialization code:

[Code]...

View 2 Replies

VS 2010 : Binary Serialization Not Completing?

Jul 26, 2010

I am sending some data in a Serialized Structure across a TcpClient Stream to a Client. Now, sometimes the results get through, other times however, it does not. I've noticed this is true when the data I'm sending gets rather large. The server locks up at sending it and can't continue on.I'm sending this structure:

<Serializable()> Public Structure SearchResults
Public Property Results As String
Public Property Search As Boolean
End Structure

When Results gets kind of big (say, 411,000 characters in length), the server fails to send it, I get no error, and I end up timing out completely. If I connect via localhost", I get it instantly, so I know my code works. My problem is I've sent different structures with more data (2 million characters) way faster (nearly instantaneously) across the Internet (not localhost) in less than half a second.

Private Sub SendMessage(ByVal message As Object)
Try
SyncLock m_Client.GetStream
BinFormatter = New Binary.BinaryFormatter()

[code]....

View 1 Replies

VS 2010 - Saving Class To File Via Serialization?

Feb 13, 2012

I am having trouble saving a class to a file via Serialization. I am getting this error:
Type 'System.Drawing.Graphics' in Assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.

I have changed the:
Public Class cJigsaw
to:
<Serializable()> Public Class cJigsaw
The next line in my class is:
Public img As Bitmap

I tried adding the <Serializable()> attribute to this code, yet it has this error:
Attribute 'SerializableAttribute' cannot be applied to 'img' because the attribute is not valid on this declaration type.

View 6 Replies

Asmx Json Serialization Versus Wcf Json Serialization?

Nov 24, 2011

I have two experimental web services. One is an asmx contained within a .net web application. The other is a WCF service library being invoked from the web application.The asmx basically does everything I need, but I think WCF would be better, except that it doesn't do anything as I would expect after fiddling with the asmx service.For example, the same method behaves differently in each:

' ASMX
<WebMethod(BufferResponse:=True, EnableSession:=False)>
Function Test(aObject as Object) as Object
' object will have been successfully serializaed into a dictionary

[code]...

View 3 Replies

Extension Method Doesn't Work [VB 2010 - VS 2010 RC]

Apr 20, 2010

I have the following extension method. However, when I type "File." this method doesn't pop-up. What did I wrong?

[Code]...

View 1 Replies

.NET WPF Ribbon 2010 .net 4.0 Does Not Work 3.5 Does

Jul 4, 2011

I just installed Microsoft Ribbon for WPF 2010 on 2 different windows 7 boxes. If I make a .net 3.5 project it works fine but a .net 4.0 it does not.I can load the sample ribbon application and it works but when I drag the ribbon controls over they just make a transparent box. I notice it does not make the XAML correct. Here is the code, 4.0 on top then 3.5 below it. Is there some setting or option I need to change?

<ribbon:Ribbon Height="136" HorizontalAlignment="Left" Name="Ribbon1" VerticalAlignment="Top" Width="618" />
<ribbon:RibbonGroup Height="100" HorizontalAlignment="Left" Margin="72,36,0,0" Name="RibbonGroup1" VerticalAlignment="Top" Width="200" />

[code]....

View 1 Replies

Does Anyone Started To Work With 2010

Sep 7, 2010

Does anyone started to work with VB 2010?. I have to migrate an application from VB6 to a new language and I've decided that I will rewrite the application on VB 2010. Well, I am here in front of the new flash 2010 and I have no idea where start. ja!

View 8 Replies

Get A Keydown Even To Work In 2010?

May 18, 2010

how to get a keydown even to work but in 2010 this seems to have changed

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If e.Keycode = Keys.Enter Then
MsgBox("test")
End If
End Sub

Apparently "KeyCode" is not in use anymore..

View 4 Replies

VS 2010 Application Don't Work?

Jul 1, 2011

VS 2010 application don't work?

View 6 Replies

VS 2010 Form1_KeyDown Don't Work?

Mar 21, 2011

I have a problem with this Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.F7 Then

MsgBox("works")
End If
End Sub

It work if Form1 has nothing on it. If I add buttons, listbox, etc. does not work. Why?

View 4 Replies

VS 2010 Get Application To Work On 3.5 Only?

May 16, 2012

My application is looking for .Net Framework 4.0 but I only have 3.5 on my machine so I get an error.How can I get my application to work on 3.5 only?Is there some code which is 4.0 code only? which creates this error?As this is corperate computer I can't upgrade to 4.0 myself either.

View 4 Replies

C# - XML Serialization In .NET?

Oct 3, 2011

I have xml like this:

<?xml version="1.0" encoding="utf-8"?>
<session xmlns="http://winscp.net/schema/session/1.0" name="blah@blah.com" start="2011-10-03T15:09:30.481Z">
<ls>

[code]....

Why is XMLSession.FileList.Count always 0. I hypothesize it has something to do with the declaration above it but I am not sure what is wrong with it. Maybe it can't accept a path, if not, how can I do it?

View 2 Replies

.net 2010 How To Work With Collections List

Feb 15, 2012

I'm trying to learn how to work with Collections list. In the past, if I wanted to create a list I would use an array and then save it to a text file after I was done manipulating the data via CSV.how to save things of different types to a list such as:

Name, Birthdate(as date), Salary

I know how to do this in an array but all the synapses aren't firing with the "new to me" collections list as collections lists are hard typed....

View 2 Replies

Button Code Does Not Work In 2010

Jan 13, 2011

I have a form in visual basic 2010 in design view. And when i debug the form. the button i have put on the form does nothing. i want the button that i added, to do what the add new item does on the toolbar at the top of the form the code i have now is

Public
Class
Form1
Private

[code]....

View 6 Replies

Get New Window To Work With Program 2010?

Nov 13, 2010

The Windows > New Window command still does not work in Visual Studio 2010.

This is SO 20th century having to edit only a single window at a time, only having that split screen.

View 8 Replies

How To Work On The Same VB 2010 Project With Another Person

Mar 24, 2012

Better Explaination of question: Is it possible to work on the same vb project at the same time?

I searched over google for help and I found a forum but it looked very complicated and I diden't feel like screw stuff p so can someone please give me a link or tell me how?

View 4 Replies

List - 2010 ListBox Does Not Work

May 26, 2011

So I am trying to code something in vb.net 2010 which will have a list box. For example:

1) Apple

2) Pizza

3) Juice

How would I display Line number 2 or any other to the user - I tried doing it with a label box like this Label1.Text = ListBox1.Text(2) - does not work.

View 2 Replies

LoadKeyboardLayout() Function Does Not Work In VB 2010

Sep 30, 2011

I want to change my default keyboard Layout for a installed another Keyboard Layout using my VB application.I googled about this and find Function LoadKeyboardLayout() Function to do that.But Is this support in vb 2010.When I wrote below code and there is no syntax error.But when I run the program there is an error called "PInvokeStackImbalance was detected." How can I solve this in vb 2010. Here is my code:

[Code]...

View 1 Replies

VS 2010 - How To Work With Collision Detection In VB

Jul 1, 2010

I have two questions.

1- I have two labels on a form, that I want to move randomly in the form. How can I do that?

2- How to work with collision detection in VB?

View 29 Replies

VS 2010 - Why The Call To NewCell Won't Work

Sep 23, 2010

Public Class Form1

Structure Tile
Dim forward As Integer
Dim left As Integer
Dim right As Integer

[CODE]...

Why the Call to NewCell won't work?

View 2 Replies

VS 2010 : Replace Function Won't Work

Aug 4, 2010

I am creating an text encryption/decryption for my friend and I to use on facebook, because his parents read his messages. I made everything correctly, but when I hit the buttons they don't do anything.

VB
Dim strString As String
Dim strString2 As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strString As String

[code]....

View 1 Replies

VS 2010 DataGridView To DataSet Won't Work

Aug 7, 2011

I' newbie and i dont understand why this won't work TableName is String "Tab"DataGridMain is name of DataGridView.[code]

View 5 Replies

VS 2010 Empty Textboxes Does Not Work

Nov 26, 2011

I do not know why this does not work. Obviously, I made a mistake somewhere.

[Code]....

View 18 Replies

VS 2010 Query Don't Work However It's Correct?

Jan 16, 2011

I'm new here, I have a problem with my query in my POS program.For a product I need to read the price of it, I made a connection with my database, it's succesful I've already tested it. When I click to a button then will a msgbox appear with the price of that product.

POS
Private Sub btnGroot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGroot.Click

[code].....

View 2 Replies

VS 2010 Tabcontrol Doesn't Work?

Jun 25, 2011

In my VB application I have a tabcontrol, with 3 pages, the first page is for some contact data, the second page wil show the website of your contact and the third page shows the location of you contact (I used the webcontrol). when I switch from page 1 to page 2 or wathever, the text in my textboxes disapears en my first page. It happens most of the times, sometimes it just works but most of the time it freaks out.

View 1 Replies

VS 2010 Transparency Doesn't Work

Jan 24, 2011

I have a form, which has the background color set to the transparency key color. On the form there is a picturebox with transparent backcolor and a picture that is semi transparent.Unfortunately the transparency doesn�t work. The form shows with a background, but not the background color I chose, but the gray control color. Nothing is transparent.The EXACT same thing works with another form.

View 4 Replies

VS 2010 Why Does Code Doesnt Work

Mar 2, 2011

So i made 3 forms in the first i made a simple textbox on form2_load i have this code [code] It SHOULD show in form 3 the input of form 2 but that simply doesnt work while it works with the same code on Form 2 . that when Form2 loads it actually has the Input of form1 but not in form 3..As i said there is NO error message and i dont know what i did wrong . Can anyoone help me out

View 20 Replies

Work With Modem In Vs2008 Or 2010?

Aug 16, 2010

If you remember in visual basic 6.0 there is a activix called VTAPI that represent the onDTMF event and PlayBackFile method:when user select number during a call, the OnDTMF event retrive the numbers or symbols and PlayBackFile can play a file when incoming call was answered.

My question is: Is there any component that can answer a incoming call and play sound and retrive the data from modem in vs 2005-2008-2010?

View 2 Replies

C# - .Net XML Serialization Based On A XSD?

Oct 20, 2009

I've been serialising and deserialising .net objects using the XmlSerializer class without problem, however we now need somebody else to look at that data to perform some analysis on it.In order to help with that we've produced an XSD based on our class like so:

xsd.exe /t:DataClass Assembly.exe

The start of the XSD looks like this:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="DataClass" nillable="true" type="DataClass" />[code].....

Bizarly, the XML produced does not adhere to the XSD generated from the same class.My question then is, is there a way of telling the XmlSerializer to serialize the object based on a given XSD? As an aside, I've looked at other ways of fixing this: I've tried re-generating the classes from the generated XSD - this seemed to have the same problem.

View 1 Replies







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