Base solution for your next web application

Activities of "jdavis01"

I am running an internal site on AspNet Core mVC JQuery on framework 4.6.1.

Here are the application smtp settings (fake values of course) :

from address: <a href="mailto:[email protected]">[email protected]</a> from Name: First Last

Host: ##.##.##.## Use SSL = false Use default address: Yes

Send To address: <a href="mailto:[email protected]">[email protected]</a>

Here is the error that is generated

ERROR 2017-06-08 07:00:02,489 [27   ] Mvc.ExceptionHandling.AbpExceptionFilter - Setting value for 'Abp.Net.Mail.Smtp.UserName' is null or empty!
Abp.AbpException: Setting value for 'Abp.Net.Mail.Smtp.UserName' is null or empty!
   at Abp.Net.Mail.EmailSenderConfiguration.GetNotEmptySettingValue(String name)
   at Abp.Net.Mail.Smtp.SmtpEmailSenderConfiguration.get_UserName()
   at Abp.MailKit.DefaultMailKitSmtpBuilder.ConfigureClient(SmtpClient client)
   at Abp.MailKit.DefaultMailKitSmtpBuilder.Build()
   at Abp.MailKit.MailKitEmailSender.BuildSmtpClient()
   at Abp.MailKit.MailKitEmailSender.<SendAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---

So here is the kicker .. I have another app that uses System.Net.Mail and no issues with the same settings and no errors..

Thoughts?

I moved it to a private repo and added you

<a class="postlink" href="https://github.com/joedavis01/scratchPad">https://github.com/joedavis01/scratchPad</a>

No I havent installed resharper on my vs 2017 installation yet. The only extensions i am using at the moment are the ones recommended in the Pre Requisites seciton of the development guide here [https://aspnetzero.com/Documents/Development-Guide-Core#pre-requirements])

I have this really annoying issue on schema modification and add-migration..

Using Visual Studio 2017 15.2.26430.6 and AspNetZero Template AspNet.Core MVC & JQuery on Framework 4.6.1

Everytime I update the schema, add migration the update-database command will not execute because the build fails.

The error code is CS1001 Identifier expected and it is coming from a blank using statement (using;) in both the PROJECTAMEDbcontextModelSnapshot.cs file and the migration file just created from the add-migration command.

If I modify these files to remove the "using;" statements and save the build is just fine until I modify the schema again and add a migration..

Not sure if you have seen this or not but it is rather an annoying issue and would love to see if you have some feedback on it ..

So I posted having a problem earlier with the ASPNet.core MVC & JQuery version 4.0.0 and thought that syntax was the issue however i have the same problem again. Here is what I am doing.

I copy the _empty.js file from the view-resources/areas/app/views/common/modals/empty to lets say a Suppliers folder (view-resources/areas/app/views/common/modals/suppliers/)

I rename the _empty.js file to _CreateSupplierModal.js and paste the following code

(function () {
    var _createSupplierModal = new app.ModalManager({
        viewUrl: abp.appPath + 'App/Suppliers/CreateSupplierModal',
        scriptUrl: abp.appPath + 'view-resources/Areas/App/Views/Suppliers/_CreateSupplierModal.js',
        modalClass: 'CreateSupplierModal'
    });

    // Grab the person service for CRUD Operations
    var _supplierService = abp.services.app.supplier;

    //Create person button
    $('#CreateNewSupplierButton').click(function (e) {
        e.preventDefault();
        _createSupplierModal.open();
    });

})();

this modal will not fire. I have to create a new javascript file and name it something like _CreateSupplierModalWindow and use this code it works fine.

(function () {
    var _createSupplierModal = new app.ModalManager({
        viewUrl: abp.appPath + 'App/Suppliers/CreateSupplierModal',
        scriptUrl: abp.appPath + 'view-resources/Areas/App/Views/Suppliers/_CreateSupplierModalWindow.js',
        modalClass: 'CreateSupplierModal'
    });

    // Grab the person service for CRUD Operations
    var _supplierService = abp.services.app.supplier;

    //Create person button
    $('#CreateNewSupplierButton').click(function (e) {
        e.preventDefault();
        _createSupplierModal.open();
    });

})();

I have tried to delete the tainted files and re-create them but it does not work. I didn't have any problems whatsoever of this nature using Visual Studio 2015 and MVC5 version.

What are your thoughts and am I overlooking something.

You can disregard this issue. I am really new to this architecture and I was missing some syntax. Feel really stupid for the simple mistake however love the project and have learned a lot..

I downloaded the 4.0 Core - Jquery with 4.6 framework to upgrade an existing project. and now i am getting , "Internal Error has occurred ! " on modal creation. I was perplexed so I created a new project and started copying the PhoneBook example into the new project and the same thing happens. Is there a log to view so i can see what is happening?

I am implementing a web client print utility that allows direct printing of ZPL commands to a zebra printer. These ZPL commands are built based on a product selection and typically done directly inside my controllers. Given the layering in abp would you suggest moving this action to a method in the application layer that returns the formatted command string through the service?

Question

I'm working on an application, where I need to extend user profiles to include some application settings. What would be your best practice recommendations?

I'm thinking I should extend the user entity to include their settings then update the user profile Dto's

Thoughts?

Showing 61 to 69 of 69 entries