Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strongly typed Dataset issue
Message
 
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597457
Message ID:
01597480
Views:
36
Yes, you are correct. I didn't realize that the namespace when you copy it to a new project/solution would be automatically changed. Once I fixed it, it works.
Thank you all for your help!


>It likely to be a namespace not a reference problem.
>
>In it's original location DataFileDataSet probably shared the same namepace as the rest of the project (MyProject). The namespace of the new project is different. Either change the namespace of DataFileDataSet to match the current project namespace or refer to it by the full identifier.
>
>>I am trying to understand. In the solution where everything works, in the References section there is no entry for DataFileDataSet so I suppose it does not need to be referenced in the "new" solution.
>>Otherwise I don't see what I am missing (I am sure I do; I just can't find it).
>>Thank you.
>>
>>>You're missing a name space or a reference to an assembly.
>>>
>>>
>>>>Hi,
>>>>This must be so basic that I forgot how to do it <g>.
>>>>I am moving some pages and code from one solution to another (in VS2012).
>>>>One aspx page has the following line:
>>>>
>>>>private DataFileDataSet dstMyDataset;
>>>>
>>>>
>>>>The DataFileDataSet is a dataset consisting of file:
>>>>DataFileDataSet.xsd
>>>>DataFileDataSet.Designer.cs
>>>>DataFileDataSet.xsc
>>>>DataFileDataSet.xss
>>>>
>>>>I copied the aspx page and all dataset files from one solution to another. And in the solution where everything works the intellisense when pointing to DataFileDataSet says "Class MyProject.DataFileDataSet represents the strongly typed in-memory cache of data.
>>>>
>>>>But in the new solution the "DataFileDataSet" shows with red squiggly underline and the message is that "type or namespace could not be found ..."
>>>>
>>>>What am I missing? How do I make the strongly typed dataset "working" in the new solution? TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform