Base solution for your next web application

Activities of "gbadenhorst"

Thank you Yekalkan

The problem only occurs when i have navigation properties included it seems. normal entities with only primitive properties work as should.

sure, here it is:

That is what I don't understand, everything looks fine and it is an extremely weird scenario where I can't find where the data mappings go wrong.

i have about 4 entities if i remember correctly which is currently doing this.

<div [@routerTransition]> <div class="m-subheader"> <div class="d-flex align-items-center"> <div class="mr-auto col-xs-6"> <h3 class="m-subheader__title m-subheader__title--separator"> <span>{{l("ServiceCallTasks")}}</span> </h3> <span class="m-section__sub"> {{l("ServiceCallTasksHeaderInfo")}} </span> </div> <div class="col-xs-6 text-right"> <button (click)="exportToExcel()" class="btn btn-outline-success"><i class="fa fa-file-excel-o"></i> {{l("ExportToExcel")}}</button> <button *ngIf="isGranted('Pages.ServiceCallTasks.Create')" (click)="createServiceCallTask()" class="btn btn-primary blue"><i class="fa fa-plus"></i> {{l("CreateNewServiceCallTask")}}</button> </div> </div> </div> <div class="m-content"> <div class="m-portlet m-portlet--mobile"> <div class="m-portlet__body">

			&lt;form class=&quot;horizontal-form&quot; autocomplete=&quot;off&quot;&gt;
                &lt;div class=&quot;m-form m-form--label-align-right&quot;&gt;
                    &lt;div class=&quot;row align-items-center m--margin-bottom-10&quot;&gt;
                        &lt;div class=&quot;col-xl-12&quot;&gt;
                            &lt;div class=&quot;form-group m-form__group align-items-center&quot;&gt;
                                &lt;div class=&quot;input-group&quot;&gt;
                                    &lt;input [(ngModel)]=&quot;filterText&quot; name=&quot;filterText&quot; autoFocus class=&quot;form-control m-input&quot; [placeholder]=&quot;l(&#39;SearchWithThreeDot&#39;)&quot; type=&quot;text&quot;&gt;
                                    &lt;span class=&quot;input-group-btn&quot;&gt;
                                        &lt;button (click)=&quot;getServiceCallTasks()&quot; class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;&lt;i class=&quot;flaticon-search-1&quot;&gt;&lt;/i&gt;&lt;/button&gt;
                                    &lt;/span&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
					 &lt;div class=&quot;row m--margin-bottom-10&quot; [hidden]=&quot;!advancedFiltersAreShown&quot;&gt;
					 	&lt;div class=&quot;col-md-12&quot;&gt;
					         &lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
					     &lt;/div&gt;


						&lt;div class=&quot;col-md-3&quot;&gt;
                            &lt;div class=&quot;m-stack m-stack--ver m-stack--general m-stack--demo&quot;&gt;
								&lt;div class=&quot;form-group&quot;&gt;
                                     &lt;div class=&quot;m-stack__item&quot;&gt;
										 &lt;label&gt;{{l("Task")}}&lt;/label&gt;
										 &lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
										 &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;taskFilter&quot; [(ngModel)]=&quot;taskFilter&quot;&gt;
								     &lt;/div&gt;
								&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
						&lt;div class=&quot;col-md-3&quot;&gt;
                            &lt;div class=&quot;m-stack m-stack--ver m-stack--general m-stack--demo&quot;&gt;
								&lt;div class=&quot;form-group&quot;&gt;
                                     &lt;div class=&quot;m-stack__item&quot;&gt;
										 &lt;label&gt;{{l("Details")}}&lt;/label&gt;
										 &lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
										 &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;detailsFilter&quot; [(ngModel)]=&quot;detailsFilter&quot;&gt;
								     &lt;/div&gt;
								&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;div class=&quot;col-md-3&quot;&gt;
                            &lt;div class=&quot;m-stack m-stack--ver m-stack--general m-stack--demo&quot;&gt;
                                &lt;div class=&quot;form-group&quot;&gt;
                                    &lt;div class=&quot;m-stack__item&quot;&gt;
											&lt;label&gt;{{l("MinMax")}} {{l("HoursRequired")}}&lt;/label&gt;
											&lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
                                            &lt;input type=&quot;number&quot; class=&quot;form-control&quot; [(ngModel)]=&quot;minHoursRequiredFilter&quot; placeholder=&quot;{{l(&#39;MinValue&#39;)}}&quot; name=&quot;minHoursRequiredFilter&quot; /&gt;
                                    &lt;/div&gt;
                                    &lt;div class=&quot;m-stack__item&quot;&gt;
                                            &lt;input type=&quot;number&quot; class=&quot;form-control&quot; [(ngModel)]=&quot;maxHoursRequiredFilter&quot; placeholder=&quot;{{l(&#39;MaxValue&#39;)}}&quot; name=&quot;maxHoursRequiredFilter&quot; /&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;	
						&lt;div class=&quot;col-md-3&quot;&gt;
                            &lt;div class=&quot;m-stack m-stack--ver m-stack--general m-stack--demo&quot;&gt;
                                &lt;div class=&quot;m-stack__item&quot;&gt;
									&lt;label for=&quot;CompletedFilterSelect&quot;&gt;{{l("Completed")}}&lt;/label&gt;
									&lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
									&lt;select class=&quot;form-control&quot; name=&quot;CompletedFilter&quot; id=&quot;CompletedFilterSelect&quot; [(ngModel)]=&quot;completedFilter&quot;&gt;
									&lt;option value=&quot;-1&quot;&gt;{{l("All")}}&lt;/option&gt;
									&lt;option value=&quot;0&quot;&gt;{{l("False")}}&lt;/option&gt;
									&lt;option value=&quot;1&quot;&gt;{{l("True")}}&lt;/option&gt;
									&lt;/select&gt;
								&lt;/div&gt;
							&lt;/div&gt;
                        &lt;/div&gt;
						&lt;div class=&quot;col-md-3&quot;&gt;
                            &lt;div class=&quot;m-stack m-stack--ver m-stack--general m-stack--demo&quot;&gt;
								&lt;div class=&quot;form-group&quot;&gt;
									&lt;div class=&quot;m-stack__item&quot;&gt;
										&lt;label&gt;({{l("ServiceCall")}}) {{l("Subject")}}&lt;/label&gt;
										 &lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
									    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;serviceCallSubjectFilter&quot; [(ngModel)]=&quot;serviceCallSubjectFilter&quot;&gt;
									&lt;/div&gt;
								&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
						&lt;div class=&quot;col-md-3&quot;&gt;
                            &lt;div class=&quot;m-stack m-stack--ver m-stack--general m-stack--demo&quot;&gt;
								&lt;div class=&quot;form-group&quot;&gt;
									&lt;div class=&quot;m-stack__item&quot;&gt;
										&lt;label&gt;({{l("ServiceCallSchedule")}}) {{l("Subject")}}&lt;/label&gt;
										 &lt;div class=&quot;m-separator m-separator--dashed&quot;&gt;&lt;/div&gt;
									    &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;serviceCallScheduleSubjectFilter&quot; [(ngModel)]=&quot;serviceCallScheduleSubjectFilter&quot;&gt;
									&lt;/div&gt;
								&lt;/div&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;

                    &lt;/div&gt;
                    &lt;div class=&quot;row margin-bottom-10&quot;&gt;
                        &lt;div class=&quot;col-sm-12&quot;&gt;
                            &lt;span class=&quot;clickable-item text-muted&quot; *ngIf=&quot;!advancedFiltersAreShown&quot; (click)=&quot;advancedFiltersAreShown=!advancedFiltersAreShown&quot;&gt;&lt;i class=&quot;fa fa-angle-down&quot;&gt;&lt;/i&gt; {{l("ShowAdvancedFilters")}}&lt;/span&gt;
                            &lt;span class=&quot;clickable-item text-muted&quot; *ngIf=&quot;advancedFiltersAreShown&quot; (click)=&quot;advancedFiltersAreShown=!advancedFiltersAreShown&quot;&gt;&lt;i class=&quot;fa fa-angle-up&quot;&gt;&lt;/i&gt; {{l("HideAdvancedFilters")}}&lt;/span&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/form&gt;

            &lt;div class=&quot;row align-items-center&quot;&gt;
                
                &lt;div class=&quot;primeng-datatable-container&quot;
                     [busyIf]=&quot;primengTableHelper.isLoading&quot;&gt;
                    &lt;p-table #dataTable
                                 (onLazyLoad)=&quot;getServiceCallTasks($event)&quot;
                                 [value]=&quot;primengTableHelper.records&quot;
                                 rows=&quot;{{primengTableHelper.defaultRecordsCountPerPage}}&quot;
                                 [paginator]=&quot;false&quot;
                                 [lazy]=&quot;true&quot;
                                 [scrollable]=&quot;true&quot;
                                 ScrollWidth=&quot;100%&quot;
                                 [responsive]=&quot;primengTableHelper.isResponsive&quot;
                                 [resizableColumns]=&quot;primengTableHelper.resizableColumns&quot;&gt;
                        &lt;ng-template pTemplate=&quot;header&quot;&gt;
                            &lt;tr&gt;
                                &lt;th style=&quot;width: 130px&quot; [hidden]=&quot;!isGrantedAny(&#39;Pages.ServiceCallTasks.Edit&#39;, &#39;Pages.ServiceCallTasks.Delete&#39;)&quot;&gt;{{l('Actions')}}&lt;/th&gt;
                                &lt;th style=&quot;width: 150px&quot; pSortableColumn=&quot;serviceCallTask.task&quot;&gt;
                                    {{l('Task')}}
                                    &lt;p-sortIcon field=&quot;serviceCallTask.task&quot;&gt;&lt;/p-sortIcon&gt;
                                &lt;/th&gt;
                                &lt;th style=&quot;width: 150px&quot; pSortableColumn=&quot;serviceCallTask.details&quot;&gt;
                                    {{l('Details')}}
                                    &lt;p-sortIcon field=&quot;serviceCallTask.details&quot;&gt;&lt;/p-sortIcon&gt;
                                &lt;/th&gt;
                                &lt;th style=&quot;width: 150px&quot; pSortableColumn=&quot;serviceCallTask.hoursRequired&quot;&gt;
                                    {{l('HoursRequired')}}
                                    &lt;p-sortIcon field=&quot;serviceCallTask.hoursRequired&quot;&gt;&lt;/p-sortIcon&gt;
                                &lt;/th&gt;
                                &lt;th style=&quot;width: 150px&quot; pSortableColumn=&quot;serviceCallTask.completed&quot;&gt;
                                    {{l('Completed')}}
                                    &lt;p-sortIcon field=&quot;serviceCallTask.completed&quot;&gt;&lt;/p-sortIcon&gt;
                                &lt;/th&gt;
                                &lt;th style=&quot;width: 150px&quot; pSortableColumn=&quot;serviceCallSubject&quot;&gt;
                                    {{l('Subject')}}
                                    &lt;p-sortIcon field=&quot;serviceCallSubject&quot;&gt;&lt;/p-sortIcon&gt;
                                &lt;/th&gt;
                                &lt;th style=&quot;width: 150px&quot; pSortableColumn=&quot;serviceCallScheduleSubject&quot;&gt;
                                    {{l('Subject')}}
                                    &lt;p-sortIcon field=&quot;serviceCallScheduleSubject&quot;&gt;&lt;/p-sortIcon&gt;
                                &lt;/th&gt;

                            &lt;/tr&gt;
                        &lt;/ng-template&gt;                           
						&lt;ng-template pTemplate=&quot;body&quot; let-record=&quot;$implicit&quot;&gt;
                            &lt;tr&gt;
                                &lt;td style=&quot;width: 130px&quot;
                                    [hidden]=&quot;!isGrantedAny(&#39;Pages.ServiceCallTasks.Edit&#39;, &#39;Pages.ServiceCallTasks.Delete&#39;)&quot;&gt;
                                    &lt;div class=&quot;btn-group dropdown&quot; normalizePosition&gt;
                                        &lt;button class=&quot;dropdown-toggle btn btn-sm btn-primary&quot;
                                                data-toggle=&quot;dropdown&quot;
                                                aria-haspopup=&quot;true&quot;
                                                aria-expanded=&quot;false&quot;&gt;
                                            &lt;i class=&quot;fa fa-cog&quot;&gt;&lt;/i&gt;&lt;span class=&quot;caret&quot;&gt;&lt;/span&gt; {{l("Actions")}}
                                        &lt;/button&gt;
											&lt;ul class=&quot;dropdown-menu&quot;&gt;
											&lt;li&gt;
												&lt;a 
													(click)=&quot;viewServiceCallTaskModal.show(record)&quot;&gt;{{l('View')}}&lt;/a&gt;
											&lt;/li&gt;
											&lt;li&gt;
												&lt;a *ngIf=&quot;permission.isGranted(&#39;Pages.ServiceCallTasks.Edit&#39;)&quot;
													(click)=&quot;createOrEditServiceCallTaskModal.show(record.serviceCallTask.id)&quot;&gt;{{l('Edit')}}&lt;/a&gt;
											&lt;/li&gt;
											&lt;li&gt;
										        &lt;a *ngIf=&quot;permission.isGranted(&#39;Pages.ServiceCallTasks.Delete&#39;)&quot;
													(click)=&quot;deleteServiceCallTask(record.serviceCallTask)&quot;&gt;{{l('Delete')}}&lt;/a&gt;
											&lt;/li&gt;
                                        &lt;/ul&gt;
                                    &lt;/div&gt;
                                &lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;{{record.serviceCallSubject}}&lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;{{record.serviceCallScheduleSubject}}&lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;{{record.serviceCallTask.task}}&lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;{{record.serviceCallTask.details}}&lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;{{record.serviceCallTask.hoursRequired}}&lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;
                                    &lt;div *ngIf=&quot;record.serviceCallTask.completed&quot; class=&quot;text-center&quot;&gt;&lt;i class=&quot;fa fa-check-circle m--font-success&quot; title=&quot;True&quot;&gt;&lt;/i&gt;&lt;/div&gt;
									&lt;div *ngIf=&quot;!record.serviceCallTask.completed&quot; class=&quot;text-center&quot;&gt;&lt;i class=&quot;fa fa-times-circle&quot; title=&quot;False&quot;&gt;&lt;/i&gt;&lt;/div&gt;
                                &lt;/td&gt;

                            &lt;/tr&gt;
                        &lt;/ng-template&gt;
                    &lt;/p-table&gt;


                    &lt;div class=&quot;primeng-paging-container&quot;&gt;
                        &lt;p-paginator rows=&quot;{{primengTableHelper.defaultRecordsCountPerPage}}&quot;
                                     #paginator
                                     (onPageChange)=&quot;getServiceCallTasks($event)&quot;
                                     [totalRecords]=&quot;primengTableHelper.totalRecordsCount&quot;
                                     [rowsPerPageOptions]=&quot;primengTableHelper.predefinedRecordsCountPerPage&quot;&gt;
                        &lt;/p-paginator&gt;
                        &lt;span class=&quot;total-records-count&quot;&gt;
                            {{l('TotalRecordsCount', primengTableHelper.totalRecordsCount)}}
                        &lt;/span&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;createOrEditServiceCallTaskModal #createOrEditServiceCallTaskModal (modalSave)=&quot;getServiceCallTasks()&quot;&gt;&lt;/createOrEditServiceCallTaskModal&gt;
&lt;viewServiceCallTaskModal #viewServiceCallTaskModal&gt;&lt;/viewServiceCallTaskModal&gt;

</div>

The entity itself is fine by the looks of it and the updating and viewing handles the data correctly. The only weird part is the grid.

Yes, the entity loads correctly.

The bindings in the html side looks fine and i can't really see anything wrong on the componen.ts either.

Here is the component.ts:

import { Component, Injector, ViewEncapsulation, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Http } from '@angular/http'; import { ServiceCallTasksServiceProxy, ServiceCallTaskDto } from '@shared/service-proxies/service-proxies'; import { NotifyService } from '@abp/notify/notify.service'; import { AppComponentBase } from '@shared/common/app-component-base'; import { TokenAuthServiceProxy } from '@shared/service-proxies/service-proxies'; import { CreateOrEditServiceCallTaskModalComponent } from './create-or-edit-serviceCallTask-modal.component'; import { ViewServiceCallTaskModalComponent } from './view-serviceCallTask-modal.component'; import { appModuleAnimation } from '@shared/animations/routerTransition'; import { Table } from 'primeng/components/table/table'; import { Paginator } from 'primeng/components/paginator/paginator'; import { LazyLoadEvent } from 'primeng/components/common/lazyloadevent'; import { FileDownloadService } from '@shared/utils/file-download.service'; import * as moment from 'moment';

@Component({ templateUrl: './serviceCallTasks.component.html', encapsulation: ViewEncapsulation.None, animations: [appModuleAnimation()] }) export class ServiceCallTasksComponent extends AppComponentBase {

@ViewChild('createOrEditServiceCallTaskModal') createOrEditServiceCallTaskModal: CreateOrEditServiceCallTaskModalComponent;
@ViewChild('viewServiceCallTaskModalComponent') viewServiceCallTaskModal: ViewServiceCallTaskModalComponent;
@ViewChild('dataTable') dataTable: Table;
@ViewChild('paginator') paginator: Paginator;

advancedFiltersAreShown = false;
filterText = '';
	taskFilter = '';
	detailsFilter = '';
	maxHoursRequiredFilter : number;
	maxHoursRequiredFilterEmpty : number;
	minHoursRequiredFilter : number;
	minHoursRequiredFilterEmpty : number;
	completedFilter = -1;
	serviceCallSubjectFilter = '';
	serviceCallScheduleSubjectFilter = '';



constructor(
    injector: Injector,
    private _http: Http,
    private _serviceCallTasksServiceProxy: ServiceCallTasksServiceProxy,
    private _notifyService: NotifyService,
    private _tokenAuth: TokenAuthServiceProxy,
    private _activatedRoute: ActivatedRoute,
    private _fileDownloadService: FileDownloadService
) {
    super(injector);
}

getServiceCallTasks(event?: LazyLoadEvent) {
    if (this.primengTableHelper.shouldResetPaging(event)) {
        this.paginator.changePage(0);
        return;
    }

    this.primengTableHelper.showLoadingIndicator();

    this._serviceCallTasksServiceProxy.getAll(
		this.filterText,
		this.taskFilter,
		this.detailsFilter,
		this.maxHoursRequiredFilter == null ? this.maxHoursRequiredFilterEmpty: this.maxHoursRequiredFilter,
		this.minHoursRequiredFilter == null ? this.minHoursRequiredFilterEmpty: this.minHoursRequiredFilter,
		this.completedFilter,
		this.serviceCallSubjectFilter,
		this.serviceCallScheduleSubjectFilter,
        this.primengTableHelper.getSorting(this.dataTable),
        this.primengTableHelper.getSkipCount(this.paginator, event),
        this.primengTableHelper.getMaxResultCount(this.paginator, event)
    ).subscribe(result => {
        this.primengTableHelper.totalRecordsCount = result.totalCount;
        this.primengTableHelper.records = result.items;
        this.primengTableHelper.hideLoadingIndicator();
    });
}

reloadPage(): void {
    this.paginator.changePage(this.paginator.getPage());
}

createServiceCallTask(): void {
    this.createOrEditServiceCallTaskModal.show();
}

deleteServiceCallTask(serviceCallTask: ServiceCallTaskDto): void {
    this.message.confirm(
        '',
        (isConfirmed) => {
            if (isConfirmed) {
                this._serviceCallTasksServiceProxy.delete(serviceCallTask.id)
                    .subscribe(() => {
                        this.reloadPage();
                        this.notify.success(this.l('SuccessfullyDeleted'));
                    });
            }
        }
    );
}

exportToExcel(): void {
    this._serviceCallTasksServiceProxy.getServiceCallTasksToExcel(
	this.filterText,
		this.taskFilter,
		this.detailsFilter,
		this.maxHoursRequiredFilter == null ? this.maxHoursRequiredFilterEmpty: this.maxHoursRequiredFilter,
		this.minHoursRequiredFilter == null ? this.minHoursRequiredFilterEmpty: this.minHoursRequiredFilter,
		this.completedFilter,
		this.serviceCallSubjectFilter,
		this.serviceCallScheduleSubjectFilter,
	)
    .subscribe(result => {
        this._fileDownloadService.downloadTempFile(result);
     });
}

}

Answer

Hi @yekalkan

Thank you, was a misunderstanding on my side (Lack of knowledge relating to swagger).

I ended up moving Lookup/Link DTOs which are used more than once to a shared folder and just removing the newly created ones as suggested.

Love the RAD tool. The linked entities how it is implemented now with the RAD tool is saving me sooooo much time.

Answer

Hi,

Sorry I might be interpreting this wrong but the Lookup Table DTO's are causing the conflicts:

The below only happens once you link an object more than once.

System.InvalidOperationException: Conflicting schemaIds: Identical schemaIds detected for types Abp.Application.Services.Dto.PagedResultDto1[[BMS.Products.Dtos.ProductDepartmentLookupTableDto, BMS.Application.Shared, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null]] and Abp.Application.Services.Dto.PagedResultDto1[BMS.DiscountGroups.Dtos.ProductDepartmentLookupTableDto]. See config settings - "CustomSchemaIds" for a workaround at Swashbuckle.AspNetCore.SwaggerGen.SchemaIdManager.IdFor(Type type) at Swashbuckle.AspNetCore.SwaggerGen.SchemaRegistry.CreateReferenceSchema(Type type, Queue1 referencedTypes) at Swashbuckle.AspNetCore.SwaggerGen.SchemaRegistry.GetOrRegister(Type type) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreateResponse(ApiResponseType apiResponseType, ISchemaRegistry schemaRegistry) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreateOperation(ApiDescription apiDescription, ISchemaRegistry schemaRegistry) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable1 apiDescriptions, ISchemaRegistry schemaRegistry) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes)

Hi,

In normal circumstances, I would be able to but on this specific server, I am unable to remove(untick) it in Roles & Features.

I'll stick with this method in case the client needs to use WebDAV at some stage for something else.

Thank you.

Regards, Gideon Badenhorst

Funny enough, it is not that CORS is the problem. The main culprit, in this case, is WebDAV.

You need to configure the webconfig file to remove webdav module and webdav in order to fix things like posts being handled as puts and stuff like that. The below fixes the issue it seems. As I can't remove WebDAV from IIS, the only way is to remove it this way.

<system.webServer> <ins><modules runAllManagedModulesForAllRequests="true"> <remove name="WebDAVModule" /> </modules></ins> <handlers> <ins><remove name="WebDAV" /></ins> <add name="aspNetCore" path="" verb="" modules="AspNetCoreModule" resourceType="Unspecified" /> </handlers>

HI,

I have the logs on (stdout=true). I also have full access assigned to the deployment folders. However, I have not managed to get them working as of yet. They always give the error that they can't be created, no matter where I deploy them.

Warning: Could not create stdoutLogFile \?\C:\inetpub\BMS_API\logs\stdout_5720_20183832812.log, ErrorCode = -2147024891.

I have seen several posts regarding fixes for this but most of them relate to editing the csproj file as a "workaround". I would rather have the correct way to resolve such a scenario than a quick fix which has been around since Core 1.0.

Is there something else I am missing, I assume someone has had this with the ASP.Net Zero project at some point?

The thing that I don't understand about this whole scenario of CORS. 70% of my functionality is default methods generated with all the basics of the ASP Net Power tools and they work. But Delete and system related updates don't work. I tried updating the Visual settings now and I get CORS error when I save.

Showing 1 to 10 of 32 entries