• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • Last Modified:

Create a dll file for the attached C# code

Hi,

I want to create a dll file for the attached C# code for calling the Exchange 2007 WebService. I am using Visual Studio 2008 and I am getting "missing directive or assembly reference" when I am trying to build the code in a "class library" project. However, when I write this code in a "Web page" project, I do not get any errors.

Please suggest what can be done to create a working dll for this.

Thanks
Arjit
wscall.txt
0
arjitbhandari
Asked:
arjitbhandari
1 Solution
 
CuteBugCommented:
Can you provide the exact error message.

You might need to add reference to a particular DLL to your project, for it to compile.
0
 
TechTiger007Commented:
It says you have to add reference to few DLLs in your project.
Goto solution explorer and compare the "References" in both class library and web project. Add those DLL that are missing. Also check the "using" part in your code you may be missing something there.
0
 
arjitbhandariAuthor Commented:
Thank you...I added the Exchange WebService wsdl and cs file in the project and it worked!

Arjit
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now