Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The collection with type='Pager' already exists. #564

Closed
isatahiri opened this issue Oct 3, 2019 · 47 comments
Closed

The collection with type='Pager' already exists. #564

isatahiri opened this issue Oct 3, 2019 · 47 comments

Comments

@isatahiri
Copy link

Hello,

I migrated from the 19.1.602.1 to the 19.1.602.13.
Since that when i run the app from VS 2019 i have the following error in ASP :
image

And the page editors are frozen.
Does that talk to you ?

BR
ISA

@isatahiri
Copy link
Author

the detail :
Unchecked runtime.lastError: The message port closed before a response was received.
VM455:6 Uncaught ReferenceError: ASPxClientRoundPanel is not defined
at eval (eval at _aspxRunStartupScriptsCore (DXR.axd?r=1_11,1_63,1_12,1_13,1_14,1_15,1_17,1_41,24_364,24_365,24_366,24_367,24_359,24_362,24_363,24_360,24_361,24_368,1_23,1_8,1_49,1_24,1_33,1_35,1_46,1_32,1_48,1_9-6g_tj:6666), :6:20)
at _aspxRunStartupScriptsCore (DXR.axd?r=1_11,1_63,1_12,1_13,1_14,1_15,1_17,1_41,24_364,24_365,24_366,24_367,24_359,24_362,24_363,24_360,24_361,24_368,1_23,1_8,1_49,1_24,1_33,1_35,1_46,1_32,1_48,1_9-6g_tj:6666)
at _aspxRunStartupScripts (DXR.axd?r=1_11,1_63,1_12,1_13,1_14,1_15,1_17,1_41,24_364,24_365,24_366,24_367,24_359,24_362,24_363,24_360,24_361,24_368,1_23,1_8,1_49,1_24,1_33,1_35,1_46,1_32,1_48,1_9-6g_tj:6639)
at Object.ASPx.FinalizeScriptProcessing (DXR.axd?r=1_11,1_63,1_12,1_13,1_14,1_15,1_17,1_41,24_364,24_365,24_366,24_367,24_359,24_362,24_363,24_360,24_361,24_368,1_23,1_8,1_49,1_24,1_33,1_35,1_46,1_32,1_48,1_9-6g_tj:6633)
at Object.ASPx.OnScriptLoadCallback (DXR.axd?r=1_11,1_63,1_12,1_13,1_14,1_15,1_17,1_41,24_364,24_365,24_366,24_367,24_359,24_362,24_363,24_360,24_361,24_368,1_23,1_8,1_49,1_24,1_33,1_35,1_46,1_32,1_48,1_9-6g_tj:6710)
at HTMLScriptElement.eval (eval at _aspxProcessScripts (DXR.axd?r=1_11,1_63,1_12,1_13,1_14,1_15,1_17,1_41,24_364,24_365,24_366,24_367,24_359,24_362,24_363,24_360,24_361,24_368,1_23,1_8,1_49,1_24,1_33,1_35,1_46,1_32,1_48,1_9-6g_tj:6596), :3:6)

@isatahiri
Copy link
Author

I opened a ticket at DX support too : T820548 because it looks a DX issue. Please let me know if it is in your side.

@apobekiaris
Copy link
Member

Without repro sample unfortunately I cannot

@isatahiri
Copy link
Author

Well I delete all generated dll's run again i do not have the error.

@apobekiaris
Copy link
Member

whats a generated dll?

@isatahiri
Copy link
Author

I will investigate and let you know

@isatahiri
Copy link
Author

in my project i run a batch file which deletes all the generated files. Often i used to have something clean and if needed make it lighter for sharing the project :
c:
cd "C:\Users\isata\Documents\PME Projects\PME_Affaire\PME_Affaire.Module"
rmdir Bin /s /q
mkdir Bin
rmdir obj /s /q
mkdir obj

cd "C:\Users\isata\Documents\PME Projects\PME_Affaire\PME_Affaire.Module.Web"
rmdir Bin /s /q
mkdir Bin
rmdir obj /s /q
mkdir obj

cd "C:\Users\isata\Documents\PME Projects\PME_Affaire\PME_Affaire.Module.Win"
rmdir Bin /s /q
mkdir Bin
rmdir obj /s /q
mkdir obj

cd "C:\Users\isata\Documents\PME Projects\PME_Affaire\PME_Affaire.Web"
rmdir Bin /s /q
mkdir Bin
rmdir obj /s /q
mkdir obj

cd "C:\Users\isata\Documents\PME Projects\PME_Affaire\PME_Affaire.Win"
rmdir Bin /s /q
mkdir Bin
rmdir obj /s /q
mkdir obj

cd "C:\Users\isata\Documents\PME Projects\PME_Affaire\SnapModule"
rmdir Bin /s /q
mkdir Bin
rmdir obj /s /q
mkdir obj

pause

@isatahiri
Copy link
Author

After running this it works

@apobekiaris
Copy link
Member

so it is now fixed or what?

@isatahiri
Copy link
Author

Well yes but i always have delete generated files in VS. That's new. But at least it works

@isatahiri
Copy link
Author

What does the code : -915408701 means ?

ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenDetailViewCreated(166): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.DetailViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenDetailViewCreated(166): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.DetailViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
ReactiveModule Information: -915408701 : XafApplicationRXExtensions.WhenListViewCreated(183): OnNext((PME_Affaire.Web.PME_AffaireAspNetApplication, DevExpress.ExpressApp.ListViewCreatedEventArgs))
04.10.19 00:14:34.881 cswlmy4rllhbjwf2p32sqa11 Action 'New' done

@apobekiaris
Copy link
Member

provide more info how this log is generated

@isatahiri
Copy link
Author

I do not have more. I can send you the project...
image

@isatahiri
Copy link
Author

Actually yes it was at the very beginning.
My default.aspx starts with :
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Default" EnableViewState="false" ValidateRequest="false" CodeBehind="Default.aspx.cs" Async="true" %>

Trace.txt
. Again a asynchronous issue :

@isatahiri
Copy link
Author

I think i saw in one ticket that i should remove the system.reactive and use only Xpand.XAF.Modules.Reactive. Right ?

@apobekiaris
Copy link
Member

the number is unsuable info just a hashcode
https://github.com/eXpandFramework/DevExpress.XAF/blob/b8536326589269000a9d5fd98ca907e3265bc134/src/Modules/Reactive/Extensions/TraceExtensions.cs#L140

the async=true is not a requirement anymore

Type: InvalidOperationException
Message: Impossible de démarrer une opération asynchrone pour le moment. Les opérations asynchrones peuvent être démarrées uniquement depuis un gestionnaire ou un module asynchrone, ou lors de certains événements du cycle de vie de la page. Si cette exception a été levée durant l'exécution d'une page, vérifiez que celle-ci est marquée de la façon suivante : <%@ Page Async="true" %>. Cette exception peut aussi indiquer une tentative d'appeler une méthode « async void », qui n'est pas généralement pris en charge au sein de traitement d'une demande ASP.NET. À la place, la méthode asynchrone doit retourner une tâche, et l'appelant doit l'attendre.
Data: 0 entries
Stack trace:

this is a missleading message without debugging cannot say much

@apobekiaris
Copy link
Member

System.Reactive throws like IEnumerable so it is not possible to tell from the stack what happen before. I have deveoped a logger for this purpose

https://github.com/eXpandFramework/DevExpress.XAF/tree/master/src/Modules/Reactive.Logger

@isatahiri
Copy link
Author

I just sent you a link by email to my project.

@isatahiri
Copy link
Author

I will use the Reactive.Logger asap. Sorry i did not see it.

@isatahiri
Copy link
Author

Please let me know if you can download it so i remove the link.

@apobekiaris
Copy link
Member

got it

@apobekiaris
Copy link
Member

I can repro the problem however I did not found a solution as I did not debug further. What I did is removed ALL 3rd party refrences and code and the problem continue. If I was u I will continue removing stuff until I find the cause of the error. If you need my remove all copy of your solution let me know

@apobekiaris apobekiaris removed their assignment Oct 6, 2019
@apobekiaris
Copy link
Member

note that the log is clear og eny exceptions

@apobekiaris
Copy link
Member

i also recommend u switch to nuget packagesreference format cause I found many dependecies that are not used and nuget can successfully remove this support weight

@isatahiri
Copy link
Author

isatahiri commented Oct 6, 2019

If I was u I will continue removing stuff until I find the cause of the error.

What do you mean ? Do you suspect that the issue is not coming from the Framework ?
You can keep the last solution and remove old copies as it is moving fast.

note that the log is clear og eny exceptions

I'm not sure what it means

Using nuget packagereference instead

Last time i tried i had many version depedencies issue so i gave up. Maybe i should try again

@apobekiaris
Copy link
Member

I will try to be more clear. I remove all Xpand references and also all other references except Devexpress and then run the web app and got the same exception, so I assume it is something else. I also checked the log when references removed and no exception found there

Continuing to remove parts of your solution will most probably get to the root of the problem.

@apobekiaris
Copy link
Member

and as this solution is not so large I would start the opposite way, that is from a blank empty solution where I would paste the BO objects (commenting a few attributes or even better rewriting them dynamically so I could repeat this operation in the future if necessary). Then paste the few controllers and run without 3rd part libs and finally start to register the 3rd part modules. This way (having a clear/decoupled system you will be able to track down any problem fast at any time without even understand the root u will be able to blame something. It is a common way to resolve problems. Automatically generated coded does not help as it is time consuming to remove it, if u see Xpand does not use designers nowhere, it registers controllers. modules etc in code so by commenting them out I am able to track the problem if I do not understand it.

@isatahiri
Copy link
Author

I did remove all references, empty the unused Nuget Packages one by one. And the error was still there. So I had a solution consuming only devexpress assemblies and the error was still there.
Then by curiosity i tried in a seconf browser and it worked. So i deleted cash from Chrome and now it works.

At the end i do not know that causes this. I will add Expand and see. By the way, when do you expect the Excel Module as standalone ?

@apobekiaris
Copy link
Member

tried some time ago but there are many dependecies to system which need to carefully packaged out so I cannot estimate

@isatahiri
Copy link
Author

OK thanks for the info Tolis !

@isatahiri
Copy link
Author

isatahiri commented Oct 9, 2019

OK, i could not find the source of the error but I really suspect that all dependencies as you said were causing this.

Now i would like to use ExcelImporter in one of my project without installing Expand via PowerShell. From nuget would that be enough ?
image

@apobekiaris
Copy link
Member

of course

@isatahiri isatahiri reopened this Oct 9, 2019
@isatahiri
Copy link
Author

so i add then, manually add the module in each module classes. Nothing else for Excel Importer is needed as the nuget will bring its own dependencies ? Sorry for dummy questions ! Better ask than do mistakes :-)

@apobekiaris
Copy link
Member

yes feel free to ask, nuget have all the dependencies u need, using the packagerefrence format all dependecies for the excelimporter will be handled as one unless u excplicity install packages

@isatahiri
Copy link
Author

Great ! Thanks Tolis !

@isatahiri
Copy link
Author

isatahiri commented Oct 9, 2019

I tried but now it take the new version. Is it too early for the 604, shoud i wait a bit ?
image

@isatahiri
Copy link
Author

stack :
Unable to resolve dependency 'akarnokd.reactive_extensions'. Source(s) used: 'nuget.org', 'DevExpress 19.1 Local', 'Microsoft Visual Studio Offline Packages'.

@apobekiaris
Copy link
Member

no 604 is online does the same problem exists on an empty xaf solution

@isatahiri
Copy link
Author

same error on new empty xaf solution

@isatahiri
Copy link
Author

image

@apobekiaris
Copy link
Member

i ll have a look in a bit and let u know
thats a prelease depenency I thought nuget allowed such packages but maybe I am worng

@expand
Copy link
Member

expand commented Oct 9, 2019

The DevExpress.XAF repository includes commits that relate to this task:

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.

If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.

Thanks a lot for your contribution.

@expand expand added this to the 19.1.603.0 milestone Oct 9, 2019
@isatahiri
Copy link
Author

just for info, it seems that different version of MonoCecil are used in excelimporter. Nugets proposes to consolidate :
image

@isatahiri
Copy link
Author

After installing, on the first run, i had the same issue as last time. But after clearing the cash on chrome. it worked.

On more think : the Expand.Persistent.baseimpl is set to copy local = true in my module.web but it is not being copyied in the release folder the the web module. I have to copy it manually.

Beside this its working fine again :-)

@apobekiaris
Copy link
Member

On more think : the Expand.Persistent.baseimpl is set to copy local = true

this is enviromental issue on your side u can however add a post-build event to copy on each build

@expand
Copy link
Member

expand commented Oct 10, 2019

eXpand.lab release 19.1.604.2 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

Thanks a lot for your contribution.

apobekiaris added a commit that referenced this issue Oct 11, 2019
@apobekiaris apobekiaris removed their assignment Oct 12, 2019
@apobekiaris
Copy link
Member

see #661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
eXpandFramework
  
Awaiting triage
Development

No branches or pull requests

3 participants