Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 23, 2012 10:12 PM by Anthraxmonki
Jan 17, 2011 05:53 PM|LINK
I hope that I can explain a bit better as my first attempt was moderated!
I've been playing with DotNetNuke and trying to get into it. I've been trying to create my first meaningful module. Yesterday I followed the Hello World tutorial at http://www.adefwebserver.com/DotNetNukeHELP/LinqTutorial2/ (and Part 1) and it all worked
This morning I went to go for the real thing and started to get an error where I didn't really expect one. Basically all I was doing was dropping an ADO Data Entity onto a page and building and was getting an error about not containing a definition for EntityTypeName.
I posted in the DNN forums and someone suggested ading the System.Data.Entity namespace, which I did. I then hit another problem so decided to go back to square one. Nice clean DNN installation (about the 20th today, and I'm not exaggerating), and back to
the tutorial. Now, I get the green squiggly line under when I put one on the page in Visual Studio. This all worked fine yesterday and no green squiggly lines in VS 2010 yesterday.
The only place the problem can be is VS 2010, but I don't understand what. I haven't done anything to it and my machine hasn't barfed that might have caused a change. Anyone any ideas, please?What is it, in VS 2010, that could have changed (and I'm asking
the DB control people because I would expect them to have a better understanding of the DB bits that I'm having problems with) that gives me the error:
Error 2 'System.Web.UI.WebControls.LinqDataSource' does not contain a definition for 'EntityTypeName' and no extension method 'EntityTypeName' accepting a first argument of type 'System.Web.UI.WebControls.LinqDataSource' could be found (are you missing
a using directive or an assembly reference?) C:\DotNetNuke\DesktopModules\HelloWorld\HelloWorld\View.ascx 2
It's driving me mad. I've spent the whole day getting further back (and confused) than I was yesterday. Any clues will be gratefully accepted.
Jan 23, 2012 10:12 PM|LINK
I feel your pain. Though this solution is more than fashionably late, it may be of use to many others out there:
If you are building in .NET 4.0,
In your Solution Explorer (View - Solution Explorer),
Click the Root file, the very top one; e.g. C:\DotNetNuke,
In the Solution Explorer, there is a Properties button (Alt + Enter), click it,
Select .NET Framework 3.5,
... ... let it spin ... ...
Switch back to .NET 4.0
Now your website/webpage should build.
Beyond this, I'm at a loss.