Solved

Create a dll file for the attached C# code

Posted on 2008-10-15
3
328 Views
Last Modified: 2013-12-17
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
Comment
Question by:arjitbhandari
3 Comments
 
LVL 16

Expert Comment

by:CuteBug
ID: 22728693
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
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
ID: 22729154
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
 

Author Comment

by:arjitbhandari
ID: 22734506
Thank you...I added the Exchange WebService wsdl and cs file in the project and it worked!

Arjit
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now