![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a ASP.NET application which consists of multiple assemblies. One assembly contains some base classes say MyTypes.dll. Other assemblies have classes which inherit from these base classes. MyTypes.dll is installed in GAC. This application was running fine on ASP.NET 1.1 framework. Now, I want to move my application to ASP.NET 2.0. However, due to release schedules, I don't want to port all the assemblies to 2.0 right away and instead have an incremental approach. I want to first move MyTypes.dll to ASP.NET 2.0 and then move rest of the assemblies to ASP.NET 2.0 over the period of time. When, I attempt this, I get type load failure errors on accessing my application. Is there any way by which I can instruct ASP.NET 1.1 pages to use the MyTypes.dll compiled with ASP.NET 2.0? The virtual directories for my application are configured with ASP.NET 2.0. However the code behind is compiled using ASP.NET 1.1 and is trying to use types from MyTypes.dll which is compiled with ASP.NET 2.0. Any help will be appreciated. Thanks. -Prasad |
#3
| |||
| |||
|
|
I'm 99% sure you're trying the impossible. Get the source code and recompile. If you have to get reflector, it allows you to read the |
|
assembly. If you HAVE to do that, you may want to 1.1 items as COM or something. I do that with many apps. pdabak (AT) yahoo (DOT) com wrote: Hello, I have a ASP.NET application which consists of multiple assemblies. One assembly contains some base classes say MyTypes.dll. Other assemblies have classes which inherit from these base classes. MyTypes.dll is installed in GAC. This application was running fine on ASP.NET 1.1 framework. Now, I want to move my application to ASP.NET 2.0. However, due to release schedules, I don't want to port all the assemblies to 2.0 right away and instead have an incremental approach. I want to first move MyTypes.dll to ASP.NET 2.0 and then move rest of the assemblies to ASP.NET 2.0 over the period of time. When, I attempt this, I get type load failure errors on accessing my application. Is there any way by which I can instruct ASP.NET 1.1 pages to use the MyTypes.dll compiled with ASP.NET 2.0? The virtual directories for my application are configured with ASP.NET 2.0. However the code behind is compiled using ASP.NET 1.1 and is trying to use types from MyTypes.dll which is compiled with ASP.NET 2.0. Any help will be appreciated. Thanks. -Prasad |
#4
| |||
| |||
|
|
agapeton (AT) gmail (DOT) com> wrote in message news:1159301947.851478.209980 (AT) e3g2000cwe (DOT) googlegroups.com... I'm 99% sure you're trying the impossible. Get the source code and recompile. If you have to get reflector, it allows you to read the Agreed. You don't have to "port" the other assemblies to use any new 2.0 features at this stage, just run them through the 2.0 compiler which understands the new metadata format. I think you could mix 1.1 and 2.0 assemblies in the same app because the 2.0 runtime understand both. But a 1.1 assembly can never inherit from a 2.0 class because the 1.1 compiler can't import the 2.0 assembly. assembly. If you HAVE to do that, you may want to 1.1 items as COM or something. I do that with many apps. pdabak (AT) yahoo (DOT) com wrote: Hello, I have a ASP.NET application which consists of multiple assemblies. One assembly contains some base classes say MyTypes.dll. Other assemblies have classes which inherit from these base classes. MyTypes.dll is installed in GAC. This application was running fine on ASP.NET 1.1 framework. Now, I want to move my application to ASP.NET 2.0. However, due to release schedules, I don't want to port all the assemblies to 2.0 right away and instead have an incremental approach. I want to first move MyTypes.dll to ASP.NET 2.0 and then move rest of the assemblies to ASP.NET 2.0 over the period of time. When, I attempt this, I get type load failure errors on accessing my application. Is there any way by which I can instruct ASP.NET 1.1 pages to use the MyTypes.dll compiled with ASP.NET 2.0? The virtual directories for my application are configured with ASP.NET 2.0. However the code behind is compiled using ASP.NET 1.1 and is trying to use types from MyTypes.dll which is compiled with ASP.NET 2.0. Any help will be appreciated. Thanks. -Prasad |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |