When I am trying to change references in my project from DevExpress 9.2 to DevExpress 11.2 for all of them, I am getting follow exceptions in one of my classes:
<...> The type or namespace name 'DevExpress' could not be found (are you missing a using directive or an assembly reference?) <...>
<...>The type or namespace name 'LayoutControl' could not be found (are you missing a using directive or an assembly reference?) <...>
I am using following references:
DevExpress.Data
DevExpress.Utils
DevExpress.XtraBars
DevExpress.XtraEditors
DevExpress.XtraGrid
DevExpress.XtraLayout
DevExpress.XtraNavBar
When I am using v9.2 – everything is OK, but when I am changing references – I am getting following underlining:
using DevExpress.XtraLayout;
public static string GetLayout(LayoutControl layoutControl)
So, how can I change that references properly?
I think I found: DevExpress 11.2 just not working with .NET 2.0. If you have such problem, you need to change your project's target framework at least to .NET 3.5, or, of course, you can just forget about DevExpress 11.2, and use older versions of it. :)
Related
I need to move my projects from .Net Framework 4.7.2 to .Net Core platform, and I have difficulties to resolve the problem with code in part of using SHDocVw library.
I have such string of code:
using SHDocVw;
...
var list = new ShellWindows().Cast<InternetExplorer>().ToList();
and compiler fails on "ShellWindows()" and "InternetExplorer" with next message:
The type or namespace name 'ShellWindows' could not be found (are you missing a using directive or an assembly reference?)
What Nuget package is required to resolve this problem, either what class and methods can be used instead of current?
I want to run the Xamarin project and did all the updates. When I run the project I get the following error
The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
for the lines
using Windows.Storage;
using Windows.ApplicationModel.ExtendedExecution;
That's because you're missing these .dll
The recommended steps to get access to UWP APIs are listed in the dedicated blog post on Windows Blog.
Basically you can take two approaches: add the references to UWP dlls and winmd files manually or use the UwpDesktop NuGet package that will take care of this for you automatically.
For more details, you can check: How do I get access to Windows.Storage namespace?
I am following http://facebooksdk.net/docs/phone/tutorial/ for logging into my Windows Phone 8 app through Facebook. Upon going through the article when I try to run the application, it gives me error-
The type or namespace name 'FacebookSessionClient' could not be found (are you missing a using directive or an assembly reference?)`
and,
The type or namespace name 'FacebookSession' could not be found (are you missing a using directive or an assembly reference?)
I am sure I have added all references and namespaces. So what I am doing wrong?
I'm not really familiar with this, but have you imported everything correctly? See also https://stackoverflow.com/a/3964462/561485
For in the top of your class:
using Facebook.Session;
I think this component has been removed from the lastest version.
The way about login is replaced by
"Session.ActiveSession.LoginWithBehavior("email,public_profile,user_friends", FacebookLoginBehavior.);"
public enum FacebookLoginBehavior
{
LoginBehaviorApplicationOnly,
LoginBehaviorMobileInternetExplorerOnly,
LoginBehaviorWebViewOnly,
}
But I still try how to login by using Facebook Beta App. If you have any ideas, I think we can discuss about this issue.
This happens because of the version of the Facebook SDK and the Facebook.Client.
Above problem can be resolved by installing the Facebook SDK version 6.3.2 and the Facebook.Client version 0.40-alpha
You can download and install using the Package Manager Console and the command can be found in here and here too.
I know this is a common error but I have the correct reference to the System.Data.DataSetExtensions.dll added to the project and my project is a SQL CLR project built for .net 4.5 and I'm getting the error at the following line:
using System.Data.DataSetExtensions;
I also checked the properties for the dll and it is referencing the correct version for the 4.5 dll so what else could possibly be causing this issue? Is this an issue with SQL CLR projects?
System.Data.DataSetExtensions is an assembly, not a namespace. You just need to add a reference to System.Data.DataSetExtensions.dll (as you say you already have) and then a using directive for the System.Data namespace:
using System.Data;
That will pull in all the extension methods in the classes in that namespace, e.g. DataRowExtensions.
When you're looking in documentation, always be careful about the difference between namespaces and assembly names - they're often the same, but they're logically independent.
In project i have reference to Microsoft.Office.Word.Server
and in code i have method that takes argument of type ConversionJob, but when i try to compile it i have an errors
The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
The type or namespace name 'ConversionJob' could not be found (are you missing a using directive or an assembly reference?)
but when a press f12 on ConversionJob it tooks me to the class defenition
using Microsoft.Office.Word.Server.Service;
using Microsoft.SharePoint;
using System;
namespace Microsoft.Office.Word.Server.Conversions
{
public class ConversionJob
{
public ConversionJob(WordServiceApplicationProxy serviceApplicationProxy, ConversionJobSettings settings);
public ConversionJob(WordServiceApplicationProxy serviceApplicationProxy);
...
what is wrong?
target framework is .Net framework 3.5
Solution
Ive solve the problem. I look to the output and there was message:
Microsoft.Common.targets(1360,9): warning MSB3268: The primary reference "<assembly reference>" could not be resolved because it has an indirect dependency on the framework assembly "<assembly" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5". To resolve this problem, either remove the reference "<assembly>" or retarget your application to a framework version which contains "<assembly>"
i try to find solution in google and - > http://www.sanderstechnology.com/2011/warning-msb3268-you-are-about-to-experience-pain/10646/#.TtYrXGP20Z8
Check the target framework of your application, might be you´re building for the client profile but the referenced assembly requires the full framework.
Try changing the "Target Framework" to be ".NET Framework 4" instead of ".NET Framework 4 Client Profile".
Project Properties -> Application Tab -> Target Framework
You likely need to delete (MAKE SURE TO BACK IT UP) the 12.x.x.x .dll in your GAC folder, and make sure you are referencing the 14.x.x.x in your solution.
If you look at the project references, is it finding the assembly? The icon will look different if it can't resolve it.
1.Try to delete and then manualy add the reference (sometimes it helps - VS losting needed dll but not show it with another sign if not clean)
if 1. ok then backup and try to remove from GAC folder (to understatnd from where it calls assembly)
Probably you have a namespace or class with the name Office somewhere in your code. The compiler uses your namespace instead Office.
In other words I think you have a name collision with your project or any of the references you have in it.
Please investigate for overlapping namespaces / classes.