I write a program in WINCE5(c# 2.0) and want to interaction with my web service also written in C#2.0.
But when I use WSDL utility to generate a Service.cs and refer to it in my CE project as usual. I found I can not pass compile due to:
The type or namespace name 'AsyncCompletedEventArgs' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?)
As you may know, there're some differents in .NET Compact framework. But who can kindly tell me how to fix the issue?
Look here: http://msdn2.microsoft.com/en-us/library/ms229663.aspx
Related
I have a .net framework class library project which is absolutely working fine with the .net framework projects, Now I need to refer it in .net core application also. so I am trying to create a new .net standard project and copied all the .cs files to this project from the existing project. and started fixing the compilation errors. I have fixed many but still getting a few.
_rabbitBus = RabbitHutch.CreateBus(
ConfigurationManager.ConnectionStrings[queueName].ConnectionString,
serviceRegister => serviceRegister.Register<ISerializer>(
serviceProvider => new JsonSerializer(new TypeNameSerializer())
)
);
I am getting the below error with the code mentioned above.
CS0246 The type or namespace name 'TypeNameSerializer' could not be
found (are you missing a using directive or an assembly reference?)
So How to solve this issue?
Note: I have fixed the compilation error b using this code new JsonSerializer(new Newtonsoft.Json.JsonSerializerSettings()) , but I don't know whether its correct way or not, So please guide me how to solve this issue.
Looks like different versions of EasyNetQ are being used in .NET Framework and .NET Core.
The latest version of EasyNetQ does not have any class with name TypeNameSerializer that's why you are getting this error.
Also class JsonSerializer in latest version of EasyNetQ does no have a constructor which accepts TypeNameSerializer as a parameter.
You can refer to Git Repo of EasyNetQ and also the Source Code of JsonSerializer class.
You need to use the same version of EasyNetQ in .NET Core as it is being used in .NET Framework project in order to use TypeNameSerializer.
I have .net core (.net core app 1.1) application. I want to integrate pocketsphinx by using the official spinx wrapper.
But I get a lot of errors:
[CS0234] The type or namespace name 'HandleRef' does not exist in the namespace 'System.Runtime.InteropServices' (are you missing an assembly reference?)
How I should modify SWIG interface file? I checked all *.i files in pocketsphinx and sphinxbase to try apply solution from another answer, but I can't find any appopriate to change %typemap(imtype) and %typemap(csbody) entries.
I have the job of getting a legacy project working again. This project was done many years ago using Silverlight and C# Class Library's.
The error I am getting is to do with a namespace inside the project file called Silverlight.Business:
Code
using Tcx = global::MapTools.Xml;
Error:
The type or namespace name "MapTools" could not be found in the global namespace (are you missing an assembly reference?)
MapTools is a C# Class Library and Silverlight.Business is a Silverlight Library. Due to this I can't add a reference to MapTools inside the Silverlight project file.
The silverlight project does have a WCF RIA Service's Link but that does not connect to anything.
I am now wondering how the person that wrote the code has managed to call that namespace? I have tried researching how to add the MapTools.dll to the Global namespace but have not found anything.
Anyone have any ideas?
To do that there should be an some tool been used .
We had used in our projects a Portable library which allowed us to communicate through cross type of projects , below is the link :
https://msdn.microsoft.com/library/gg597391(v=vs.100).aspx
The type or namespace name 'XmlConfigurator' could not be found (are you missing a using directive or an assembly reference?)
Am I missing a namespace???
You have to add log4net.dll to your project and the using log4net.Config; namespace
Your missing dll. Right click on your project and Add Reference... point to correct dll.
There is the possibility that you have not added the dll. This would require right clicking your project and adding the reference DLL. There is one other step that wasn't mentioned in the previous answers that I found relevant.
There is the possibility that you are not using the correct runtime. I found that log4net requires a full profile. For instance the client profile for .NET 4 will generate this error but if you use the full profile you will not experience this.
I have two projects in my solution: MyApp.Domain and MyApp.WebService. MyApp.WebService is a WCF service library.
I want to use some utility functions from MyApp.Domain. So in MyApp.WebService, I added a reference to MyApp.Domain.
Intellisense picked it up just fine, it recognized the function I need to call. But when I build the solution, I get this error:
The type or namespace name 'Domain' does not exist in the namespace 'MyApp' (are you missing an assembly reference?)
at using MyApp.Domain.Utility;
What's going wrong here?
Make sure both are using the same profile... if one is using the client profile you could be getting this error.... also if the referenced assembly has some references in it to other assemblies you may need to include them in the project as well. If that doesn't get it make sure both have the same setting for 32 vs 64 bit...
GL
Remove WCF Service project from Solution and build solution. After building solution, add WCF project again. Issue will be resolved.