Base solution for your next web application

Activities of "mengvisal"

Hi!

I am trying to do a create page which is a sub state of "project", a sub state of tenant (tenant.projects.create) as following:

$stateProvider.state('tenant.projects', { url: '/projects', templateUrl: '~/App/tenant/views/projects/index.cshtml', menu: 'Sale.Projects.Tenant' });

    $stateProvider.state('tenant.projects.create', {
        url: '/create',
        templateUrl: '~/App/tenant/views/projects/create.cshtml',
        menu: 'Sale.Projects.Tenant'
    });

When I try to use "state.go('tenant.projects.create')" on button click or use "ui-sref='tenant.projects.create'" on a link in the Project page to load the "Create Project" page, the URL in the browser is rewritten correctly to: "http://localhost:6240/Application#/tenant/projects/create" but the view does not change. It still views the "Project Page" rather than "Create Project Page".

On the other hand, if I rewrite the state route with only two level deeps as following, it works:

$stateProvider.state('tenant.projects', { url: '/projects', templateUrl: '~/App/tenant/views/projects/index.cshtml', menu: 'Sale.Projects.Tenant' });

    $stateProvider.state('tenant.projectsCreate', {
        url: 'projects/create',
        templateUrl: '~/App/tenant/views/projects/create.cshtml',
        menu: 'Sale.Projects.Tenant'
    });

Hi!

When I change a language, I want to change a body font as well. So, what is the best way to do it in ASP.NET Zero for SPA?

Best,

Visal

Hi!

Linked account drop down has the html to get the user profile image as following:

<img ng-if="linkedUser.profilePictureId" ng-src="{{ abp.appPath + 'Profile/GetProfilePictureById?id=' + linkedUser.profilePictureId }}" width="22" height="22" class="img-rounded" />

but i do not see any "Profile" folder in my project. When I change the user image in the profile, I can see that the table App.BinaryObjects is inserted and i can also see change of the image in my profile but it is not showing in the linked account. Can you explain how this profile picture especially the code above works?

Thanks!

Visal

Hi!

I am trying to resolve a service using web api dynamic in resolve before loading the controller but somehow the resolve data does not inject to the controller. Do you have any clue?

Best,

Visal

Hi,

What is the best way to do bulk insert of 10,000 rows? I cannot find "AddRange" or "BulkInsert" extension of entity framework in ASP.NET Zero generic repository. When i try to do single insert for 10,000 rows and then it times out. My current method is to call save change method or create new unit of work for every 1000 rows. So what is your suggestion?

Best,

Visal

Hi!

I am trying to update to ASP.NET Zero the latest version. However, i have compilation error for the $ sign in GetTimezoneInfos method of TimingAppService.

var defaultTimezoneName = $"{L("Default")} [{defaultTimezone.DisplayName}]";

Do you have any suggestion?

Hi!

After i update to version 0.9.3.0, I have the following error when debugging in chrome. I also cloned the latest version from github to test and also have same error. The only solution for me now is to remove the line "map" all min library javascripts containing this .map but it is too annoying. Do you have any other ideas how to solve this?

System.Web.HttpException was unhandled by user code HResult=-2147467259 Message=The controller for path '/libs/toastr/toastr.js.map' was not found or does not implement IController. Source=System.Web.Mvc ErrorCode=-2147467259 WebEventCode=0 StackTrace: at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) at Abp.Web.Mvc.Controllers.WindsorControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Mvc\Web\Mvc\Controllers\WindsorControllerFactory.cs:line 47 at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() InnerException:

Hi!

I try to run the original test project of ASP.NET Zero without modifying anything insides but I have some errors and successes. Those errors are all permissions required. Do you know how to fix this? Below are the error messages:

Result Message: Abp.Authorization.AbpAuthorizationException : Required permissions are not granted. At least one of these permissions must be granted: Pages.Administration.OrganizationUnits Result StackTrace: at Abp.Authorization.PermissionCheckerExtensions.<AuthorizeAsync>d__12.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\PermissionCheckerExtensions.cs:line 272 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

Hi! I am looking for a promising angularJS datepicker or datetimepicker that support multiple timezones and work with moment.js? I have been searching online but not sure yet.

Hi!

When I try to change the profile picture for the project hosted in IIS of Amazon EC2, it gives me error: <a class="postlink" href="http://mywebsite.com/Profile/UploadProfilePicture">http://mywebsite.com/Profile/UploadProfilePicture</a> 500 (Internal Server Error) but when I test in IIS Express, it is working fine.

FYI: I configure default route in the project to Application/Index instead of Home/Index because I want to go directly to Login Page or Tenant Page (Not Front-end Page)

routes.MapRoute(
               name: "Default",
               url: "{controller}/{action}/{id}",
               defaults: new { controller = "Application", action = "Index", id = UrlParameter.Optional },
               namespaces: new[] { "CarlWeb.Controllers" }
           );

Thanks!

Showing 1 to 10 of 13 entries