Not getting intellisense to CopyToDataTable Method - linq-to-sql

Im not able to add System.data.datatableextensions as reference and also not the method CopyTODataTable is not getting recognised.
Thanks and regards,
Veena

If you cant add a reference to the assembly, you will never get the intellisense or be able to compile the code.
IOW, you HAVE to add that reference.
Why can you not add that reference?

Related

Nancy, First razor page not working

I'm trying to get a first Razor template working with Nancy, and the first line of my .cshtml...
#inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<dynamic>
gives me 3 build errors including the following...
'NancyContext' does not contain a definition for 'ApplicationInstance' and no extension method 'ApplicationInstance' accepting a first argument of type 'NancyContext' could be found (are you missing a using directive or an assembly reference?)
One very weird thing is that I have three "errors", but they're not stopping the build. They show in the Error list, the classes are underlined in red in the Solution explorer but not in the code window. Don't believe me ? Screenshot follows...
Update
I've fixed the first two errors by adding explicit references to System.Web.Helpers and System.Web.WebPages. The remaining error, 'NancyContext' does not contain a definition for 'ApplicationInstance', is still bugging me. ApplicationInstance is a type in System.Web, for which I have a reference. If I delete the System.Web reference the project still builds. If I add the reference I still have the error.
I got the same error today and then noticed that the project was getting build in "Build + IntelliSense" mode (as in your screenshot), going to the dropdown their and building in "Build Only" mode resolved my errors!
All I can say is that ApplicationInstance is not a Nancy type. Perhaps you are missing a namespace or assembly include? https://github.com/NancyFx/Nancy/wiki/Razor-View-Engine
Other than that, you are going to have to share a lot more information or there's not much to go on

ANE Extension Context null

I am using FreshPlanet KeyboardSize ANE in my project. I have successfully added to my project but when I run
MeasureKeyboard.getInstance().setKeyboardAdjustNothing();
I get the following error.
ArgumentError: Error #3500: The extension context does not have a method with the name setKeyboardAdjustNothing.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.freshplanet.ane.KeyboardSize::MeasureKeyboard/setKeyboardAdjustNothing()e
How can I fix this?
Thanks.
Make sure both your Application-app.xml from the src and from your bin-debug folder contain the NAME_OF_THE_EXTENSION_ID tag matching exactly what is being called in your ExtensionContext.createExtensionContext(NAME_OF_THE_EXTENSION_ID,null) inside the source code of the ANE. If they don't match you'll not be able to set the external context in the initialization. That should also match the alias from your RemoteClass descriptor before the class declaration. I hope it's helpful info.
In my case what happened was that MSVCR (Microsoft visual c++ redistribution) was missing which is required to run c++ code.
Because the code in the extension was not able to run, the app could not find any function included in the ANE.
Make sure the code of your ANE is able of running either by writing logs or by running some sample native code independently.

Namespace xVal.ServerSide not recognized

I keep getting the error "The type or namespace name 'xVal' could not be found (are you missing a using directive or an assembly reference?" when I include the namespace:
using xVal.ServerSide;
Am I missing something? Please help. Thanks in advance.
The solution is very simple though. Just have to include a dll on the bin folder of the app.

Getting an error when attempting to acces a storyboard resource from code

A developer on my team did some refactoring of a control we're using in WinPhone 8 that represents a card that can be flipped.
We've created two animations using the storyboard named FrontToBackFlip and BackToFrontFlip, with declarations like: <Storyboard x:Name="FrontToBackFlip">
When a Tap is received we call
this.FrontToBackFlip.Begin()
or
this.BackToFrontFlip.Begin()
The refactoring the code worked before, but now we are getting the following error:
'Views.CardCarousel.IssuerCardControl' does not contain a definition for 'FrontToBackFlip' and no extension method 'FrontToBackFlip' accepting a first argument of type 'Views.CardCarousel.IssuerCardControl' could be found (are you missing a using directive or an assembly reference?)
Note that intellisense can find and complete the references to the Storyboards, so the namespaces and type names seem to be correct in both the XAML and code-behind. It's just that the compiler can't resolve these.
Any suggestions for tracking this down?
We were able to fix the issue by simply adding a new user control to the project, copy and paste the code from the control that was not building.

Definition mx.core:BitmapAsset could not be found. (with ant and FlashDevelop)

I saw this question:
mx.core::BitmapAsset could not be found
and the answer did not help.
I am compiling the code with ant and FlashDevelop and getting the error: Definition mx.core:BitmapAsset
If I compile normally in FlashDevelop without ant it works alright(no error).
I tried doing what they suggested in the answer and some other site and it did not work.
Namely:
I changed this xml field to true:
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
And attempted to import BitmapAsset from framework.swc
Please help me resolve this.
Either link to the flex library swc, or create your own mx.core.BitmapAsset that implements all the Interfaces BitmapAsset implements.