.net - Using Two Versions Of The Same Assembly (system.web.mvc) At The Same Time?

May 13, 2010

I'm using a content management system whose admin interface uses MVC 1.0. I would like to build the public parts of the site using MVC 2.

If I just reference System.Web.Mvc version 2 in my project the admin mode doesn't work as the reference to System.Web.Mvc.ViewPage created by the views in the admin interface is ambiguous:

The type 'System.Web.Mvc.ViewPage' is ambiguous: it could come from assembly 'C:WindowsassemblyGAC_MSILSystem.Web.Mvc2.0.0.0__31bf3856ad364e35System.Web.Mvc.dll' or from assembly 'C:WindowsassemblyGAC_MSILSystem.Web.Mvc1.0.0.0__31bf3856ad364e35System.Web.Mvc.dll'. Please specify the assembly explicitly in the type name.

I could easily work around this by using binding redirects to specify that MVC 2 should always be used. Unfortunately the content management systems admin mode isn't compatible with MVC 2. I'm not exactly sure why, but I start getting a bunch of null reference exceptions in some of it's actions when I try it and the developers of the CMS have confirmed that it isn't compatible with MVC 2 (yet).

The admin interface which is accessed through domain.com/admin is not physically located in webroot/admin but in the program files folder on the server and domain.com/admin is instead routed there using a virtual path provider. Therefor, putting a separate web.config file in the admin folder to specify a different version of System.Web.Mvc for that part of the site isn't an option as that won't fly when using shared hosting.

Perhaps it's possible to specify that for some assemblies a different version of a referenced assembly should be used?

View 1 Replies


Similar Messages:

Recompile The Assembly To Use The New Mono Assembly Versions The Assembly Is Closed Source?

Feb 18, 2010

I have recently discovered that I am affected by this bug http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71515.html

Well,at http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71529.html they say the work around is to create a global policy assembly and redirect the assemblies that way since it is not read from the web.config.

How do you actually do what they describe there? There is a huge documentation gap in that area with Mono.Also,I can't just recompile the assembly to use the new Mono assembly versions because the assembly is closed source.(but it does work with Mono.)

View 1 Replies

Configuration :: How To Ignore Assembly Versions

Jul 28, 2010

I built an assembly, and that assembly refereces a DLL in my bin folder (lets call it Bob.dll). so multiple users may have different versions of Bob.dll...but by and large they all function the same.

However when my assembly gets dumped into the bin folder, it wants the version it was compiled against.

Is there a way to compile a reference such that it'll just be happy with ANY version?

I know it can be done with assembly binding in the webconfig, but I dont want users to have to do that.

View 3 Replies

Configuration :: Access An Assembly With The Same Name But Having Different Versions At Runtime?

Feb 14, 2011

I have 2 assemblies with the same name but with different version 1.0.0.0 and 1.0.0.1. I have installed it in GAC and want to use 1 of these versions during run time from my C# application(for e.g - based on locale) in asp.net 2.0.

View 5 Replies

Implications Of Conflicting Versions Of System.Web.Extensions?

Feb 23, 2010

One of the libraries I am including in my project makes use of System.Web.Extensions 3.5.0.0, which conflicts with my Framework 2.0 application, which uses (C:Program FilesMicrosoft ASP.NETASP.NET 2.0 AJAX Extensionsv1.0.61025System.Web.Extensions.dll). I can think of 3 possible solutions:

Ignore the warning and don't change anything. I am not sure what the application does to handle this.
Add an assembly binding element to my web.config (see below) Configure the application explicitly to use different assemblies (I think this is possible, but don't know how to do it).

However, I am unsure of the implications of each of these decisions. The application seems to work perfectly fine even when I ignore the warnings (solution 1), but ignoring warnings that I don't fully understand bugs me...as does having warnings like this show up at all.

[URL]

View 1 Replies

AJAX :: Unable To Load Type 'System.Web.UI.ScriptReferenceBase' From Assembly 'System.Web.Extensions,

Oct 11, 2010

i have installed ajax control kit successfully and all controls already came in toolbar tab named "Ajax Control toolkit"But when i try to design any page using with ajax control toolkit, follow error is coming:

Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:[Code]....

Stack Trace: [Code]....

[TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) in [code]...

I am using VIsual Studio 2008 , framework 3.5 but i don't know why in error information version is showing 2.0

i install tool kit according 3.5 framework.also note, framework built-in ajax tags i can use fine and they work properly.

View 1 Replies

AJAX :: Ajaxtoolkit - Debug Error Could Not Load Type System.Web.UI.ScriptReferenceBase' From Assembly System.Web.Extensions

Dec 15, 2010

i have installed ajaxtoolkit 3.5 but when i debug i am getting this error Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' even i have changed my tags to

<asp:ToolkitScriptManager
ID="ToolkitScriptManager1"
EnablePartialRendering="true"
runat="server"></asp:ToolkitScriptManager>

View 6 Replies

AJAX :: Error On First Time Page Refresh Then Removes On The Second Time / Could Not Load File Or Assembly

May 20, 2010

Server Error in '/MedTegraSL.Web' Application.

Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Source Error:

[Code]....

Source File:

c:ProductiveTeamsMedTegraPresentationMedTegraSLMedTegraSL.WebMainMaster.Master Line: 16 Assembly Load Trace: The following information can be to determine why the assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be loaded.

[Code]....

Stack Trace:

[Code]....

View 2 Replies

System Namespace And System Assembly Used With Same Name?

May 29, 2010

in mscorlib.dll assembly with "System" namespace present ,why it was necessery to take the same name "System" for a assembly System.dll ? Is there any relation in choosing the same name ?

View 7 Replies

Could Not Load File Or Assembly 'System.Web.Extensions

Jul 8, 2010

I purchased a new computer and put all my development software on. Now when I load an asp.net 2.0 project I get the following error:-

Code:
Error3E:RPPResolve-ITASPDotNET2.0HansooKwanDirections.aspx: ASP.NET runtime error: 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. (E:RPPResolve-ITASPDotNET2.0HansooKwanweb.config line 44)E:RPPResolve-ITASPDotNET2.0HansooKwanDirections.aspx11E:...HansooKwan

View 9 Replies

Multiple System.Web.Extensions Assembly In Same Project?

Mar 18, 2010

I'm having trouble moving a website from one server to another. It seems to be a problem loading multiple versions of System.Web.Extensions. The code uses version 3.5 in most places but a third party control appears to be needing version 1.0.6. I didn't think this was possible but it appears to be working in it's current situation.

Is there a way I can use the GAC version of System.Web.Extensions for the site but import a dll of version 1.0.6 just for these controls?

View 1 Replies

Web Forms :: Could Not Load File Or Assembly 'System.Web.Extensions,

Mar 15, 2011

Server Error in '/IMGcup' 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 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The
system cannot find the file specified.

Source Error:

[Code]....

Source File: C:inetpubwwwrootIMGcupweb.config Line: 24 Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

[Code]....

View 3 Replies

The Notorious 'Could Not Load File Or Assembly 'System.Web.Extensions'

Jun 10, 2010

I installed the app http://and when I ran the default page I get the error below:From my research they ask you to copy the DLLs into your bin folder and I did and still would not work.I see the DLLs at C:WINDOWSassembly folder.Where am I supposed to have the DLLs? what is the best practice? The log clearly shows it is looking for LOG: Initial PrivatePath = C:InetpubwwwrootPTIssueTracker2.5in after I enabled the Fusion log registry.i found the DLLs at C:Program FilesReference AssembliesMicrosoftFrameworkv3.5. Below is the error:

Configuration Error
Description:

An error occurred during the processing of a configuration file required to service this request.

Parser Error Message: 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.

Source Error:

[Code]....

Source File: C:InetpubwwwrootPTIssueTracker2.5web.config Line: 80 Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

[Code]....

If I copy the DLLs from C:Program FilesReference AssembliesMicrosoftFrameworkv3.5
into C:InetpubwwwrootPTIssueTracker2.5in, I get the error below:

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 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)

View 1 Replies

AJAX :: Reference Required To Assembly 'System.Web.Extensions?

Apr 23, 2010

I have an ASP.NET project and I want to use some AjaxToolKit Extenders on my pages.

The site is created in VS2010, set to Framework 4.0.

This is what I did:

1) Add reference "AjaxToolKit.dll" to my project.

2) Add to the toolbar the same file for the controls

3) Add "ToolkitScriptManager" to the page source.

This adds the declaration to the source as well.

Right after this I get the following error:

Reference required to assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' containing the base class 'System.Web.UI.ScriptManager'. Add one to your project.

View 3 Replies

Error Message: Could Not Load File Or Assembly 'System.Web?

Mar 3, 2011

An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.Parser Error Message: 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.

View 8 Replies

Parent Website .net 2.0 WebApp Which Use System.web.extensions Assembly

Jul 27, 2010

Now I have WCF web.config problem. At first, I have parent website .net 2.0 "WebApp" which use "system.web.extensions" assembly.

<configuration>
configSections>
sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
[code]...

View 3 Replies

Getting System.IO.FileLoadException - Couldn't Load File Or Assembly

Jun 30, 2010

I have a rather simple internal ASP.Net Website that has issues loading the Microsoft.Practices.EnterpriseLibrary.Data dll about once a week. Here is the Exception message:

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.
File name: 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'
at foobar.Intranet.Logic.Data.UserDB.SelectByUserName(String userName)
at foobar.Intranet.Logic.Info.User.ValidateUser(String userName) in F:Developmentfoobarfoobarfoobar.Intranet.LogicInfoUser.cs:line 130
at Login.ValidateUser(String username, String password) in e:foobarfoobar.IntranetLogin.aspx.cs:line 32

Pre-bind state information
LOG: User = Unknown
LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///E:/foobar/foobar.Intranet/
LOG: Initial PrivatePath = E:foobarfoobar.Intranetin Calling assembly : foobar.Intranet.Logic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

LOG: This bind starts in default load context.
LOG: Using application configuration file: E:foobarfoobar.Intranetweb.config
LOG: Using host configuration file: \?C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet.config
LOG: Using machine configuration file from C:WINDOWSMicrosoft.NETFrameworkv2.0.50727configmachine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/foobar.intranet/668896d8/82d7e51c/Microsoft.Practices.EnterpriseLibrary.Data.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/foobar.intranet/668896d8/82d7e51c/Microsoft.Practices.EnterpriseLibrary.Data/Microsoft.Practices.EnterpriseLibrary.Data.DLL.
LOG: Attempting download of new URL file:///E:/foobar/foobar.Intranet/bin/Microsoft.Practices.EnterpriseLibrary.Data.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

Things of note:

A simple IIS Reset fixes the issue. We had the same code running on a single webserver with no problems. We then moved the site to two new, load balanced (using sticky sessions) webservers (all three Windows Server 2003 R2 Standard Edition SP1). Now each of the load balanced webservers throw this exception about once a week just out of the blue.The only major difference I can think of, is I've installed the 4.0 .NET framework on the load balanced servers. The website is still running under ASP.NET 2.0 so I don't see how this would be an issue I've configured the indexing service to not search the "Temporary ASP.NET Files" folder, but it didn't help. We use the Microsoft.Practices.EnterpriseLibrary.Data dll everywhere on our site. Almost every single page uses our logic dll which in turn utilizes the EnterpriseLibrary dlls. While the errors where happening once, I even looked to see what processes were locking the dll in the "Temporary ASP.NET Files" folder, and it wasn't any different than the locks on the server that was working fine. Once the error starts, it errors every single time until an iisreset is performed.

View 1 Replies

Couldn't Load File Or Assembly System.Web.Entity

Aug 25, 2010

I've tried deploying my asp.net app to a new server and I get this error:

Could not load file or assembly
'System.Web.Entity, Version=3.5.0.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Sure enough, System.Web.Entity isn't found in C:WindowsAssembly. However, the server has MS .NET Framework 3.5 installed and also MS ASP.NET 2.0 AJAX Extensions 1.0. Is this something I need to deploy with my app, or something I need to be installed on the server? It's not my own server so xcopy deployment within my app folder would be much better if that's possible.

View 2 Replies

AJAX :: Could Not Load Type 'System.Web.UI.ScriptReferenceBase' From Assembly

Feb 26, 2010

i am gettting the following error on the webpage...

Error Message: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Error Source:

AjaxControlToolkit

Stack Trace:

at AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

View 1 Replies

Security :: Email Encryption Using System.Net.Mail Assembly?

Sep 7, 2010

Has anyone used the above assemblies to send emails using public key enryption, specifically PGP?

View 1 Replies

AJAX :: Unable To Load Type 'System.Web.UI.ScriptReferenceBase' From Assembly

Sep 6, 2010

I'm using Visual Studio 2008 and i downloaded the toolkit from Codeplex,I downloaded the zip file which i've marked red in the below link..This is my code, [Code]....

& this is the error i get," Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' "

I saw this post,http://forums.asp.net/p/1273185/3439540.aspx and

i changed my TOOLSCRIPTMANAGER into SCRIPTMANAGER & now i get this error
http://forums.asp.net/t/1529516.aspx

View 5 Replies

Configuration :: Unable To Load File Or Assembly 'System.Web.Extensions?

Mar 15, 2011

Server Error in '/IMGcup' 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 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error: [Code]....

Source File: C:inetpubwwwrootIMGcupweb.config Line: 24 Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

[Code]....

View 1 Replies

Configuration :: Could Not Load File Or Assembly 'System.Web.DataVisualization, Version=3.5.0.0...

Mar 4, 2010

I installed Cahrt control of ASP:Net and It works fine on local. I made neccessary changes on web.config but When I deploy it to my site I am getting the error ! It says as below;

Server Error in '/' 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 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

[Code]....

View 4 Replies

MVC :: Runtime Error: Could Not Load File Or Assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=?

Jan 13, 2010

I am getting this message on my Page element. However my project references C:Program FilesMicrosoft ASP.NETASP.NET MVC 2AssembliesSystem.Web.Mvc.dllwhich is Version 2.0.0.0Furthermore my Web.config contains

<assemblies>
<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

This is VS2010.I created the blank project with VS2010 and then copied the code (without Web.config) from the old project.

View 5 Replies

Web Forms :: System.TypeLoadException: Could Not Load Type 'AspDotNetStorefront.RegisterRoutes' From Assembly ...

Jun 11, 2010

i m working on AspDontNetStoreFront application (http://www.aspdotnetstorefront.com)

i got the code is working on my pc but when i upload up to server it 's give me error

"System.TypeLoadException: Could not load type 'AspDotNetStorefront.RegisterRoutes' from assembly 'App_Code'."

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved