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

Model Editor Error #1051

Open
DannyRawlings opened this issue Mar 22, 2024 · 12 comments
Open

Model Editor Error #1051

DannyRawlings opened this issue Mar 22, 2024 · 12 comments
Labels

Comments

@DannyRawlings
Copy link

Hi ya,

I have been unable to open the model editor since rebuilding my Windows OS

I have found this error in the Model Editor log file under the path "AppData\Local\Xpand\Xpand.XAF.ModelEditor.Win\4.232.2.0"

**Xpand.XAF.ModelEditor.Win Error: 0 : 22.03.24 15:31:37.175 ================================================================================
The error occurred:

Type:       InvalidProjectFileException
Message:    The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.**

Is there anything you can recommend to resolve this?

Cheers

Dan

@apobekiaris
Copy link
Member

given that u have 6,7,8 sdk installed and at least a system restart

the only thing I find it strange is the path mine is on

AppData\Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net8.0\4.232.2.0\

@DannyRawlings
Copy link
Author

I will try and reinstall it as my Roaming folder path looks different to yours

image

@DannyRawlings
Copy link
Author

Still no luck after a reinstall - The version being installed via Visual Studio is older than the release on GitHub. I have also tried to install via the VSIX file but that fails

image

image

@DannyRawlings
Copy link
Author

Update - I have now tried a different user on my machine and the error is the same. I have also reinstall both .net 7 & 8 sdks

@DannyRawlings
Copy link
Author

So - When I first run the editor I see it pop up, the 'Parsing Projects' appears followed by nothing on my screen.

This is the full error I see in the log

Type: InvalidProjectFileException
Message: The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\Users\i007106\source\repos\DXApplication2\DXApplication2.Module\DXApplication2.Module.csproj
Data: 0 entries
Stack trace:

at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate()
at Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, String toolsVersion) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName) at Xpand.XAF.ModelEditor.Module.Win.MSBuildExtensions.<>c__DisplayClass1_0.<Projects>b__1(ProjectInSolution projectInSolution) in C:\Work\Reactive.XAF\tools\Xpand.XAF.ModelEditor\IDE\ModelEditor.Win\Xpand.XAF.ModelEditor.Module.Win\MSBuildExtensions.cs:line 23 at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Reactive.Linq.ObservableImpl.SelectMany2.EnumerableSelector._.OnNext(TSource value)
InnerException is null

@DannyRawlings
Copy link
Author

ok, I have finally figured out how to get it to work. I download the Model zip files and extracted it to the 'Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net7.0\4.232.4.0' after that it seems to be happy. The issue was that it was not creating the WinDesktop folder

@apobekiaris
Copy link
Member

C:\Users\i007106\source\repos\DXApplication2\DXApplication2.Module\DXApplication2.Module.csproj

looks like u testing it with a distributable sample can u share it?

@DannyRawlings
Copy link
Author

That was just a sample project I created using the Wizard - I wanted a project that had nothing in it to make sure that my project wasn't causing the issue

@apobekiaris
Copy link
Member

if u still have it post it here please

@DannyRawlings
Copy link
Author

No probs - see attached
DXApplication2.zip

@expand
Copy link
Member

expand commented Apr 12, 2024

i have pushed a new version for both IDE and tested your solution while first clean the Roaming ME folder and worked fine.

Note, that you should have a folder with the solution targetframework

for me is

C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win\WinDesktop\net7.0\4.232.4.0\

@expand
Copy link
Member

expand commented Apr 12, 2024

the files are downloaded in the C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win

previosuly i mentioned that AppData\Local\Xpand\Xpand.XAF.ModelEditor.Win\4.232.2.0 looks different, my bad that is also correct is the location of the log. The ME is in C:\Users\Tolis\AppData\Roaming\Xpand.XAF.ModelEditor.Win

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