943,102 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1195
  • VB.NET RSS
Feb 20th, 2010
0

VB.NET 1.1 To VB.NET 2.0 Conversion issue

Expand Post »
Hi,
I have a project developed in VB.NET 1.1 (using VS 2003). The project has forms developed using the DataForm wizard (Connecting to Access Database, having a dataset and couple of adapter as automatically generated through the wizard - See attached screenprint "Original Form In VS 2003.PNG").

I converted the project to VB.NET 2.0 using VS2005 Express Edition.

Now when I tried to open the form from the converted project in Designer mode in VS2005 Express Edition, the form is not displayed, instead a text line similar to below (also see the screenprint "Converted Form To VS2005 Express Edition.png" attached below) is shown

VB.NET Syntax (Toggle Plain Text)
  1. <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Documents and Settings\Umesh\Local Settings\Temp\13622E.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.</font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>Object reference not set to an instance of an object. </span><br><a href="" id="details0">Hide</a><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp</font></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br> at CustomBaseForm.CommonFunctions.GetApplicationFont(OleDbConnection OleDbConnection1)<br> at CustomBaseForm.BaseForm.frmSupplierDetails_Load(Object sender, EventArgs e)<br> at System.Windows.Forms.Form.OnLoad(EventArgs e)<br> at System.Windows.Forms.Form.OnCreateControl()<br> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br> at System.Windows.Forms.Control.CreateControl()<br> at System.Windows.Forms.Control.SetVisibleCore(Boolean value)<br> at System.Windows.Forms.Form.SetVisibleCore(Boolean value)<br> at System.Windows.Forms.Control.set_Visible(Boolean value)<br> at System.Windows.Forms.Design.DesignerFrame.Initialize(Control view)<br> at System.Windows.Forms.Design.DocumentDesigner.Initialize(IComponent component)<br> at System.Windows.Forms.Design.FormDocumentDesigner.Initialize(IComponent component)<br> at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)<br> at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)<br> at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)<br> at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)<br> at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)<br> at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)<br> at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)<br> at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)<br> at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)</DIV></td></tr></table></div></body></html>

When I execute the converted project (Application), it executes perfectly and the form is also shown correctly.

How can I open the form in the designer so that I can modify the same?

Thanks in advance!!
Attached Thumbnails
Click image for larger version

Name:	Original Form In VS 2003.PNG
Views:	31
Size:	53.2 KB
ID:	13737   Click image for larger version

Name:	Converted Form To VS 2005 Express Edition.PNG
Views:	36
Size:	57.1 KB
ID:	13738  
Last edited by adatapost; Feb 21st, 2010 at 2:44 am. Reason: Added [code] tags. For easy readability, always wrap programming code within posts in [code] (code blocks).
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ukshir is offline Offline
18 posts
since Feb 2010
Feb 21st, 2010
0
Re: VB.NET 1.1 To VB.NET 2.0 Conversion issue
>How can I open the form in the designer so that I can modify the same?

Unfortunately, you can't do anything.
Moderator
Reputation Points: 2134
Solved Threads: 1227
Posting Genius
adatapost is offline Offline
6,524 posts
since Oct 2008
Feb 21st, 2010
0
Re: VB.NET 1.1 To VB.NET 2.0 Conversion issue
So does that mean I cannot upgrade my application from .Net1.1 to .Net 2.0 anyway?? That's not good. I was planning to move my applications to .Net 2.0 so as to have more functionality included in the Project.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ukshir is offline Offline
18 posts
since Feb 2010
Feb 21st, 2010
0
Re: VB.NET 1.1 To VB.NET 2.0 Conversion issue
Please check the code of frmdetailsdesign.vb of application written in 1.1 (old one).
Moderator
Reputation Points: 2134
Solved Threads: 1227
Posting Genius
adatapost is offline Offline
6,524 posts
since Oct 2008
Feb 22nd, 2010
0
Re: VB.NET 1.1 To VB.NET 2.0 Conversion issue
Click to Expand / Collapse  Quote originally posted by adatapost ...
Please check the code of frmdetailsdesign.vb of application written in 1.1 (old one).
I am sorry but I didn't get what you are suggesting??
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ukshir is offline Offline
18 posts
since Feb 2010
Feb 22nd, 2010
0
Re: VB.NET 1.1 To VB.NET 2.0 Conversion issue
>I am sorry but I didn't get what you are suggesting??

You need to check or verify the code of existing project project before migrating.

Please take a look at FAQ - http://blogs.msdn.com/peterlau/archi...11/595294.aspx
Moderator
Reputation Points: 2134
Solved Threads: 1227
Posting Genius
adatapost is offline Offline
6,524 posts
since Oct 2008
Feb 23rd, 2010
0
Re: VB.NET 1.1 To VB.NET 2.0 Conversion issue
Now there is some interesting thing regarding VB.NET 1.1 to VB.NET2.0 conversion I came across today. When I converted the same project from 1.1 to 2.0 on a machine where I have only VS2005(prof) installed the newly converted project is working fine. i.e. I can open the form in the designer and make changes. I dont know how it worked .... I am trying to figure it out and trying to understand what worked in the converted project and what not worked in previos conversion
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ukshir is offline Offline
18 posts
since Feb 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: nullreferenceexeption was unhandled
Next Thread in VB.NET Forum Timeline: Show selected row in Data Grid View





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC