02.04.2013 Views

Sentinel Hardware Keys Developer's Guide - Customer Connection ...

Sentinel Hardware Keys Developer's Guide - Customer Connection ...

Sentinel Hardware Keys Developer's Guide - Customer Connection ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 – Protecting Applications Using CodeCover<br />

Contents Glossary Index Troubleshooting<br />

Question 5: Can I protect .NET DLLs using CodeCover? Are there<br />

any prerequisites for protecting .NET DLLs?<br />

Yes, you can protect both .NET executables and DLLs using CodeCover.<br />

However, please note the following:<br />

104 <strong>Sentinel</strong> <strong>Hardware</strong> <strong>Keys</strong> Developer’s <strong>Guide</strong><br />

<br />

For .NET 1.0, 1.1, 2.0, 3.0, and 3.5 DLLs, you need to install .NET<br />

SDK of the same version as of the .NET DLL you want to protect. For<br />

example, install .NET SDK 1.1 to protect .NET 1.1 DLLs and .NET SDK<br />

2.0 to protect .NET 2.0 DLLs.<br />

For .NET 4.0 (Beta1/Beta 2) DLLs, you need to install Windows SDK<br />

7.0 and .NET Framework 2.0.<br />

Please note that an exception may occur while executing a 32-bit .NET 2.0,<br />

3.0, 3.5, or 4.0 DLL, protected using CodeCover. This exception occurs<br />

when applications are compiled using Any CPU configuration with only<br />

DLLs being protected and both executable and DLL being executed on a 64bit<br />

platform. To avoid this, please use any of the following methods with the<br />

executable calling this DLL:<br />

Select x86 configuration at the build time.<br />

Use the CorFlags Conversion tool to modify the binary (Type<br />

CorFlags theApp.exe /32bit+ in the command prompt and<br />

press Enter).<br />

Question 6: I am using XML serialization in my .NET executables.<br />

Are there any precautions to be taken care of?<br />

Here are the precautions to be taken care of while using CodeCover:<br />

Note: Windows 64-bit .NET applications that use XML serialization cannot be<br />

licensed on 32-bit operating system when .NET Enhancement option is<br />

selected.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!