Base solution for your next web application

Activities of "affern"

Question

When I run the api host it goes to <a class="postlink" href="http://localhost:22742/">http://localhost:22742/</a> and showing a blank page. If I manually goes to <a class="postlink" href="http://localhost:22742/swagger/ui/index.html">http://localhost:22742/swagger/ui/index.html</a> the page looks like the picture in the attachment. What can be wrong? I have followed the steps in the setup document (<a class="postlink" href="https://www.aspnetzero.com/Documents/Getting-Started-Angular">https://www.aspnetzero.com/Documents/Ge ... ed-Angular</a>) I have never used Swagger before. Do I need to install something to get the Swagger page to show as in the doc?

Hello. I think this framework is nice, but I really miss an Angular public front/home page in the solution that use same header as the app solution. I have read the post where you suggest to create a public site from a copy of the account app, but I'm not able to insert the Header component. Is there anyone here who has done this before or who can tell me how I do this?

Hello.

I have a problem with duplicate values get inserted in sub entities when I update main entity because I don't use composite keys. Let say you have an Order class with many-to-many relationship to OrderItems:

public class Order : FullAuditedEntity<long> { public virtual ICollection<OrderItem> OrderItems { get; set; } }

How do I design the OrderItem class?

When I do this: public class OptionItem : FullAuditedEntity<long> {
public long OrderId { get; set; }
public string ItemText { get; set; } public int ItemValue { get; set; } }

then Entity Framework insert the same OptionItems in db everytime Order is updated. I wonder what is best practice in Asp.Net Zero framework to manage this? Shoud I use composite keys in the OptionItem class or should I handle this in a different way? I think it would be easy to have composite keys because then I can delete all items with OrderId before I update Order again. But I can't figure out how I implement this in Asp.Net Zero.

Hello. What do I have to do after I have installed a css package with Yarn? Is there any bundle file I have to insert a reference to the css?

I'm trying to publish my solution to Azure but I have I'm not able to get it to work. I have followed the same instructions from this tutorial: <a class="postlink" href="https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-dotnet-sqldatabase">https://docs.microsoft.com/en-us/azure/ ... qldatabase</a>.

I get this error message on the page: "An error occurred while starting the application. SqlException: Invalid object name 'AbpEditions'. System.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)

SqlException: Invalid object name 'AbpEditions'."

This is because the database was not created.

Is there anything I have to configure in the appsettings file or other places to get this to work?

Hi.

I'm not able to login with my admin user anymore. I deleted my database and all my migration files to have a clean solution before I published to Azure. Now I'm not able to login to my development app or Azure app with admin user. Something is failing in LoginAsync.

My page returns Failed to load resource: the server responded with a status of 500 (Internal Server Error). GET <a class="postlink" href="https://mywebhost.azurewebsites.net/AbpUserConfiguration/GetAll">https://mywebhost.azurewebsites.net/Abp ... ion/GetAll</a> 500 (Internal Server Error) VM5832:350 ERROR: VM5832:350 {code: 0, message: "InternalServerError", details: null, validationErrors: null}

I had this working, but after my last deploy i get this error. My config settings looks fine. I run new host api core 2.0 version, but together with Angular 4 version. It runs fine on my local machine.

I have got a strange issue. My solution works local, but in Azure I can not register new users. But I can log in and do other things. My log-file in Azure is also emty. But the Azure application log gives me this output: <h3>HTTP Error 500.0 - Internal Server Error</h3> <h4>The page cannot be displayed because an internal server error has occurred.</h4> </div> <div class="content-container"> <fieldset><h4>Most likely causes:</h4> <ul> <li>IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.</li> <li>IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.</li> <li>IIS was not able to process configuration for the Web site or application.</li> <li>The authenticated user does not have permission to use this DLL.</li> <li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li> </ul> </fieldset> </div> <div class="content-container"> <fieldset><h4>Things you can try:</h4> <ul> <li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.</li> <li>Check the event logs to see if any additional information was logged.</li> <li>Verify the permissions for the DLL.</li> <li>Install the .NET Extensibility feature if the request is mapped to a managed handler.</li> <li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> </fieldset> </div>

<div class="content-container"> <fieldset><h4>Detailed Error Information:</h4> <div id="details-left"> <table border="0" cellpadding="0" cellspacing="0"> <tr class="alt"><th>Module</th><td>   AspNetCoreModule</td></tr> <tr><th>Notification</th><td>   ExecuteRequestHandler</td></tr> <tr class="alt"><th>Handler</th><td>   aspNetCore</td></tr>

Anybody have any suggestions? How can I enable the log-file ?

After I upgraded my Angular solution to version 5 and published to Azure, I get this error:

ERROR Error: Uncaught (in promise): ReferenceError: EditionSelectDto is not defined ReferenceError: EditionSelectDto is not defined at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:1430:42">https://mysitefrontwebapp.azurewebsites ... js:1430:42</a> at Object.../../../../../src/account/payment/paypal/paypal.component.ts (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:1443:2">https://mysitefrontwebapp.azurewebsites ... .js:1443:2</a>) at webpack_require (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/inline.bundle.js:55:30">https://mysitefrontwebapp.azurewebsites ... e.js:55:30</a>) at Object.../../../../../src/account/payment/payment-gateways.component.ts (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:1239:83">https://mysitefrontwebapp.azurewebsites ... js:1239:83</a>) at webpack_require (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/inline.bundle.js:55:30">https://mysitefrontwebapp.azurewebsites ... e.js:55:30</a>) at Object.../../../../../src/account/account.module.ts (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:257:95">https://mysitefrontwebapp.azurewebsites ... .js:257:95</a>) at webpack_require (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/inline.bundle.js:55:30">https://mysitefrontwebapp.azurewebsites ... e.js:55:30</a>) at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/main.bundle.js:33:10">https://mysitefrontwebapp.azurewebsites ... e.js:33:10</a> at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7569:26">https://mysitefrontwebapp.azurewebsites ... js:7569:26</a>) at Object.onInvoke (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/vendor.bundle.js:123266:33">https://mysitefrontwebapp.azurewebsites ... :123266:33</a>) at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7568:32">https://mysitefrontwebapp.azurewebsites ... js:7568:32</a>) at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7329:43">https://mysitefrontwebapp.azurewebsites ... js:7329:43</a>) at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7962:57">https://mysitefrontwebapp.azurewebsites ... js:7962:57</a> at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7602:31">https://mysitefrontwebapp.azurewebsites ... js:7602:31</a>) at Object.onInvokeTask (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/vendor.bundle.js:123257:33">https://mysitefrontwebapp.azurewebsites ... :123257:33</a>) at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:1430:42">https://mysitefrontwebapp.azurewebsites ... js:1430:42</a> at Object.../../../../../src/account/payment/paypal/paypal.component.ts (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:1443:2">https://mysitefrontwebapp.azurewebsites ... .js:1443:2</a>) at webpack_require (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/inline.bundle.js:55:30">https://mysitefrontwebapp.azurewebsites ... e.js:55:30</a>) at Object.../../../../../src/account/payment/payment-gateways.component.ts (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:1239:83">https://mysitefrontwebapp.azurewebsites ... js:1239:83</a>) at webpack_require (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/inline.bundle.js:55:30">https://mysitefrontwebapp.azurewebsites ... e.js:55:30</a>) at Object.../../../../../src/account/account.module.ts (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/account.module.chunk.js:257:95">https://mysitefrontwebapp.azurewebsites ... .js:257:95</a>) at webpack_require (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/inline.bundle.js:55:30">https://mysitefrontwebapp.azurewebsites ... e.js:55:30</a>) at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/main.bundle.js:33:10">https://mysitefrontwebapp.azurewebsites ... e.js:33:10</a> at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7569:26">https://mysitefrontwebapp.azurewebsites ... js:7569:26</a>) at Object.onInvoke (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/vendor.bundle.js:123266:33">https://mysitefrontwebapp.azurewebsites ... :123266:33</a>) at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7568:32">https://mysitefrontwebapp.azurewebsites ... js:7568:32</a>) at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7329:43">https://mysitefrontwebapp.azurewebsites ... js:7329:43</a>) at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7962:57">https://mysitefrontwebapp.azurewebsites ... js:7962:57</a> at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7602:31">https://mysitefrontwebapp.azurewebsites ... js:7602:31</a>) at Object.onInvokeTask (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/vendor.bundle.js:123257:33">https://mysitefrontwebapp.azurewebsites ... :123257:33</a>) at resolvePromise (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7914:31">https://mysitefrontwebapp.azurewebsites ... js:7914:31</a>) [angular] at resolvePromise (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7885:17">https://mysitefrontwebapp.azurewebsites ... js:7885:17</a>) [angular] at <a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7962:17">https://mysitefrontwebapp.azurewebsites ... js:7962:17</a> [angular] at Object.onInvokeTask (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/vendor.bundle.js:123257:33">https://mysitefrontwebapp.azurewebsites ... :123257:33</a>) [angular] at drainMicroTaskQueue (<a class="postlink" href="https://mysitefrontwebapp.azurewebsites.net/polyfills.bundle.js:7795:35">https://mysitefrontwebapp.azurewebsites ... js:7795:35</a>) [<root>] at <anonymous> [<root>]

It works fine on my local computer, so something is missing in the build to prod.

Hi. How do I get language selection from users who are not logged in? I have created a public page for non-authenticated users and I need to show static content pages like "Help", "Cookies" and "Terms and Conditions" in the selected language. I have managed it to work for authenticated users, but I can't find the method in angular that get the language.

Showing 1 to 10 of 20 entries