login about faq

Hi. My customer has a web site that apparently uses your software. We are willing to buy it for our own web servers, however it looks like it’s a lot more involved than just registering a DLL.

Do we have to go through the steps with Visual Studio, or is there a version of the ChilKat .NET Components that we can just install and be done?

asked Mar 15 '13 at 16:01

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


The Chilkat .NET assembly is a mixed-mode assembly which means internally it contains native code. Many web applications or user accounts are restricted to Medium Trust. However, an assembly that contains native code requires Full Trust to be granted.

I'm not intimately familiar with trust levels in ASP.NET. I'm guessing you can set the trust level at a variety of different places: For an entire website, perhaps for a specific application, or a directory, etc. I do know that it's possible to assign full trust to a particular assembly. Way back in 2006 I wrote this:

Giving Full Trust to a Strong-Named Assembly in a Medium Trust Environment

To modify the medium trust configuration, edit the web_mediumtrust.config file found in the WindowsMicrosoft.NETFrameworkv2.0.****CONFIG directory. At the beginning of the CodeGroup section, insert a CodeGroup fragment for the DLL to be trusted. The DLL is trusted based on the PublicKeyBlob (thus the DLL must be strong-named and signed). The bold text is the text that should be inserted to give ChilkatDotNet2.dll full trust:

(This was for the 2.0/3.5 Framework. I'm sure the similar would apply to the 4.0 or 4.5 Frameworks)

...
    <CodeGroup
        class="FirstMatchCodeGroup"
        version="1"
        PermissionSetName="Nothing">
        <IMembershipCondition
                class="AllMembershipCondition"
                version="1"
        />
        <CodeGroup
            class="UnionCodeGroup"
            version="1″
            PermissionSetName="FullTrust"
            Name="Chilkat_Components"
            Description="This code group grants the ChilkatDotNet2.dll full trust">
            <IMembershipCondition
                    class="StrongNameMembershipCondition"
                    version="1″
                    PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100B535D66DF2C8716055B05EB7F3D332451F89D5A293FC1F9B0244D4EC465FA04AEEC12D5F9731296D95334B311D4015C0567A5CE42475E1192E11798F8463B624FA6E655737207ACAFE2D68F67C2337BAD527BF4D1FB44077845BF93260FC0FFCD0EB30FE7C7290463697F235B71979478BB33DE14B9F73DBAA5402A2767A1ABE"
        />
        </CodeGroup>

    &lt;CodeGroup
            class="UnionCodeGroup"
            version="1″
            PermissionSetName="ASP.Net">
        &lt;IMembershipCondition
                class="UrlMembershipCondition"
                version="1″
                Url="$AppDirUrl$/*"
        />
    &lt;/CodeGroup>

link

answered Mar 15 '13 at 16:10

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

PS> Other than copying the .NET assembly (DLL) onto the system where it will be used, there is nothing else required for an "install".

(Mar 15 '13 at 16:13) chilkat ♦♦

Also, you may install the assembly in a GAC.

(Mar 15 '13 at 16:13) chilkat ♦♦

Finally, if the ASP.NET worker processes are running as 64-bit processes, make sure to use the 64-bit Chilkat .NET assembly. Otherwise use the 32-bit assembly.

(Mar 15 '13 at 16:13) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×17
×12
×4

Asked: Mar 15 '13 at 16:01

Seen: 2,370 times

Last updated: Mar 15 '13 at 16:13

powered by OSQA