Click here to Skip to main content
16,006,749 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi All,

I cannot find a way to add the DeepZoomTools.dll to a WindowsForms application. The steps I followed are:

1) Create a new WindowsForm application

2) Add Reference to DeepZoomTools.dll found in C:\Program Files\Microsoft Expression\Deep Zoom Composer

3) Add using Microsoft.DeepZoomTools; in Form1.cs

4) Click on Build WindowsFormsApplication

5) I get the error: "The type or namespace name 'DeepZoomTools' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

Thanks in advance for your help,

Luis Nambiar
Posted
Comments
Sergey Alexandrovich Kryukov 3-Jul-12 16:02pm    
DeepZoom is for Silverlight; how can you use it with System.Windows.Forms? Not going to happen.
--SA

Check the version of the framework these dlls were compiled with. Looks like this is different from th .Net version you are using.
 
Share this answer
 
Comments
Member 7802839 3-Jul-12 13:17pm    
Hi Abhinav,

I think that the version is not the issue. The DeepZoomTool.dll is version 1.0 and was released in November 2010 by Microsoft. I am using Microsoft Visual Studio 2010 Professional.

The DeepZoomTools.dll work perfectly when I add this as a reference in a Worker Role of a Windows Azure project.

Thanks for taking the time to answer my question.

Best regards,

Luis Nambiar
Sergey Alexandrovich Kryukov 3-Jul-12 16:04pm    
Assemblies compiled for different versions of .NET Framework can work together; one problem is that DeepZoom is for Silverlight, not Forms...
--SA
If somebody has the same issue the solution is shown below.

Go to Project Properties and change the “Target framework” value from “.NET Framework 4 Client Profile” to “.NET Framework 4”.

Best regards,

Luis Nambiar
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900