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

eXpand ExcelImport Module: View disappearance when uploading an excel file #384

Closed
okanmazman opened this issue Apr 26, 2019 · 34 comments
Closed

Comments

@okanmazman
Copy link

Hi,
I am using ExcelImport module of eXpand framework (18.1.5.5).When I select a excel file to upload ,the related view refreshes and disappeares appearently on postback.(There are 2 ss enclosed)
I could not get any error or any warnings.
What could be the problem here? Actually I could not managed to debug this problem also.
Could It be because of a customization or a spesific configuration?
Regards
Okan
disappeared-step-1
disappeared-step-2

Additional context
Add any other context or screenshots about the feature request here.

@okanmazman okanmazman changed the title eXpand ExcelImport Module: View disappearance when uploading a excel file eXpand ExcelImport Module: View disappearance when uploading an excel file Apr 26, 2019
@apobekiaris
Copy link
Member

please try this suggestion and let me know if it worked

#377 (comment)

@apobekiaris apobekiaris removed their assignment Apr 26, 2019
@expand expand closed this as completed Jun 26, 2019
@expand
Copy link
Member

expand commented Jun 26, 2019

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.

@okanmazman
Copy link
Author

okanmazman commented Jul 2, 2019

I am sorry that I have just forgotten to update this thread.I just tried #377 (comment)
but there is no effect on it.I have used exe installer to set up eXpand framework.Should I try from nuget installer?I am using DevExpress v18.1.Which is the last version of eXpand should I install for this version of DevExpress?

@apobekiaris
Copy link
Member

to resolve the issue let's try to find out if it works with the latest 18.2 version. I do not imply u should switch your production to 18.2 just install use projectconverter in your project and update xpand to latest. Do u get the same results?

Or if you can post repro instruction I could for sure answer better. The problem there is probably an error on the import thread, I am not sure if its in the log, it should be can u check. Can u also check a simple BO import?

@apobekiaris apobekiaris reopened this Jul 2, 2019
@apobekiaris
Copy link
Member

maybe @isatahiri has something to add here?

@isatahiri
Copy link

How about Winform client ? Do you have the same behaviour ?

@okanmazman
Copy link
Author

No.Winforms works fine. I am now trying to uninstall Xpand framework and reinstall the 18.2 version.(BTW The powershell installer just download and installed the latest version even if I specify the version I desire.)

@isatahiri
Copy link

isatahiri commented Jul 2, 2019

Make sure you take away the # before the version parameter :
image
If this does not work then it is a bug.

@okanmazman
Copy link
Author

Thanks for reminding it . :) Now I installed Xpand 18.2.704 but cannot reach toolbox item from Xpand. Also I could not find any ToolboxCreator.exe within Xpand.DLL file. I think I need to learn a descent way to add Xpand Framework and its Excel Importer to my Xaf solution. I guess I am doing something wrong :/

@apobekiaris
Copy link
Member

there is no ToolBoaxCreator anymore, toolbox componenet registration is handled from Xpand.VSIX.

I think I need to learn a descent way to add

fastest way to avoid VS design time issue is in the ctor of your agnostic, win modules

this.RequiredModuleTypes.Add(typeof(Xpand.ExpressApp.ExcelImporter.ExcelImporterModule));
this.RequiredModuleTypes.Add(typeof(Xpand.ExpressApp.ExcelImporter.Win.ExcelImporterWinModule));

then compile and let the compiler tell u what reference is miisng if any.

@apobekiaris
Copy link
Member

ssame for the web i miised

@okanmazman
Copy link
Author

okanmazman commented Jul 3, 2019

to resolve the issue let's try to find out if it works with the latest 18.2 version. I do not imply u should switch your production to 18.2 just install use projectconverter in your project and update xpand to latest. Do u get the same results?

Or if you can post repro instruction I could for sure answer better. The problem there is probably an error on the import thread, I am not sure if its in the log, it should be can u check. Can u also check a simple BO import?

Where can I check the log? Is it a standalone file within the project?
Do you want me to try BO import via IO module of Xpand?Is Xpand.Express.App.ExcelImporter dependent to IO module?

I have just installed the 18.2.704.0 version but gave conflict with devexpress v18.1.5 so I gave a chance to v18.1.5.4 of Xpand insted of v18.1.5.5 . After that the issue is still insisting.

ps: I used .exe file for installing xpand and added .dll references to the projects by my hand so that There is no xpand menu in VS menu bar right now

@apobekiaris
Copy link
Member

apobekiaris commented Jul 3, 2019

can u share the project u use for this? along with the xls data and detailed repro instructions? I can try to import with the latest version for u so we can tell whats the problem or if it has been resolved.

Where can I check the log?

this is the expressappframework.log file in the root of your site

I have just installed the 18.2.704.0 version but gave conflict with devexpress v18.1.5

xpand 18.2.7x works only with XAF 18.2.7

Do you want me to try BO import via IO module of Xpand?Is Xpand.Express.App.ExcelImporter dependent to IO module?

this a different module no relation

ps: I used .exe file for installing xpand and added .dll references to the projects by my hand so that There is no xpand menu in VS menu bar right now

you do not need VSIX feature for the module to work

@okanmazman
Copy link
Author

I am thankful for your attention and help. I am about to try one more thing.We just updated our prod repository to the lastest version of DevExpress. I will try with the latest version of Xpand and agnostic approach . I will let you know if it resolves . Second step will be trying to share the project.
Thank you again

@apobekiaris
Copy link
Member

i can sure help u better on a sample over the latest, the module is functional at least other users have in prod

@okanmazman
Copy link
Author

okanmazman commented Jul 9, 2019

Latest update from me:

  1. I have just installed the latest version of eXpandExcelImporter and eXpandExcelImporterWeb from nuget manager.

  2. I have added the modules from toolbox to Module.cs of ProjectName.Module (Not ProjectName.Module.Web or ProjectName.Module.Win ). I can see the excelimporter module in ProjectName.Module.Web's WebApplication.cs designer.

  3. I have achieved to see Excel Import menu in my default listview section.

  4. But again I am getting the error attached when trying to upload a .xls file

Is there any problem in my install and add procedure of the eXpand?
eXpressAppFramework.log

@apobekiaris
Copy link
Member

nope the problem is not with your installation, however the log does not provide much help. Can you post a solution where the problem occurs? If you cannot post in public you can find my email in my profile

@okanmazman
Copy link
Author

okanmazman commented Jul 10, 2019

Actually It is kinda impossible me to send the project or a part of the project independently.It is totally ~1.5GB after deleting the builded dlls. However I decided to create a fresh project and repeated all the same installation procedures on it .At this point there is an interesting error .You can see attached ss.There is no upload button when heading to detailview.You can also find the project below.
image

project link: https://we.tl/t-5ATPeDF5H5

@okanmazman okanmazman reopened this Jul 10, 2019
@apobekiaris apobekiaris self-assigned this Jul 10, 2019
@apobekiaris
Copy link
Member

have't test your project yet but looks like u missed a few modules, make ExcelImporterWeb and FileAttachments modules agnostic and web also registered and let me know our status

@apobekiaris
Copy link
Member

in fact by looking at the code the ExcelImporterWebModule registers the DevExpress.ExpressApp.FileAttachments.Web.FileAttachmentsAspNetModule so my guess now is that you missed to register ExcelImporterWebModule

@okanmazman
Copy link
Author

_Uncaught TypeError: ASPx.GetGlobalEvents is not a function
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6630), :2:16)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6630)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6606)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6600)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6674)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6563), :3:6)
This is the error I am not taking after registerin ExcelImporterWebModule via WebApplication.cs

@okanmazman
Copy link
Author

_Uncaught TypeError: ASPx.GetGlobalEvents is not a function
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6630), :2:16)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6630)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6606)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6600)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6674)
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_179,1_180,1_19,1_209,1_220,1_221,1_207,1_223,1_232,1_234,1_235,1_226,1_230,1_233,1_236,1_21,1_22,1_186,1_188,1_190,1_182,1_189,1_178,1_34,1_43,1_32,1_48,1_9-ldZ3j:6563), :3:6)
This is the error I am not taking after registerin ExcelImporterWebModule via WebApplication.cs

I have solved this problem. Now I have the exact same problem which I shared with you by a logfile above. The same message (An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@ Page Async="true" %>. This exception may also indicate an attempt to call an "async void" method, which is generally unsupported within ASP.NET request processing. Instead, the asynchronous method should return a Task, and the caller should await it.) is stated in this log.

@apobekiaris
Copy link
Member

is it reproduced in the attached solution?

@okanmazman
Copy link
Author

okanmazman commented Jul 12, 2019

This is the last version of the solution which the error reproduced within:
https://we.tl/t-oS2CUuOY9K

@apobekiaris
Copy link
Member

I have reproduce the problem but due to works I cannot prioritize a fix. I will update you once is fixed.

@okanmazman
Copy link
Author

Thank you very much for your attention

@okanmazman
Copy link
Author

Are there any updates? :)

@apobekiaris
Copy link
Member

not yet i still assigned to the case

@expand
Copy link
Member

expand commented Aug 4, 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.403.0 milestone Aug 4, 2019
@expand
Copy link
Member

expand commented Aug 4, 2019

eXpand.lab release 19.1.402.15 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 apobekiaris removed their assignment Aug 4, 2019
apobekiaris added a commit that referenced this issue Aug 4, 2019
…n asynchronous operation cannot be started at this time #394 #384
@okanmazman
Copy link
Author

Hi,
Thanks for your effort and attention .I appreciate your will to solve this issue.
I am now closing this thread but It seems I will have to open another one separately in the future about installing nuget packages of yours.
Best Regards

@apobekiaris
Copy link
Member

feel free to post

@okanmazman
Copy link
Author

Thanks it worked after all update process.

@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
None yet
Development

No branches or pull requests

4 participants