cassette icon indicating copy to clipboard operation
cassette copied to clipboard

Could not load type 'Cassette.Trace' from assembly 'Cassette, Version=2.4.2.13844, Culture=neutral, PublicKeyToken=null'.

Open ManojChala opened this issue 3 years ago • 3 comments

I have upgraded Cassette to new version 2.4.2, and then I started getting the below error Could not load type 'Cassette.Trace' from assembly 'Cassette, Version=2.4.2.13844, Culture=neutral, PublicKeyToken=null'. at Cassette.Web.StartUp.PreApplicationStart()

I assume Cassette.Trace is moved to some other assembly. Could you please help

ManojChala avatar May 27 '22 11:05 ManojChala

The same is happening to me.

@ManojChala did you find a way to fix it?

andresmoschini avatar Sep 14 '22 13:09 andresmoschini

Pardon me. Not sure when I asked this. I totally forgot about it because that task was over.

Regards Manoj

On Wed, Sep 14, 2022, 6:43 PM Andres Moschini @.***> wrote:

@ManojChala https://github.com/ManojChala did you find a way to fix it?

— Reply to this email directly, view it on GitHub https://github.com/andrewdavey/cassette/issues/485#issuecomment-1246747288, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXTQHE4NFEZS2BPBIA7G3C3V6HFRBANCNFSM5XD5KNGQ . You are receiving this because you were mentioned.Message ID: @.***>

ManojChala avatar Sep 14 '22 17:09 ManojChala

Finally, I fixed it removing these lines from web.config:

<system.diagnostics>
    <sources>
        <source name="Cassette" switchName="CassetteSwitch" switchType="System.Diagnostics.SourceSwitch" />
    </sources>
    <switches>
        <add name="CassetteSwitch" value="All" />
    </switches>
</system.diagnostics>

andresmoschini avatar Sep 14 '22 20:09 andresmoschini