C# DLL issue

Guys,

Please help me in resolving this issue:

I am using the Microsoft.Exchange.WebServices.dll. I have referred this dll in my project and I have it in my using statement in the .cs file. When I run the application I get the below error. I dont get any compile time error. I get the error during run time. I see that it is something related to resources. Please help me to resolve this issue ASAP.

Error Finding Mail box Sys_File_Request
 Message: Could not load file or assembly 'Microsoft.Exchange.WebServices.resources, Version=15.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.    at NOVUS.Imports.DataSourceManager.ImportEmails(ImportDataSource imp, DataSource ds) in C:\NovusMain\Main\Workflow\Novus.Imports\Core\DataSourceManager.cs:line 457
aaradhana_gkAsked:
Who is Participating?
 
aaradhana_gkConnect With a Mentor Author Commented:
I found the solution myself. Microsoft.Exchange.WebServices.dll is in neutral culture and my project assembly is configured as "en-US" and it it looking for Microsoft.Exchange.WebServices with the same "en-US" culture.

When I changed my assembly to neutral culture it works.
0
 
Meir RivkinFull stack Software EngineerCommented:
Did u copy the dll to the same folder as the executable of your application?
0
 
aaradhana_gkAuthor Commented:
I saw this solution in microsoft forum and I already tried it. It doesn't work.
0
 
aaradhana_gkAuthor Commented:
Also please carefully see the error. It says 'Microsoft.Exchange.WebServices.resources'. I never use any resources. Not sure what is the meaning for this error.
0
 
aaradhana_gkAuthor Commented:
No one was able to provide me solution. I had to fight and find the solution myself.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.