Base solution for your next web application

Activities of "julianrobertshawe"

Question

Everything as being working fine and able to add new classes in the core application but running the add-migration does not add the code to create the table in the database. Changing existing classes creates the code to alter the table but unable to add new tables. Not sure if I am missing something basic here or there is something wrong with the project - thanks!

Question

Hi there, I am trying to pass a value to the function on the listAction of a jtable

I have tested the function inside firefox console but when loading the table I get the following error TypeError: originalListAction.method is not a function This is the code actions: { listAction: { method: _customerService.getProducts(4) } },

thanks Julian

Question

Hi there,

Inside my Web site I need to poll an external URL and grab items to be inserted and processed inside my application. I can't find the how to do this. How do I create a recurring hang file job that calls my function every 5 minutes for example

thanks Julian

Thanks for your reply. I only get the error from the server's IIS instance. The config setting to change the mine type was already present.

thanks

hi

Not sure if I applied the fix correct as I am still getting the error . thanks

I added this to MpaBundleConfig private static void AddMpaCssLibs(BundleCollection bundles, bool isRTL) { bundles.Add( new StyleBundle("~/Bundles/Frontend/libs/css") .Include(StylePaths.Simple_Line_Icons, new CssRewriteUrlTransform()) .Include(StylePaths.FontAwesome, new CssRewriteUrlTransform()) .Include(StylePaths.FamFamFamFlags, new CssRewriteUrlTransform()) .Include(StylePaths.Bootstrap, new CssRewriteUrlTransform()) .Include(StylePaths.SweetAlert) .Include(StylePaths.Toastr) );

        bundles.Add(
            new StyleBundle("~/Bundles/Mpa/libs/css" + (isRTL ? "RTL" : ""))
                .Include(StylePaths.JQuery_UI, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.JQuery_jTable_Theme, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.FontAwesome, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.Simple_Line_Icons, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.FamFamFamFlags, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(isRTL ? StylePaths.BootstrapRTL : StylePaths.Bootstrap, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.JQuery_Uniform, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.JsTree, new CssRewriteUrlWithVirtualDirectoryTransform())
                .Include(StylePaths.Morris)
                .Include(StylePaths.SweetAlert)
                .Include(StylePaths.Toastr)
                .Include(StylePaths.Bootstrap_DateRangePicker)
                .Include(StylePaths.Bootstrap_Switch)
                .Include(StylePaths.Bootstrap_Select)
                .Include(StylePaths.JQuery_Jcrop)
                .ForceOrdered()
            );
    }

still getting same error "NetworkError: 400 Bad Request - <a class="postlink" href="http://ausxpress.missingpiece.com.au/libs/jquery-jtable/themes/metro/blue/http:/themes.googleusercontent.com/static/fonts/opensans/v6/u-WUoqrET9fUeobQW7jkRT8E0i7KZn-EPnyo3HZu7kw.woff">http://ausxpress.missingpiece.com.au/li ... Zu7kw.woff</a>"

Perfect! so simple now you know :)

thanks

[InvalidOperationException: The operation cannot be completed because the DbContext has been disposed.] System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +4284477 System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18 System.Data.Entity.Internal.Linq.InternalSet1.Initialize() +53 System.Data.Entity.Internal.Linq.InternalSet1.Include(String path) +18 System.Data.Entity.Infrastructure.DbQuery1.Include(String path) +66 System.Data.Entity.QueryableExtensions.Include(IQueryable1 source, String path) +130 System.Data.Entity.QueryableExtensions.Include(IQueryable1 source, Expression1 path) +181 AusXpress.AusXpress.Customers.CustomerAppService.GetCustomer(GetCustomerInput input) in C:\source\AusXpress\AusXpress.AusXpress.Application\Customer\CustomerAppService.cs:39 AusXpress.AusXpress.Web.Areas.Mpa.Controllers.WelcomeController.Index() in C:\source\AusXpress\AusXpress.AusXpress.Web\Areas\Mpa\Controllers\WelcomeController.cs:34 lambda_method(Closure , ControllerBase , Object[] ) +61 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +30 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +197 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) +46 System.Web.Mvc.Async.ActionInvocation.InvokeSynchronousActionMethod() +37 System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +24 System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult asyncResult) +43 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +58 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +68 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +34 System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +69 System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +230 System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +27 System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +27 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +58 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +68 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34 System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +42 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +124 System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +27 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +58 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +30 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +29 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +27 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +48 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +58 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +30 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +21 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +32 System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +26 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +40 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +58 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +30 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +21 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +29 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +24 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +27 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +48 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +58 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +30 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +21 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +29 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +23 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9744373 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

my code

using System.Web.Mvc; using Abp.Web.Mvc.Authorization; using AusXpress.AusXpress.Web.Controllers; using AusXpress.AusXpress.Authorization.Users; using Abp.Runtime.Session; using AusXpress.AusXpress.Customers.dto; using AusXpress.AusXpress.Customers;

namespace AusXpress.AusXpress.Web.Areas.Mpa.Controllers { [AbpMvcAuthorize] public class WelcomeController : AusXpressControllerBase { private readonly UserManager _userManager; private readonly CustomerAppService _customerAppService;

    public WelcomeController(
        UserManager userManager,
        CustomerAppService customerAppService)
    {
        _userManager = userManager;
        _customerAppService = customerAppService;

    }


    public ActionResult Index()
    {
        var user =  _userManager.GetUserByIdAsync(AbpSession.GetUserId());
        var customerInput = new GetCustomerInput { UserId = user.Id };



        var customers = _customerAppService.GetCustomer(customerInput);
        return View();
    }
}

}

public ListResultOutput<CustomerListDto> GetCustomer(GetCustomerInput input) {

        var customers = _customerRepository
            .GetAll()
            .Include(p => p.Addresses)
            .WhereIf(
                input.UserId != 0,
                p => p.UserId.Equals(input.UserId)
            )
            .ToList();

        return new ListResultOutput&lt;CustomerListDto&gt;(customers.MapTo&lt;List&lt;CustomerListDto&gt;>());
    }

I am also getting the same error -

An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code

Additional information: The operation cannot be completed because the DbContext has been disposed.

I followed the getting started with MPA documentation

Can you pass on the fix is possible

thanks

Hi there. I am new to your framework and before I get started I want to make sure I get off on the right foot

Is there recommended way to deploy the code and database changes to UAT and then Production to works best for the framework and model driven database design.

I am very keen to keep everything well documented and managed and have read the getting started how to do this in development

thanks in advanced

Showing 1 to 10 of 10 entries