Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Error : Could not load file or assembly...
Last Post 05/17/2012 12:28 AM by Ulrik Motzfeldt. 11 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Ulrik Motzfeldt
New Member
New Member
Posts:9


--
05/14/2012 1:12 PM
Just installed DMX on DNN 06.00.02 (72)
DMX version: 6.0.2

The installation went OK, but I get this error, when I add the module to a page.

The error is this:

En fejl opstod.DotNetNuke.Services.Exceptions.PageLoadException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. at ComponentArt.Web.UI.CallBack.OnLoad(EventArgs args) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Anyone who can tell me what to do ?

Thank you,
Ulrik Motzfeldt
New Member
New Member
Posts:9


--
05/16/2012 7:43 PM
Someone with a good advise ?
Rob Ralston
Basic Member
Basic Member
Posts:164


--
05/16/2012 9:00 PM
Hi Ulrik,

I'll take a stab at this as I think I may know where your issue is.

From the error, you have .Net Framework 4.0 installed on the web server, and you are getting an error about an older version (1.0.x) of the System.Web.Extensions dll (which supports AJAX functions).

It is likely you need to add "bindingRedirect" statements to your web.config file, which will allow an older version request to be redirected to a newer version and still function.

(Note: I don't know if all the "<" and "\" and ">" will post correctly here, but let's see...)

In web.config, find the section. In that section you need to have redirect statements like the following, which are needed when .NET 3.5 is installed. I have not yet worked with .NET 4.0, but I suspect you need to change the "newversion" from what I have pasted below "3.5.0.0" to "4.0.0.0"

















































































Hope this helps (and posts correctly!)

Rob Ralston
Rob Ralston
Basic Member
Basic Member
Posts:164


--
05/16/2012 9:01 PM
Well, no it did not post at all, which is what I was afraid of.
Rob Ralston
Basic Member
Basic Member
Posts:164


--
05/16/2012 9:03 PM
Maybe this will work:

 



    

      

      

        

        

      

      

        

        

      

      

        

        

      

      

        

        

      



    

      

      

        

        

      

      

        

        

      

      

        

        

      

      

        

        

      



  




Rob Ralston
SilverBullet Technologies LLC
Rob Ralston
Basic Member
Basic Member
Posts:164


--
05/16/2012 9:09 PM
hmmm. I must have double pasted. let me try again.

 



    

      

      

        

        

      

      

        

        

      

      

        

        

      

      

        

        

      



  



Rob
Ulrik Motzfeldt
New Member
New Member
Posts:9


--
05/16/2012 9:15 PM
Hi

Thank you very much for your answer.
I checked the web.config - and all the newversion settings are allready set to "4.0.0.0"
Rob Ralston
Basic Member
Basic Member
Posts:164


--
05/16/2012 9:25 PM
Sorry that didn't help. Perhaps your best next step is to enable the assembly binding logging per the error message.

Rob
Ulrik Motzfeldt
New Member
New Member
Posts:9


--
05/16/2012 9:54 PM
With loggin on:

DotNetNuke.Services.Exceptions.PageLoadException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. File name: 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' === Pre-bind state information === LOG: User = NT AUTHORITY\NETWORK SERVICE LOG: DisplayName = System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = file:///C:/Data/Webs/Intranet/ LOG: Initial PrivatePath = C:\Data\Webs\Intranet\bin Calling assembly : ComponentArt.Web.UI, Version=2010.1.2193.3, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Data\Webs\Intranet\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. LOG: Redirect found in application configuration file: 1.0.61025.0 redirected to 4.0.0.0. LOG: Post-policy reference: System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 LOG: The same bind was seen before, and was failed with hr = 0x80070002. at ComponentArt.Web.UI.CallBack.OnLoad(EventArgs args) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Rob Ralston
Basic Member
Basic Member
Posts:164


--
05/16/2012 11:19 PM
Perhaps we are approaching this backwards. Please verify that .NET 4 Runtime is indeed installed on this web server.

Rob
Ulrik Motzfeldt
New Member
New Member
Posts:9


--
05/17/2012 12:02 AM
Hi

Just checked it - yes .NET 4 is installed.
Ulrik Motzfeldt
New Member
New Member
Posts:9


--
05/17/2012 12:28 AM
Sorry my fault !
The application pool was still running .NET 2.
Changed it to 4, and it is running just great :-)

Thank you very much !
You are not authorized to post a reply.