I have recently started to use WebMatrix. Built a few experimental sites and everything was going fairly well. Then I decided to give WebMatrix 2 RC a try. Used WebPI to download and install it, which took an eternity (something like 2-3 hours), but finished
eventually. Running WebMatrix 2, I started a new site based on the template Personal Site. Before making any changes to the site, I tried to run it. Then, I got this message:
Server Error in '/' Application.
Could not load file or assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Why is it that my system does not find the assembly Microsoft.WebPages.Configuration? If the WebMatrix installation went well, it should have been innstalled, or what?
Reinstalled WebMatrix 2 RC. First, I manually removed WebMatrix 2, Web Pages 1 and Web Pages 2. This was probably not necessary, but I did it anyhow. Reinstallation was rather quick and without problems. Then, I opened an (almost) empty site and tried
to run it. Got essentially the same error message as before:
Server Error in '/' 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.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 110: <add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Line 111: <add assembly="*" />
Line 112: <add assembly="Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> Line 113: <add assembly="System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Line 114: <add assembly="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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:4.0.30319; ASP.NET Version:4.0.30319.272
I didn´t find the value [HKLM\Software\Microsoft\Fusion!EnableLog] in the Registry, so I couldn´t enable assembly bind failure logging.
I am running Windows XP Professional, Version 2002, Service Pack 3.
Before trying WebMatrix 2, I had used WebMatrix 1 on this machine to build a few, mostly simple experimental sites to learn WebMatrix. All without problems.
Gudni G. Sig...
Member
17 Points
16 Posts
Could not load file or assembly
Jul 18, 2012 01:16 PM|LINK
Hi.
I have recently started to use WebMatrix. Built a few experimental sites and everything was going fairly well. Then I decided to give WebMatrix 2 RC a try. Used WebPI to download and install it, which took an eternity (something like 2-3 hours), but finished eventually. Running WebMatrix 2, I started a new site based on the template Personal Site. Before making any changes to the site, I tried to run it. Then, I got this message:
Server Error in '/' Application.
Could not load file or assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Why is it that my system does not find the assembly Microsoft.WebPages.Configuration? If the WebMatrix installation went well, it should have been innstalled, or what?
Gudni G. Sigurdsson
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: Could not load file or assembly
Jul 18, 2012 03:13 PM|LINK
please check Reference folder whether it has yellow mark on any dll
Mikesdotnett...
All-Star
154905 Points
19866 Posts
Moderator
MVP
Re: Could not load file or assembly
Jul 18, 2012 06:57 PM|LINK
Try uninstalling and reinstalling WebMatrix.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
Mikesdotnett...
All-Star
154905 Points
19866 Posts
Moderator
MVP
Re: Could not load file or assembly
Jul 18, 2012 06:59 PM|LINK
There is no Reference folder in an ASP.NET Web Pages site. The missing dll is one of the Web Pages framework assemblies.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
Gudni G. Sig...
Member
17 Points
16 Posts
Re: Could not load file or assembly
Jul 22, 2012 10:55 AM|LINK
Hi.
Reinstalled WebMatrix 2 RC. First, I manually removed WebMatrix 2, Web Pages 1 and Web Pages 2. This was probably not necessary, but I did it anyhow. Reinstallation was rather quick and without problems. Then, I opened an (almost) empty site and tried to run it. Got essentially the same error message as before:
Server Error in '/' 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.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 110: <add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> Line 111: <add assembly="*" /> Line 112: <add assembly="Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> Line 113: <add assembly="System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> Line 114: <add assembly="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\web.config Line: 112
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
I didn´t find the value [HKLM\Software\Microsoft\Fusion!EnableLog] in the Registry, so I couldn´t enable assembly bind failure logging.
I am running Windows XP Professional, Version 2002, Service Pack 3.
Before trying WebMatrix 2, I had used WebMatrix 1 on this machine to build a few, mostly simple experimental sites to learn WebMatrix. All without problems.
Gudni G. Sigurdsson