Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
Hello,

My Dll project is built in 4.6.1 .net Framework.

I am using the App pool of V4.0.30319 and mode is integrated mode.

I am still getting the error "could not load the assembly".

Thanks In Advance,

Nilesh Vairat


What I have tried:

C#
I did try to add the managed module in iis7.5 using the below steps:

Create the .net 4.0 Class Library, and compile it as a strong named assembly

Install it in the .net 4.0 GAC by using the gacutil, located in Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools

Add this line under <modules> in applicationHost.config:

<add name="MyName" type="NameSpace.ClassName" preCondition="managedHandler,runtimeVersionv4.0" /> 

This makes the module run on requests to sites developed in .net 4.

It appears, however, that requests to sites developed in pre .net 4 versions can't use a module created in .net 4.0

I took the reference of a thread "https://forums.iis.net/p/1187109/2014938.aspx" but this article did not solve my problem.

I am still getting the error "could not load the assembly".
Posted
Updated 11-Oct-16 21:33pm

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