Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can't Create New Record from Rad Tool / Power Tool Created Object (MVC Core / JQuery Version) #6797


User avatar
0
crumbdav created

Greetings;

New User and Beginner Developer and have created an simple object using the Rad Tool / Power Tool. I was able to successfully build the object and do the database migration. When I compiled and went into the object, it displayed the interface, but when I clicked on the Create New button, nothing happened.

Im not sure what to provide to you to help with the problem solving.

Application Type: ASP.NET MVC Core / JQuery (latest) as of 04/07/2019

-> AnalyticObjectsAppService.cs is being generated. -> IAnalyticObjectsAppService.cs is being generated. -> AnalyticObjectConsts.cs is being generated. -> CreateOrEditAnalyticObjectDto.cs is being generated. -> AnalyticObjectDto.cs is being generated. -> GetAllAnalyticObjectsForExcelInput.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllAnalyticObjectsInput.cs is being generated. -> GetAnalyticObjectForViewDto.cs is being generated. -> GetAnalyticObjectForEditOutput.cs is being generated. -> AnalyticObject.cs is being generated. -> AnalyticObjectsExcelExporter.cs is being generated. -> IAnalyticObjectsExcelExporter.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> EntityHistoryHelper.cs is being modified. -> EvalDemoDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration... Done. To undo this action, use 'ef migrations remove' Running update-database... Applying migration '20190407070148_Added_AnalyticObject'. Done. -> AnalyticObjectsController.cs is being generated. -> _CreateOrEditModal.cshtml is being generated. -> _CreateOrEditModal.js is being generated. -> CreateOrEditAnalyticObjectViewModel.cs is being generated. -> Index.cshtml is being generated. -> Index.js is being generated. -> AnalyticObjectsViewModel.cs is being generated. -> AppNavigationProvider.cs is being modified. -> AppPageNames.cs is being modified. Warning : File not found => ..\src\RadTool.EvalDemo.Web.Mvc\bundleconfig.json -> EvalDemo.xml is being modified.

Code generation is complete. Press ENTER to exit...


6 Answer(s)
  • User Avatar
    0
    crumbdav created

    Here's my Visual Studio info:

    Microsoft Visual Studio Community 2017 Version 15.9.10 VisualStudio.15.Release/15.9.10+28307.557 Microsoft .NET Framework Version 4.7.03056

    Installed Version: Community

    Application Insights Tools for Visual Studio Package 8.14.20131.1 Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 2017 15.9.04012.0 ASP.NET and Web Tools 2017

    ASP.NET Core Razor Language Services 15.8.31590 Provides languages services for ASP.NET Core Razor.

    ASP.NET Web Frameworks and Tools 2017 5.2.60913.0 For additional information, visit https://www.asp.net/

    AspNetZeroRadTool Extension 1.0 AspNetZeroRadTool Visual Studio Extension Detailed Info

    Azure App Service Tools v3.0.0 15.9.03024.0 Azure App Service Tools v3.0.0

    Azure Functions and Web Jobs Tools 15.9.02046.0 Azure Functions and Web Jobs Tools

    Bundler & Minifier 2.8.396 Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.

    C# Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

    Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

    Cookiecutter 15.9.18254.1 Provides tools for finding, instantiating and customizing templates in cookiecutter format.

    JavaScript Language Service 2.0 JavaScript Language Service

    JavaScript Project System 2.0 JavaScript Project System

    Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.0.0

    Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

    Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

    Microsoft Library Manager 1.0 Install client-side libraries easily to any web project

    Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

    Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

    Node.js Tools 1.4.21001.1 Commit Hash:8dd15923800d931b153ab9e4de74e42a74eba5e6 Adds support for developing and debugging Node.js apps in Visual Studio

    NuGet Package Manager 4.6.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

    Python 15.9.18254.1 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

    Python - Django support 15.9.18254.1 Provides templates and integration for the Django web framework.

    Python - IronPython support 15.9.18254.1 Provides templates and integration for IronPython-based projects.

    Python - Profiling support 15.9.18254.1 Profiling support for Python projects.

    ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info

    SQL Server Data Tools 15.1.61903.01040 Microsoft SQL Server Data Tools

    Syncfusion.DashboardViewer.VSExtension 3.1.0.20 Template to create your own, custom Dashboard Viewer sample using Syncfusion Dashboard Platform SDK.

    TypeScript Tools 15.9.20918.2001 TypeScript Tools for Microsoft Visual Studio

    Visual Basic Tools 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

    Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691. Microsoft Visual F# Tools 10.2 for F# 4.5

    Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

    Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers

  • User Avatar
    0
    yekalkan created

    Hi,

    Console info says that "Warning : File not found => ..\src\RadTool.EvalDemo.Web.Mvc\bundleconfig.json".

    The name of file is changed but tool is not compatible yet. So tool can't find this file. We will fix this as soon as possible.

    So you need to modify "..\src\RadTool.EvalDemo.Web.Mvc\bundles.json" file. Add the js files created by tool.

  • User Avatar
    0
    crumbdav created

    I changed the name of the file from "bundles.json" to "bundleconfig.json" and attempted to execute a Rad Tool build.

    I recieved the following error:

    -> AnalyticObjectsAppService.cs is being generated. -> IAnalyticObjectsAppService.cs is being generated. -> AnalyticObjectConsts.cs is being generated. -> CreateOrEditAnalyticObjectDto.cs is being generated. -> AnalyticObjectDto.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllAnalyticObjectsInput.cs is being generated. -> GetAnalyticObjectForViewDto.cs is being generated. -> GetAnalyticObjectForEditOutput.cs is being generated. -> AnalyticObject.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> EvalDemoDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration... Done. To undo this action, use 'ef migrations remove' Running update-database... Applying migration '20190407153042_Added_AnalyticObject'. Done. -> AnalyticObjectsController.cs is being generated. -> _CreateOrEditModal.cshtml is being generated. -> _CreateOrEditModal.js is being generated. -> CreateOrEditAnalyticObjectViewModel.cs is being generated. -> Index.cshtml is being generated. -> Index.js is being generated. -> AnalyticObjectsViewModel.cs is being generated. -> AppNavigationProvider.cs is being modified. -> AppPageNames.cs is being modified. -> bundleconfig.json is being modified. An error occured. : Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject. Path '', line 1, position 1.

    Im not sure what you mean by: "So you need to modify "..\src\RadTool.EvalDemo.Web.Mvc\bundles.json" file. Add the js files created by tool." ?

    Please advise,

    --Dave

    ps: Should I just want for the next version of the Rad Tool to be published? Is there an ETA for this update?

    Many thanks,

    --Dave

  • User Avatar
    0
    yekalkan created

    Should I just want for the next version of the Rad Tool to be published? Is there an ETA for this update?

    Tomorrow.

  • User Avatar
    0
    yekalkan created

    @crumbdav You need to run "npm run create-bundles" command in .Web.Mvc project root folder after code is generated.

  • User Avatar
    0
    crumbdav created

    (For fellow newbies)

    1. Downloaded an ASP.NET MVC JQuery Demo file
    2. Created a new database and database user in SQL Server(giving the user dbreader,dbwriter, and dbowner rights)
    3. Unziped the Demo file into the directory of my choice
    4. Opened Visual Stuido, Opened project File (in this case I only opened the Web solution)
    5. Let Visual Studio refresh it's packages
    6. I went into the MVC and refreshed the npm directory packages
    7. I went into the PUBLIC and refreshed the npm directory packages
    8. In Pakcage Manager Console, I did the Update-Database command on the EntityFrameworkCore application. This built the database
    9. In DOS, I went to the MVC directory and ran npm run create-bundles command
    10. I ran the application to test. Username: admin Password: 123qwe
    11. Now, I wanted to create a new Entity using the PowerTools tool
    12. Downloaded and installed the Asp.Net ZERO PowerTools VSIX file from Marketplace (Tools-Extension and Updates)
    13. Opened the PowerTools tool in Visual Studio Tools-AspNetZero - Create Entity
    14. Fill in the Entity Information
    15. Create your Fields
    16. Select Generate Entity
    17. Go to your MVC directory and execute npm run create-bundles command
    18. Ran the Program...
    19. It works!!!