Upgrade to ABP 0.9.3 fails....
See original GitHub issueHi,
I have just updgraded an existing MVC 5 project to ABP 0.9.3 and receive the following exception when running up the application:
[TypeLoadException: Could not load type 'Abp.Web.Models.AjaxResponse`1' from assembly 'Abp.Web, Version=0.9.3.0, Culture=neutral, PublicKeyToken=null'.]
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
System.Reflection.RuntimeAssembly.GetExportedTypes() +31
Castle.Core.Internal.ReflectionUtil.GetAvailableTypes(Assembly assembly, Boolean includeNonExported) +47
Castle.Core.Internal.ReflectionUtil.GetAvailableTypesOrdered(Assembly assembly, Boolean includeNonExported) +18
System.Linq.<SelectManyIterator>d__16`2.MoveNext() +244
Castle.MicroKernel.Registration.FromDescriptor.Castle.MicroKernel.Registration.IRegistration.Register(IKernelInternal kernel) +127
Castle.MicroKernel.DefaultKernel.Register(IRegistration[] registrations) +69
Castle.Windsor.WindsorContainer.Register(IRegistration[] registrations) +46
Abp.Dependency.IocManager.RegisterAssemblyByConvention(Assembly assembly, ConventionalRegistrationConfig config) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Dependency\IocManager.cs:78
Abp.Web.Mvc.AbpWebMvcModule.Initialize() +40
System.Collections.Generic.List`1.ForEach(Action`1 action) +14300047
Abp.Modules.AbpModuleManager.InitializeModules() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Modules\AbpModuleManager.cs:39
CruisesDesktop.Web.MvcApplication.Application_Start(Object aSender, EventArgs aArgs) in D:\Data\TFS\xxxxx\VS 2015\CruisesDesktop\Cruises.Web\Global.asax.cs:63
[HttpException (0x80004005): Could not load type 'Abp.Web.Models.AjaxResponse`1' from assembly 'Abp.Web, Version=0.9.3.0, Culture=neutral, PublicKeyToken=null'.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +544
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343
[HttpException (0x80004005): Could not load type 'Abp.Web.Models.AjaxResponse`1' from assembly 'Abp.Web, Version=0.9.3.0, Culture=neutral, PublicKeyToken=null'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +716
No other changes have been made when upgrading the applicaiton. The application code in quesiton is:
public class MvcApplication : AbpWebApplication
{
protected override void Application_Start(object aSender, EventArgs aArgs)
{
//Register Bootstrap MVC Helpers. We have to pass this physically as loading the license file does not work when deployed
Bootstrap.Configure(MVC_LICENSE);
//Register logging for use by ABP and the application itself
IocManager.Instance.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));
//Configure the "simple" url redirection. This will be removed once we have something more robust in place
PageRedirectionHelper.Configure(HttpContext.Current, "PageRedirections.txt");
//Call underlying application startup code
base.Application_Start(aSender, aArgs);
//Ensure the change log is populated. This call needs to be after the base call as we require all the application services to be spun up
ChangeLogConfig.Configure();
}
}
I see AjaxResponse has moved to the new ABP.Web.Common assembly. This assembly is in the references for the project.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Migration Guides/Upgrading Startup Template
This document focuses on upgrading the startup template. ... version 4.2.2 using the ABP CLI (install it if you haven't installed before).
Read more >Error dependcies after upgrades from ABP #1273
I doing an upgrade from version 0.8.3 to 0.9.3 Can't create component 'Nascence.BodynitsPortal.MultiTenancy.TenantMana...
Read more >Untitled
Upgrade to ABP 0.9.3 fails.... #1089 - GitHub Web6. Feb. 2023 · Throws an EntityNotFoundException which results an HTTP 404 (not found) result...
Read more >Has anyone use the AbP framework? What do you think of it?
Another framework issue somewhere. All custom code looks like it will have to be abstracted to their own classes as updating the entity...
Read more >Error mapping types after updating to abp 2.3.0
after updating abp from 1.4.2 to 2.3.0 i got an error while trying to map entity to a Dto var articles = _articleRepository.GetAll()....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I backed out all my ABP.EntityFramework references to 0.9.2 leaving everything else at 0.9.3 and so far so good.
Thank you for reporting that. I’m glad that it works 😃