Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

System.TypeLoadException: 'Could not load type 'System.Web.Hosting.HostingEnvironment'

Open vijayrkn opened this issue 5 years ago • 7 comments

Creating bug on behalf of the VS customer.

More details available here - https://developercommunity.visualstudio.com/content/problem/715105/systemtypeloadexception-could-not-load-type-system.html

vijayrkn avatar Sep 25 '19 21:09 vijayrkn

Any more on this please?

luanau avatar Oct 02 '19 19:10 luanau

Is this fixed now ?

vinlamba09 avatar Sep 28 '20 08:09 vinlamba09

I want to use Aria SDK(Microsoft. Applications.Telemetry.Azure nuget) in my azure function . This has dependency on Microsoft.WindowsAzure.ServiceRuntime and hence I am getting this error :

host error has occurred during startup operation 'xyz' Microsoft.WindowsAzure.ServiceRuntime: The type initializer for 'Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment' threw an exception. Microsoft.WindowsAzure.ServiceRuntime: Could not load type 'System.Web.Hosting.HostingEnvironment' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Let me know how to fix this.

vinlamba09 avatar Sep 28 '20 08:09 vinlamba09

any upadte on this

kabitapatra avatar Jan 04 '21 16:01 kabitapatra

Any update on this?

johnstaveley avatar Feb 14 '22 06:02 johnstaveley