Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / September 2006

Tip: Looking for answers? Try searching our database.

IDE adding namespace to dataset controls causing error.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
masmith - 29 Aug 2006 20:10 GMT
Everytime I make changes to the form the IDE adds the form namespace to the
Dataset , TableAdapter objects in the designer code.  In order to run the
application I have to remove the namespace only for it to add the namespace
again when I edit the form again.

This is a windows application using VS 2005.

Below is example of what the IDE is generating and the error messages it
causes.
If I remove the MedError it compiles and runs.
I edit the MedError form and it adds the MedError namespaces to all the
dataset and table adapters.

Auto generated designer code:
           ...
           this.dsLivedb = new MedError.dsLivedb();
           ...
           this.sp_VisitForAcctTableAdapter = new
MedError.dsLivedbTableAdapters.sp_VisitForAcctTableAdapter();
           ...

Error    1    'MedError.MedError.dsLivedb' is a 'field' but is used like a
'type'    C:\Proj5\Win\MedError\MedError.Designer.cs    76    42    MedError

Error    2    The type name 'dsLivedbTableAdapters' does not exist in the type
'MedError.MedError'    C:\Proj5\Win\MedError\MedError.Designer.cs    84    61    MedError

Signature

Thanks,
Mark

mikael.palmblad@gmail.com - 25 Sep 2006 14:40 GMT
Hello!

I have the exact same problem. Please someone heeEeEEElp us!
masmith - 25 Sep 2006 15:09 GMT
I ended up changing the namespace used by the dataset and that seem to
resolve the problem.  It seemed to not like using the default namespace name.
Signature

Mark

> Hello!
>
> I have the exact same problem. Please someone heeEeEEElp us!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.