1

I started building an application using ASP.NET Boilerplate, and as I am getting familiar with the framework I am considering a move to the paid ASP.NET Zero version. I would like to assess the effort to migrate code, as it is a big code base. Looking at n-layers, there are some differences in backend code but still manageable. However, the challenge I feel is in the UI as ASP.NET Zero is tightly coupled with the Metronic UI, and I am utilizing Kendo UI in my application.

I tried to download a cracked ASP.NET Zero version online. I followed the instructions:

  • replace the cracked file in the nuget folder.
  • run yarn at root application.mvc project.

The solution and all projects build and compile fine, but I am faced with an error in the browser.

Uncaught ReferenceError: app is not defined

 var _tenantChangeModal = new app.ModalManager({
    viewUrl: abp.appPath + 'Account/TenantChangeModal',
    scriptUrl: abp.appPath + 'view-resources/Views/Shared/Components/TenantChange/_ChangeModal.js',
    modalClass: 'TenantChangeModal',
    modalSize: null
});

I am not familiar with Node.js nor Angular, I use jQuery. This might be a simple fix as I might be missing something, or a bigger thing that requires further investigation.

1 Answer 1

0

app.ModalManager is a JavaScript class in ASP.NET Zero.

You need to bundle the JavaScript files by running npm run create-bundles from the root directory of your *.Web.Mvc project.

References:

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Aaron, after creating the bundles the application is up and running.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.