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

Activities of "kythor"

Question

I'm trying to use ng-select in my Angular app.

I followed the instructions on <a class="postlink" href="https://github.com/ng-select/ng-select">https://github.com/ng-select/ng-select</a>

but when I try to use it on a "create-or-edit-xxx-modal.component" i get this error:

any ideas?

Error: Uncaught (in promise): Error: Template parse errors:
core.js:1448
message:"Uncaught (in promise): Error: Template parse errors:\nCan't bind to 'items' since it isn't a known property of 'ng-select'.\n1. If 'items' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("                       <div class="form-group">\r\n                                        <ng-select [ERROR ->][items]="phases"\r\n                                                    bindLabel="title"\r\n            "): ng:///AdminModule/CreateOrEditPlanModalComponent.html@52:51\n'ng-select' is not a known element:\n1. If 'ng-select' is an Angular component, then verify that it is part of this module.\n2. If 'ng-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("\r\n                                <div class="form-group">\r\n                                        [ERROR ->]<ng-select [items]="phases"\r\n              ...
promise:ZoneAwarePromise {__zone_symbol__state: 0, __zone_symbol__value: Error: Template parse errors:\nCan't bind to 'items…}
rejection:Error: Template parse errors:
stack:"Error: Uncaught (in promise): Error: Template parse errors:\nCan't bind to 'items' since it isn't a known property of 'ng-select'.\n1. If 'items' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("                       <div class="form-group">\r\n                                        <ng-select [ERROR ->][items]="phases"\r\n                                                    bindLabel="title"\r\n            "): ng:///AdminModule/CreateOrEditPlanModalComponent.html@52:51\n'ng-select' is not a known element:\n1. If 'ng-select' is an Angular component, then verify that it is part of this module.\n2. If 'ng-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("\r\n                                <div class="form-group">\r\n                                        [ERROR ->]<ng-select [items]="phases"\r\n       ...
task:ZoneTask {_zone: Zone, runCount: 0, _zoneDelegates: null, …}
zone:Zone {_properties: Object, _parent: Zone, _name: "angular", …}
__proto__:Object {constructor: , name: "Error", message: "", …}

Ok, a wierd one. I added some extra fields to User object, so people can enter their address,... so I also updated CurrentUserProfileEditDto Added new migration, update-database,...

On the angular side, did a nswag refresh.bat, added the fields to the modal popup for "My Settings".

Now when I save the settings, the extra fields are not saved. When debugging i can see that

save(): void {
        this.saving = true;
        this._profileService.updateCurrentUserProfile(this.user)

this.user contains ALL the fields with the correct data. but still nothing being saved.

when I look at the audit message, I get this for UpdateCurrentUserProfile:

{
    "input": {
        "name": "admin",
        "surname": "admin",
        "userName": "admin",
        "emailAddress": "[email protected]",
        "phoneNumber": "sddsds",
        "isPhoneNumberConfirmed": false,
        "timezone": null,
        "qrCodeSetupImageUrl": "",
        "isGoogleAuthenticatorEnabled": false
    }
}

The extra fields are somehow not in the input Json... I just don't see what i'm doing wrong here.

Question

I upgraded all nuget packages for the new v5.2.0 version. I get an error when running the webhost. Although the page is loaded and i see all the services:

The source map 'swagger-ui-bundle.js.map' for file 'mdha:http://localhost:22742/swagger/swagger-ui-bundle.js' could not be read from the specified location due to error 'Exception of type 'TypeScriptSourceMapReader.SourceMapReadFailedException' was thrown.'.The source map 'swagger-ui-standalone-preset.js.map' for file 'mdha:http://localhost:22742/swagger/swagger-ui-standalone-preset.js' could not be read from the specified location due to error 'Exception of type 'TypeScriptSourceMapReader.SourceMapReadFailedException' was thrown.'.

At the bottom of the swagger page, is see an error button. When I click on it, i get

{"schemaValidationMessages":[{"level":"error","message":"Can't read from file /swagger/v1/swagger.json"}]}

what to do?

Hi guys,

I'm trying to setup a CI setup for the angular app. But i'm not sure how to do it correctly. I tried something but got this error on "npm install":

2018-02-14T09:58:22.3947388Z [command]C:\Program Files\nodejs\npm.cmd install --force
2018-02-14T09:58:23.1148738Z npm WARN using --force I sure hope you know what you are doing.
2018-02-14T09:59:04.0232802Z npm WARN deprecated [email protected]: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
2018-02-14T09:59:22.7598061Z npm ERR! code EINTEGRITY
2018-02-14T09:59:22.7609655Z npm ERR! sha1-0sMepJKyK2qNiHrqFZiaI4/AhK4= integrity checksum failed when using sha1: wanted sha1-0sMepJKyK2qNiHrqFZiaI4/AhK4= but got sha1-s+4q3E2tVI1K6ZiZT1rIAtx1O4Y=. (16980 bytes)
2018-02-14T10:00:16.2216749Z 
2018-02-14T10:00:16.2217856Z npm ERR! A complete log of this run can be found in:
2018-02-14T10:00:16.2218157Z npm ERR!     C:\npm\cache\_logs\2018-02-14T09_59_22_783Z-debug.log
2018-02-14T10:00:16.3425967Z ##[error]npm failed with error: C:\Program Files\nodejs\npm.cmd failed with return code: 1
2018-02-14T10:00:16.3455803Z ##[section]Finishing: npm install

Hi, couple of months ago I upgraded to ABP 3.4.0 Didnt have any problems until now. Trying to add or update users manually for a tenant. I get his error:

AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Mapping types:
User_0982A06B3D7A322931BE27D128726007A283D673C9DCFF4BE6024F5FF709CCB8 -> UserEditDto

But on another tenant users can still register automatically without a problem.

The UserEditDto hasnt changed since months. What to do?

Hi, I have the ASP.NET Core & Angular framework, with separated solutions. I can start debugging the Web.Host project without problems.

But now I want to start debugging the Angular project, I get this error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS1926	Error opening Win32 manifest file D:\src\shared\utils\chat-message.component.html -- Could not find a part of the path 'D:\src\shared\utils\chat-message.component.html'.	JOREL.OPTA.AngularUI	D:\Dev\OPTA3\angular\CSC	1	Active

any help would be appreciated.

Question

i'm trying to implement a new layout to the public mvc site (asp.net core). But i keep getting dozens of /Error?statusCode=404 net::ERR_TOO_MANY_REDIRECTS errors. for example it's trying to reach the fontawesome.css file that is without a doubt in the correct directory on the server.

any quick advice how to get this right?

Question

I'm trying to update the ASP.NET Core Public mvc site with my own CSS files.

I have installed latest version of Visual studio 2017 + Bundle & minifier and have problems generating the output file. It keeps failing because there are @import statements in the css.

But when I look at the default css you guys are using, there are @import statements as well. So which method do you use to create the (minified) output files??

I'm trying to setup ASP.NET Core & Angular on my IIS server. I followed all the steps, but when I go to the angular site, I get a popup with "Resource not found" and in the F12 screen I see that it's looking for <a class="postlink" href="http:///assets/appconfig.json">http:///assets/appconfig.json</a>

but its there....

what to do?

Hi,

after upgrading to version 1.0.0.0 I get this error when loading the site:

Cannot read property 'antiForgery' of undefined

coming from abp.js

(function(){
    abp.security.antiForgery.tokenCookieName = 'XSRF-TOKEN';
    abp.security.antiForgery.tokenHeaderName = 'X-XSRF-TOKEN';
})();

any help would be appreciated. thx.

Showing 11 to 20 of 36 entries