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

HyperLinkPropertyEditor #971

Closed
CWolffIF opened this issue Jan 11, 2023 · 21 comments
Closed

HyperLinkPropertyEditor #971

CWolffIF opened this issue Jan 11, 2023 · 21 comments
Labels
Milestone

Comments

@CWolffIF
Copy link
Member

Hi Tolis,

I´ve got 2 Problems. Both can be viewed in the detached sample. (VS2022, DevExpress 22.2.3)

  1. if I try to use the HyperlinkPropertyEditor in a DetailView (only in DetailView) I got the error
    Object reference not set to an instance of an object.

    at Xpand.ExpressApp.Win.PropertyEditors.HyperLinkPropertyEditor.CreateControlCore()
    at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
    at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.controlItem_QueryControl(Object sender, QueryControlEventArgs e)
    at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseQueryControl()

  2. If I try to open the Xpand ModelEditor I got the error
    "Multiple DevExpress versions found...."

DXApplication4.zip
Screenshot 2023-01-11 171548

@apobekiaris
Copy link
Member

did you read #970

@apobekiaris
Copy link
Member

I guess you use VS there might be an issue there the plugin is not update long time now will test and update u how it works

@CWolffIF
Copy link
Member Author

Can I work without the plugin?

@apobekiaris
Copy link
Member

:) I liked the question, it really depends if you want you can always find ways to open a Xaf Model. For example the Xaf Standalone ME is what the plugin uses with the convenience of keyboard shortcut and the Model list. However since I guess you working one one solution you could create a command line script to open your models from a fixed path

@CWolffIF
Copy link
Member Author

Open it in VS it always loads down the Version 4.212.9.4. with the error.
Do you have a sample how to open it in command line?

@volokos
Copy link

volokos commented Jan 12, 2023

Hi Tolis,

I´ve got 2 Problems. Both can be viewed in the detached sample. (VS2022, DevExpress 22.2.3)

  1. if I try to use the HyperlinkPropertyEditor in a DetailView (only in DetailView) I got the error
    Object reference not set to an instance of an object.
    at Xpand.ExpressApp.Win.PropertyEditors.HyperLinkPropertyEditor.CreateControlCore()
    at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
    at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.controlItem_QueryControl(Object sender, QueryControlEventArgs e)
    at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseQueryControl()
  2. If I try to open the Xpand ModelEditor I got the error
    "Multiple DevExpress versions found...."

DXApplication4.zip Screenshot 2023-01-11 171548

Yes, i cannot solve the problem with "Multiple DevExpress versions found...." already third day with rider plugin :(

@CWolffIF
Copy link
Member Author

I managed to get the standalone ME.
Try to open my projct, I got the error:
image

But the nuget reference is set and the file (System.Drawing.Common.dll vs 7.0.0.0) is in the debug.
Any Idea?

@apobekiaris
Copy link
Member

my guess is it relates to whom uses .net7 and this is not the ME so is about your project

@apobekiaris
Copy link
Member

I reviewed the case and I working on it, looks like we have a related bug in the source code as well so I need to release Xpand libs first

@CWolffIF
Copy link
Member Author

Ok, good luck

@apobekiaris
Copy link
Member

until I will manage to publish it you can try this one

https://e1.pcloud.link/publink/show?code=XZeq1mZlkmTiINqVb8bDx54KL3p6mDzRldk

@apobekiaris
Copy link
Member

after the model view is open you use the Configure action on the bottom right and you Navigate to Application\ModelEditor and set the UsePrerelase attribute.

rember to clean up folders b4 running it

@CWolffIF
Copy link
Member Author

Ok, it works with a simple project. Thanx.

In my project I get the error with the System.Drawing.Common.dll vs 7.0.0.0.. We use .net6. Any idea?

@apobekiaris
Copy link
Member

sorry I misses your question, anyways what heppens if u add the file manually to the bin?

btw the pluin is now in the VS market place for direct download nothing changed from the posted version

@apobekiaris
Copy link
Member

We use .net6. Any idea?

some of your dependecies then must be targeting .net7 so it needs this version. the story is well know u remove them all one by one to find what to blame and if u need a second opinion feel free to post

@CWolffIF
Copy link
Member Author

Hi,

the HyperlinkPropertyEditor throws an Error in CreateControlCore cause the _hyperlinkEdit.MaskBox in Null.

    protected override object CreateControlCore()
    {
        _hyperlinkEdit = new HyperLinkEdit();
        _hyperlinkEdit.MaskBox.Mask.MaskType = MaskType.RegEx;
        var maskProperties = _hyperlinkEdit.MaskBox.Mask;
        maskProperties.EditMask = UrlEmailMask;
        return _hyperlinkEdit;
    }

@CWolffIF
Copy link
Member Author

OK I found it

System.DirectoryServices.AccountManagement 7.0.0 needs System.Drawing.Common 7.0.0.
Both support .net6 and .net7, but it doesn´t work.

Setting both to
System.DirectoryServices.AccountManagement 6.0.0 needs System.Drawing.Common 6.0.0.
it works. Puh......

@apobekiaris
Copy link
Member

the HyperlinkPropertyEditor throws an Error in CreateControlCore cause the _hyperlinkEdit.MaskBox in Null.

does it work on any new solution? is it a side effect from your part?

@CWolffIF
Copy link
Member Author

Yes, in a new sample
DXApplication4.zip

@apobekiaris
Copy link
Member

eXpand.lab release 22.2.400.0 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.

To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Thanks a lot for your contribution.

@apobekiaris apobekiaris added this to the 21.2.702.0 milestone Feb 2, 2023
@CWolffIF CWolffIF closed this as completed Feb 4, 2023
@apobekiaris
Copy link
Member

The pre-release 4.222.2.0 in the Reactive.XAF lab branch includes commits that relate to this task:

To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Released packages: Xpand.Extensions v.4.222.2
Xpand.Extensions.Blazor v.4.222.2
Xpand.Extensions.Mono.Cecil v.4.222.2
Xpand.Extensions.Office.Cloud v.4.222.2
Xpand.Extensions.Office.Cloud.Google.Blazor v.4.222.2
Xpand.Extensions.Reactive v.4.222.2
Xpand.Extensions.XAF v.4.222.2
Xpand.Extensions.XAF.Xpo v.4.222.2
Xpand.TestsLib v.4.222.2
Xpand.TestsLib.Blazor v.4.222.2
Xpand.TestsLib.Common v.4.222.2
Xpand.TestsLib.EasyTest v.4.222.2
Xpand.VersionConverter v.4.222.2
Xpand.XAF.Core.All v.4.222.2
Xpand.XAF.Modules.AutoCommit v.4.222.2
Xpand.XAF.Modules.Blazor v.4.222.2
Xpand.XAF.Modules.BulkObjectUpdate v.4.222.2
Xpand.XAF.Modules.CloneMemberValue v.4.222.2
Xpand.XAF.Modules.CloneModelView v.4.222.2
Xpand.XAF.Modules.Email v.4.222.2
Xpand.XAF.Modules.GridListEditor v.4.222.2
Xpand.XAF.Modules.HideToolBar v.4.222.2
Xpand.XAF.Modules.JobScheduler.Hangfire v.4.222.2
Xpand.XAF.Modules.JobScheduler.Notification v.4.222.2
Xpand.XAF.Modules.MasterDetail v.4.222.2
Xpand.XAF.Modules.ModelMapper v.4.222.2
Xpand.XAF.Modules.ModelViewInheritance v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google.Calendar v.4.222.2
Xpand.XAF.Modules.Office.Cloud.Google.Tasks v.4.222.2
Xpand.XAF.Modules.Office.DocumentStyleManager v.4.222.2
Xpand.XAF.Modules.OneView v.4.222.2
Xpand.XAF.Modules.PositionInListView v.4.222.2
Xpand.XAF.Modules.ProgressBarViewItem v.4.222.2
Xpand.XAF.Modules.RazorView v.4.222.2
Xpand.XAF.Modules.Reactive v.4.222.2
Xpand.XAF.Modules.Reactive.Logger v.4.222.2
Xpand.XAF.Modules.Reactive.Logger.Client.Win v.4.222.2
Xpand.XAF.Modules.Reactive.Logger.Hub v.4.222.2
Xpand.XAF.Modules.Reactive.Rest v.4.222.2
Xpand.XAF.Modules.RefreshView v.4.222.2
Xpand.XAF.Modules.SequenceGenerator v.4.222.2
Xpand.XAF.Modules.Speech v.4.222.2
Xpand.XAF.Modules.SpellChecker v.4.222.2
Xpand.XAF.Modules.StoreToDisk v.4.222.2
Xpand.XAF.Modules.SuppressConfirmation v.4.222.2
Xpand.XAF.Modules.TenantManager v.4.222.2
Xpand.XAF.Modules.ViewEditMode v.4.222.2
Xpand.XAF.Modules.ViewItemValue v.4.222.2
Xpand.XAF.Modules.ViewWizard v.4.222.2
Xpand.XAF.Modules.Windows v.4.222.2
Xpand.XAF.Web.All v.4.222.2
Xpand.XAF.Win.All v.4.222.2

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 these packages 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.

@apobekiaris apobekiaris removed their assignment Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants