Base solution for your next web application

Activities of "theedge"

Hi,

  • Zero 1.10.1.0
  • Deployed an empty template to my staging server
  • Added a dummy user and then went to click on "Login as this user" in the user grid. However I am redirected to:

http://localhost:6240/Account/ImpersonateSignIn?tokenId=f98d89f2-0043-4581-8626-32056bbfc3fe

note localhost instead of the domain name of the deployment viz:

http://www.mydomain.com/Account/ImpersonateSignIn?tokenId=f98d89f2-0043-4581-8626-32056bbfc3fe

I cannot upgrade to the latest version at the moment. And I cannot see where this is happening in code. Any pointers?

Hi,

  • Is this stored as UTC?

Hi,

  • ZERO V1.10.0

I have made no changes to the downloaded template. It runs up fine locally, but when I do a web deploy to a fresh IIS website and empty database I get the following exception:

No language defined in this application.

with a call stack as as below. As the database was a brand new one, I can see that the migrations have run and that the database structure has been created. However there is no data any of the tables. I don't want to migrate any data from my development machine, so I don't believe I have to run the migration tool provided as I am using the EF migrations.

What have I missed here?

Line 50: <body class="corporate">
Line 51: 
Line 52:     @Html.Action("Header", "Layout", new { currentPageName = ViewBag.CurrentPageName })
Line 53: 
Line 54:     <div class="main">
[AbpException: No language defined in this application.]
   Abp.Localization.LanguageManager.GetCurrentLanguage() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\LanguageManager.cs:29
   StartupRealm.Web.Controllers.LayoutController.Header(String currentPageName) in E:\DataSyncPoint\DJE\Natiki\Clients\StartupRealm\Development\Platform\StartupRealm.Web\Controllers\LayoutController.cs:41
   lambda_method(Closure , ControllerBase , Object[] ) +139
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +229
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +67
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.AsyncInvocationWithFilters.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3d() +72
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +386
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass2b.&lt;BeginInvokeAction&gt;b__1c() +38
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass21.&lt;BeginInvokeAction&gt;b__1e(IAsyncResult asyncResult) +186
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.&lt;BeginExecuteCore&gt;b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +65
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.&lt;BeginProcessRequest&gt;b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +44
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +65
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +15
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +27
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1737

Hi,

I am looking for some strategies as to how to go about integrating changes made between releases of the downloadable template. I have just got the template a couple of days ago (so lets call that version 1.10).

As my application will ultimately be an MPA I want to take out all the SPA stuff and then of course I want to change things, most notably move things around, rename things. However that is where the trouble will start.

If I say pick a change from the upcoming 1.11 release at random: [https://github.com/aspnetzero/aspnet-zero/commit/dd7883e3dd87ff422bc32963dba8d648ed95c0da]). A quick look tells me there are EIGHT file changes and ~250 changes all up.

So now I want to go about folding in those changes to my application, as I see it I would have to:

  1. Generate a new template download named with the same application name and company name
  2. Diff 1. against my current code base
  3. Work out what to change based on 2.

The above sounds like a nightmare to me and very time consuming. I am hoping that I am missing something obvious here and that there is a simple(r) solution to this?

Any comments and suggestions greatly appreciated.

Hi,

The development guide states:

If you just want to build a SPA, you can safely remove MPA files from your project, or vice versa.

So I want to remove all the SPA files. Which files can be safely deleted? (MPA is easier because it is all the files under Area\Mpa).

I have also raised <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/251">https://github.com/aspnetzero/aspnet-zero/issues/251</a> so that this becomes easier.

I cannot see it being used anywhere? The ProfileController seems to do its own thing when it comes to files?

Hi,

I am following [https://www.aspnetzero.com/Documents/Getting-Started#spa-or-mpa]) and it says:

As an alternative, you can open AccountController under the Web project and replace all redirections to the Application/Index with redirections to the Mpa/Home/Index.

Can you explain this a bit more as I am unsure what I have to change exactly?

Hi,

I understand that you are working Agile as per [http://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=2720]). I was wondering if there was some form of voting system as to what came next? In other words how we as customers influence what gets worked on next?

Hi Halil,

As I have to revisit logging with what we do I was wondering if you had any further thoughts on the direction ABP will take:

<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/771">https://github.com/aspnetboilerplate/as ... issues/771</a>

I realise this may be a roadmap issue that is still under consideration so if no decision has been made, then all good.

Hi,

I am using ABP 0.7.3.

I have a cache service that uses IoC to inject a ICacheManager. This cache service is created from the constructor of my MVC controller also using IoC.

I call the cache service from a method off the above controller and get a NullReference exception. I read the doco about not calling GetCache() in a constructor, but as this is ultimately being called from a regular controller method it is not that.

I include a screenshot of my code (attached) showing that all the necessary objects are instantiated.

Any pointers greatly appreciated.

Showing 1 to 10 of 12 entries