Base solution for your next web application

Activities of "terrybentley"

Answer

Thanks you for your quick response (as always)!

I was thinking that was all that was required but was not sure of the unexpected repercussion of overriding.

I should then be able to just do an Async Ajax call to the Log table and on failure write to the console log.

Question

I would like to log javascript errors and warnings to Log4Net with the other errors generated that are already going to the SQL Server and File system via Log4Net. The boilerplate documentation in the Javascript Logging API section says "These functions write logs to browser's console by default. But you can override/extend this behaviour if you need" but doesn't say how to do it.

Does anyone know how I would go about logging to Log4Net?

Thanks... Terry

I have an application using Log4Net posting to SQL Server database. Since it is a multi-tenant application I would like it to record the TenantId. I have added the column in the Log table and added in the log4net.config the @tenantId to the Insert command and added the entry <parameter> <parameterName value="@tenantId" /> <dbType value="Int32" /> <layout type="log4net.Layout.RawPropertyLayout" > <key value="tenantId"></key> </layout> </parameter>

How do I make the change to pass the tenantId through to the Logger?

Thanks... Terry

I have been able to resolve these errors. There were quite a few more differences that I came across that needed to be applied. The application is almost working - I now need to figure out why I am only seeing the Dashboard and Administration in the sidebar.

I installed the ASP.NET Zero a few months ago and it is working out very well. There have been a few new features added recently that I have almost working but not quite. The ones I am referring to are the new database Language feature and the Edition and Feature features.
I did the nuget, created and loaded the table changes, modified the few modules,... I think they are ready to go but I don't know where to find the maintenance screens. How do I maintain the language table and the edition/feature tables? Or do I need to create these index,js and index.cshtml files and link them in with the necessary permissions.

Thanks...Terry

I have been struggling for a couple days trying to get token based authentication working with the ASP.NET Zero framework. I will need this to secure the APIs that will be used by third party software as well as my web app. I have been able to get the sample provided in the link <a class="postlink" href="http://bitoftech.net/2014/06/01/token-based-authentication-asp-net-web-api-2-owin-asp-net-identity/">http://bitoftech.net/2014/06/01/token-b ... -identity/</a> working but am having trouble transitioning this sample which uses the basic Microsoft.AspNet.Identity to using the enhanced Abp.Authorization framework in ASP.NET Zero.

Any assistance gratefully accepted.

Thanks. I was using List<ComboBoxItemDto>, I will switch to the ListResultOuput<ComboBoxItemDto> to see how that looks.

I am using the localization that you mention for static labels and such but need to access the database for localized text data values.

I had a look at the sql generated using SQL Profiler and in both the following cases the WHERE clause was added limiting the rows fetched from the table.

_myRepository .GetAll() .Where(e => e.AssetId == input.AssetId && e.StartTime >= input.StartTime) .WhereIf(input.EndTime.HasValue, e => e.EndTime <= input.EndTime)

_myRepository .GetAllList((a => a.Core.IsActive == true && a.Core.ApplicationId == input.ApplicationId));

I just deployed my web application to Azure and the deploy went well. The initial page came up fine as did the login page. However, as soon as I logged in I see a bunch of javascript error in the Firebug window and the page never loads: TypeError: t is undefined ...cludes(t)};return t.$stateful=!0,t}var u=t.isDefined,h=t.isFunction,f=t.isString... /Bundles/App/lib/ js?v=FW...td3Mdo1 (line 1, col 693815)

ReferenceError: angular is not defined })((abp || (abp = {})), (angular || undefined)); /api/AbpServiceProxies/GetAll?type=angular (line 26, col 1)

TypeError: abp.utils is undefined var serviceNamespace = abp.utils.createNamespace(abp, 'services.app.application'... /api/AbpServiceProxies/GetAll (line 3, col 9)

TypeError: abp.event is undefined abp.event.trigger('abp.dynamicScriptsInitialized'); /AbpScripts/GetScripts?v=...7482904 (line 715, col 5)

TypeError: abp.localization.getSource is not a function ..."}}})})();app=app||{},function(){var n=abp.localization.getSource("RtCloud");app... /Bundles/Common/ js?v=gA...p4dBnQ1 (line 1, col 272)

ReferenceError: angular is not defined var appModule=angular.module("app",["ui.router","ui.bootstrap","ui.utils","ui.jq... /Bundles/App/ js?v=FZ...EjBVeo1 (line 1, col 9)

Any tips would be appreciated. Terry

I have been developing a new project using the ASP.Net Iteration Zero based on the MPA/SLA hybrid sample.

Does anyone have any suggestions as to how best to retrieve and display localized data for drop down lists. I already have service methods that return the values for the entity based on the language code provided although not sure if I should return it as a ListResultOuput or some more specialized DTO like the ComboBoxItemDto

These fields are things like record types, time zones, classifications, etc that need to be repopulated when the language changes. These codes rarely change and really only need to be populated once per session.

Thanks

Showing 1 to 10 of 10 entries