Link to home
Start Free TrialLog in
Avatar of timbuk2k
timbuk2k

asked on

ASP.Net Parser Error Message: Could not load file or assembly 'Microsoft.Matrix.Framework

I was getting a parser error when trying to display a .aspx page .  I found the solution: Add Microsoft.Matrix.Framework.dll and Microsoft.Matrix.Framework.Mobile.dll to the Bin folder.  After adding the dlls I started getting a new error that I can't find a solution for.  I've pasted in the post dll and pre dll errors below.  How do I resolve this new error.  

NEW POST DLL ERROR.....
Server Error in '/catranch' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

Source Error:
[No relevant source lines]
Source File: web.config    Line: 84
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
-------------------------------------------------------------------------------

ERROR BEFORE LOADING dll files........
Server Error in '/catranch' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 1:  <%@ Page Language="VB" %>
Line 2:  <%@ Register TagPrefix="wmx" Namespace="Microsoft.Matrix.Framework.Web.UI" Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626" %>
Line 3:  <script runat="server">
Line 4:  
Source File: /catranch/catranchsched1and1.aspx    Line: 2
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral, PublicKeyToken=6f763c9966660626' could not be loaded.

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].
 --------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Avatar of Justin_W
Justin_W

Check: Source File: web.config    Line: 84

Your app probably doesn't have enough permissions to access one of the DLL's dependencies. Try making the app's App Pool Identity "Local System" or "Administrator" and see if that resolves the issue.
Otherwise, do what the error message said here:

> To enable assembly bind failure logging, set the registry value
> [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Avatar of timbuk2k

ASKER

Thanks Justin.  My web.config file has no line 84, it's very brief.  Also I'm trying to deploy this on a remote server (1and1.com) and am just trying to follow their instructions.  They are very slow to respond to questions too :(  I've pasted the contents of my web.config file below.  Regarding your other instructions are those things I can do within my app (developed with the simplistic Web Matrix IDE).
<!-- Web.Config Configuration File -->  

<configuration>
      <system.web>
            <customErrors mode="Off"/>
            <identity impersonate="true"/>
      </system.web>
</configuration>

Thank you,
Lynn
ASKER CERTIFIED SOLUTION
Avatar of Justin_W
Justin_W

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yup, that's it for web.config.  Web Matrix is very brief (or I am) but I had to create it manually to be able to debug remotely.  The info you've provided has been very helpful.  When I view source it does list in there that there are permission related problems.  Looks like you are right that I'll have to resolve with 1and1.  At least now I know I'm moving in the right direction (slowly).
Thanks for your quick response.  I'll go ahead and close this item now.
You're welcome.