Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

Yes thanks. I had to read again the documentation on NgModule. Any imports on the root module are not available to any feature module.

Regards Bilal

Hello,

I noticed in the AppCommonModule that you use the forRoot() method to provide 2 services. Also, in the providers array of the module you provide 2 other services.

My question is why not move them all to forRoot()? Why separating them?

Because AppCommonModule would be imported in every new Feature Module, so Angular would create more than one instance of the DateTimeService and AppLocalizationService. In a time, they could be singleton also and added with forRoot()?

Thanks

Great thanks!

Thanks a lot

I am migrating an old app to use ASP.NET Core and Angular 2. I haven't tried yet, but I tried to search for this "abp.setting.get()" in the source code for the Angular app, and I noticed you never call this. Don't you access Settings in the application? Usually I search for stuff in your app and try to learn from it.

Thanks Bilal

Hello, In the ASP.NET MVC 5 / Angular Js, I was using abp.setting.get(). Now when I upgraded to the ASP.NET Core / Angular 2, I cannot find this function. Has anything been changed?

Also, back then, I used the Razor views and I was able to access this: SettingManager.GetSettingValue()

Now how to accomplish the same thing?

Thanks Bilal

Hi,

I created a new module and imported it to AppModule (lazy load).

In this new module I needed to use [busyIf] directive. I couldn't use it without importing UtilsModule into my new module. Although UtilsModule is already imported to AppModule.

Why is that?

Thanks Bilal

Hello, When publishing the application to IIS local, I had to change some Urls to make use of ~/ instead of just / as my app wasn't hosted as a website but rather an application inside Default Website.

Thanks Bilal

I had to change this in the web.config file to use the .exe to run the app:

<aspNetCore processPath=".\DrcApp.Web.Host.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>

why is that?

Hello, I am trying to publish the application I am working on (ASP.NET Core / Angular 2 / .NET 4.6) to IIS on my local machine. I followed the steps online to publish to IIS. Once I run the application, I get this error:

HTTP Error 502.5 - Process Failure 
Common causes of this issue: 
The application process failed to start 
The application process started but then stopped 
The application process started but failed to listen on the configured port 
Troubleshooting steps: 
Check the system event log for error messages 
Enable logging the application process’ stdout messages 
Attach a debugger to the application process and inspect 
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681

I then check the Event Viewer and see this error:

Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/DRC' with physical root 'C:\inetpub\wwwroot\drc\' failed to start process with commandline '"%LAUNCHER_PATH%" %LAUNCHER_ARGS%', ErrorCode = '0x80070002 : 0.

Any idea what's going on?

Thanks Bilal

Showing 131 to 140 of 635 entries