This topic is locked

Upgrade from ASPRunner to ASPRunner.NET

10/3/2019 6:40:04 AM
ASPRunner.NET General questions
A
Alan Coleman author

Hello everyone,
We have a CMS that we have built in ASPRunner and have been using for a number of years, essentially it's a front end for our SQLServer database.
We have always had issues with its speed and responsiveness and I've spent a fair amount of time trying to speed it up with various IIS and App Pool settings. The official line from xLinesoft (no pun intended) is that we should use ASPRunner.NET
I experimented with ASPRunner.NET and it is generally a lot faster, also I'm thinking that a supported technology will allow us more scope to tweak.
So here's my question...
Is there any way that an application built in ASPRunner can be migrated to work with ASPRunner.NET? Or are we looking at a straight rebuild?
Any help would be appreciated.
Thanks

admin 10/3/2019

Converting ASPRunnerPro to ASPRunner.NET will require you to do the following:

  1. Create a copy of ASPRunnerPro project folder. Rename .aspr file to .netr file. Now you can open it in ASPRunner.NET
  2. Now you need to convert all events code from ASP to C#. Since ASPRunner.NET compiles all the code it will help you to find all places where code needs to be changed. Try to build the project and it will throw a bunch of compilation errors pointing you to code errors.
    One more note. If your ASPRunnerPro project is fairly old I would suggest upgrading this project to the latest ASPRunnerPro version first before converting it to ASPRunner.NET. Doesn't have to be the latest version of ASPRunnerPro, it can be something like version 9.8.

A
Alan Coleman author 10/3/2019



Converting ASPRunnerPro to ASPRunner.NET will require you to do the following:

  1. Create a copy of ASPRunnerPro project folder. Rename .aspr file to .netr file. Now you can open it in ASPRunner.NET
  2. Now you need to convert all events code from ASP to C#. Since ASPRunner.NET compiles all the code it will help you to find all places where code needs to be changed. Try to build the project and it will throw a bunch of compilation errors pointing you to code errors.
    One more note. If your ASPRunnerPro project is fairly old I would suggest upgrading this project to the latest ASPRunnerPro version first before converting it to ASPRunner.NET. Doesn't have to be the latest version of ASPRunnerPro, it can be something like version 9.8.


Thanks Sergey, that's really helpful.
Are these the sort of errors that I should be expecting?



\\ Firebrand_CMS1.csproj

Microsoft (R) Build Engine version 4.6.1055.0

[Microsoft .NET Framework, version 4.0.30319.42000]

Copyright (C) Microsoft Corporation. All rights reserved.
\\ Firebrand_CMS1EventsCS.csproj

Microsoft (R) Build Engine version 4.6.1055.0

[Microsoft .NET Framework, version 4.0.30319.42000]

Copyright (C) Microsoft Corporation. All rights reserved.
include\CommonEvents.cs(24,1): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(24,1): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(31,1): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(31,1): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(35,10): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(35,10): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(36,1): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(36,1): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(38,1): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(38,1): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(40,1): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(40,1): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(41,1): error CS1010: Newline in constant [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]

include\CommonEvents.cs(41,1): error CS1012: Too many characters in character literal [E:\ASPRunner CMS\firebrand_cms_net\Firebrand CMS1\output\Firebrand_CMS1EventsCS.csproj]
admin 10/7/2019

Yes, something like this.
If you have trouble located those pieces of code look at the beginning of each error message. For instance include\CommonEvents.cs(24,1) means you to open include\CommonEvents.cs file in the output folder and there is a syntax error in line 24.

A
Alan Coleman author 10/23/2019



Yes, something like this.
If you have trouble located those pieces of code look at the beginning of each error message. For instance include\CommonEvents.cs(24,1) means you to open include\CommonEvents.cs file in the output folder and there is a syntax error in line 24.


Thanks very much for your help.
I'm getting some more errors.
It's worth noting that the output that I'm publishing the application to from ASPRunner.NET is not the same as the directory I'm serving it from, I upload the output directory to my server.
So CMS\firebrand_cms_net_output_only (which is shown in the error) is not where I'm serving it from on my website.
Thanks



Server Error in '/' Application.

The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) No exports were found that match the constraint:

ContractName runnerDotNet.IGlobalEventProviderCS

RequiredTypeIdentity runnerDotNet.IGlobalEventProviderCS
Resulting in: Cannot set import 'runnerDotNet.class_GlobalEvents.EventProviderCS (ContractName="runnerDotNet.IGlobalEventProviderCS")' on part 'runnerDotNet.class_GlobalEvents'.

Element: runnerDotNet.class_GlobalEvents.EventProviderCS (ContractName="runnerDotNet.IGlobalEventProviderCS") --> runnerDotNet.class_GlobalEvents
2) No exports were found that match the constraint:

ContractName runnerDotNet.IGlobalEventProviderVB

RequiredTypeIdentity runnerDotNet.IGlobalEventProviderVB
Resulting in: Cannot set import 'runnerDotNet.class_GlobalEvents.EventProviderVB (ContractName="runnerDotNet.IGlobalEventProviderVB")' on part 'runnerDotNet.class_GlobalEvents'.

Element: runnerDotNet.class_GlobalEvents.EventProviderVB (ContractName="runnerDotNet.IGlobalEventProviderVB") --> runnerDotNet.class_GlobalEvents

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.ComponentModel.Composition.ChangeRejectedException: The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) No exports were found that match the constraint:

ContractName runnerDotNet.IGlobalEventProviderCS

RequiredTypeIdentity runnerDotNet.IGlobalEventProviderCS
Resulting in: Cannot set import 'runnerDotNet.class_GlobalEvents.EventProviderCS (ContractName="runnerDotNet.IGlobalEventProviderCS")' on part 'runnerDotNet.class_GlobalEvents'.

Element: runnerDotNet.class_GlobalEvents.EventProviderCS (ContractName="runnerDotNet.IGlobalEventProviderCS") --> runnerDotNet.class_GlobalEvents
2) No exports were found that match the constraint:

ContractName runnerDotNet.IGlobalEventProviderVB

RequiredTypeIdentity runnerDotNet.IGlobalEventProviderVB
Resulting in: Cannot set import 'runnerDotNet.class_GlobalEvents.EventProviderVB (ContractName="runnerDotNet.IGlobalEventProviderVB")' on part 'runnerDotNet.class_GlobalEvents'.

Element: runnerDotNet.class_GlobalEvents.EventProviderVB (ContractName="runnerDotNet.IGlobalEventProviderVB") --> runnerDotNet.class_GlobalEvents
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ChangeRejectedException: The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 2 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) No exports were found that match the constraint:

ContractName runnerDotNet.IGlobalEventProviderCS

RequiredTypeIdentity runnerDotNet.IGlobalEventProviderCS
Resulting in: Cannot set import 'runnerDotNet.class_GlobalEvents.EventProviderCS (ContractName="runnerDotNet.IGlobalEventProviderCS")' on part 'runnerDotNet.class_GlobalEvents'.

Element: runnerDotNet.class_GlobalEvents.EventProviderCS (ContractName="runnerDotNet.IGlobalEventProviderCS") --> runnerDotNet.class_GlobalEvents
2) No exports were found that match the constraint:

ContractName runnerDotNet.IGlobalEventProviderVB

RequiredTypeIdentity runnerDotNet.IGlobalEventProviderVB
Resulting in: Cannot set import 'runnerDotNet.class_GlobalEvents.EventProviderVB (ContractName="runnerDotNet.IGlobalEventProviderVB")' on part 'runnerDotNet.class_GlobalEvents'.

Element: runnerDotNet.class_GlobalEvents.EventProviderVB (ContractName="runnerDotNet.IGlobalEventProviderVB") --> runnerDotNet.class_GlobalEvents

]

System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition) +144

System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch) +421

runnerDotNet.class_GlobalEvents..ctor() in e:\ASPRunner CMS\firebrand_cms_net_output_only\include\EventsAggregatorGlobal.cs:116

runnerDotNet.appsettings.Apply() in e:\ASPRunner CMS\firebrand_cms_net_output_only\include\appsettings.cs:311

runnerDotNet.BaseController.OnActionExecuting(ActionExecutingContext filterContext) in e:\ASPRunner CMS\firebrand_cms_net_output_only\Controllers\BaseController.cs:65

System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +50

System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +635

System.Web.Mvc.Controller.ExecuteCore() +143

runnerDotNet.BaseController.ExecuteThread(Object arg) in e:\ASPRunner CMS\firebrand_cms_net_output_only\Controllers\BaseController.cs:45
[AggregateException: One or more errors occurred.]

runnerDotNet.BaseController.ExecuteCore() in e:\ASPRunner CMS\firebrand_cms_net_output_only\Controllers\BaseController.cs:32

System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +1442

System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +57

System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +25

System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +36

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648

System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0
A
Alan Coleman author 10/23/2019



Converting ASPRunnerPro to ASPRunner.NET will require you to do the following:

  1. Create a copy of ASPRunnerPro project folder. Rename .aspr file to .netr file. Now you can open it in ASPRunner.NET
  2. Now you need to convert all events code from ASP to C#. Since ASPRunner.NET compiles all the code it will help you to find all places where code needs to be changed. Try to build the project and it will throw a bunch of compilation errors pointing you to code errors.
    One more note. If your ASPRunnerPro project is fairly old I would suggest upgrading this project to the latest ASPRunnerPro version first before converting it to ASPRunner.NET. Doesn't have to be the latest version of ASPRunnerPro, it can be something like version 9.8.


Thanks very much Sergey,
Would this upgrade be something that you guys could do for us? Is it worth a conversation by email to discuss a price?
Many thanks

admin 10/23/2019

Yes, feel free to contact support directly.