Error migrating from GeneXus 9 to GeneXus Evo 2 U5 - migration

I'm migrating a KB from GeneXus 9 to GeneXus Evo 2 U5. I'm using .Net and SQL Server, and followed the steps that are mentioned in GXTechnical but I have the following error:
========== DeveloperMenu Compilation started ==========
gxexec "C:\Modelos GX\Postulantes\DATAPROT\bldDevelopermenu.cs" -r:GxBaseBuilder.dll -arg:csc="C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" -arg:mdlpath="C:\Modelos GX\Postulantes\DATAPROT"
Building bin\messages.spa.dll
Read in 570 resources from 'messages.spa.txt'
Writing resource file... Done.
Compilador de Microsoft (R) Visual C# 2008, versi¢n 3.5.30729.5420 para Microsoft (R) .NET Framework, versi¢n 3.5
(C) Microsoft Corporation. Reservados todos los derechos.
Error:Build error for target bin\GeneXus.Programs.Common.dll: .\GxObjectCollection.cs does not exist.
DeveloperMenu Compilation Failed
========== Assemblies Compilation started ==========
gxexec "C:\Modelos GX\Postulantes\DATAPROT\bldAssemblies.cs" -r:GxBaseBuilder.dll -arg:csc="C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe" /noconfig -arg:mdlpath="C:\Modelos GX\Postulantes\DATAPROT"
Error:Build error for target bin\GeneXus.Programs.Common.dll: .\GxObjectCollection.cs does not exist.
Assemblies Compilation Failed
Rebuild All Failed
What should I do to solve this problem?

Try these steps:
In GeneXus, go to Tools -> Explore Knowledgebase Directory
Delete all *.ari, *.0?? files
In GeneXus, go to Tools -> Explore Target Environment Directory
Delete that folder
In GeneXus, go to Build -> Rebuild All
If you keep having the same error, look at the entire output; there may be other errors before that one. If not, contact the GeneXus support team. If yes, search in google or search.genexus.com for solutions of that new errors.

Related

Visual Studio Online test runner can't load SpecFlow dll

I've added SpecFlow using Nuget and have a single spec (so it is a simple project). I've created a build in VS online 2015 using the web build editor.
Maybe it's a Nuget new build system issue? I'm not sure if it just a SpecFlow thing and haven't gotten a chance try straight MS unit tests yet.
An exception occurred while invoking executor
'executor://mstestadapter/v1': Could not load file or assembly
'TechTalk.SpecFlow, Version=1.9.0.77, Culture=neutral,
PublicKeyToken=0778194805d6db41' or one of its dependencies. The
system cannot find the file specified.
Here's a larger stack trace:
1. 2015-08-03T21:26:27.6325511Z Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\tasks\VSTest\1.0.16\VSTest.ps1
2. 2015-08-03T21:26:28.4231183Z ##[debug]Calling Invoke-VSTest for all test assemblies
3. 2015-08-03T21:26:28.4481177Z Working folder: C:\a\14076a40
4. 2015-08-03T21:26:28.4481177Z Executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe "C:\a\14076a40\SpecByExample\SpecByExample.Specs\bin\Debug\SpecByExample.Specs.dll" "C:\a\14076a40\SpecByExample\SpecByExample.Specs\bin\Debug\SpecByExample.Specs.dll.config" "C:\a\14076a40\SpecByExample\SpecByExample.Specs\obj\Debug\SpecByExample.Specs.dll" /logger:trx
5. 2015-08-03T21:26:29.4654019Z Microsoft (R) Test Execution Command Line Tool Version 14.0.23107.0
6. 2015-08-03T21:26:29.4664025Z Copyright (c) Microsoft Corporation. All rights reserved.
7. 2015-08-03T21:26:29.4664025Z Starting test execution, please wait...
8. 2015-08-03T21:26:29.7564024Z Warning: Unable to load types from the test source 'C:\a\14076a40\SpecByExample\SpecByExample.Specs\obj\Debug\SpecByExample.Specs.dll'. Some or all of the tests in this source may not be discovered. If you are running unit tests for Windows Store apps and referencing custom WinMD type then please visit http://go.microsoft.com/fwlink/?LinkId=238340 for more info. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'SpecResults, Version=0.1.0.7, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
9. 2015-08-03T21:26:29.7574029Z .
10. 2015-08-03T21:26:40.6922424Z Passed TheUserVisitsTheWebsite
11. 2015-08-03T21:26:41.3214684Z ##[error]Error: An exception occurred while invoking executor 'executor://mstestadapter/v1': Could not load file or assembly 'TechTalk.SpecFlow, Version=1.9.0.77, Culture=neutral, PublicKeyToken=0778194805d6db41' or one of its dependencies. The system cannot find the file specified.
12. 2015-08-03T21:26:41.3224680Z ##[error]
13. 2015-08-03T21:26:41.4936886Z Results File: C:\a\14076a40\TestResults\buildguest_TASKAGENT-0007 2015-08-03 21_26_40.trx
14. 2015-08-03T21:26:41.4956876Z Total tests: 1. Passed: 1. Failed: 0. Skipped: 0.
15. 2015-08-03T21:26:41.4966881Z ##[error]Test Run Failed.
16. 2015-08-03T21:26:41.4966881Z Test execution time: 11.8787 Seconds
17. 2015-08-03T21:26:41.7581094Z ##[error]VSTest Test Run failed with exit code: 1
18. 2015-08-03T21:26:41.7741099Z Publishing Test Results...
2015-08-03T21:26:43.0372165Z Test results remaining: 1
UPDATE: I disabled the SpecFlow test and added the simplest AboutController test possible (from file new project MVC in Visual Studio). I still get a 'could not load assembly problem. SpecByExample.Web is my MVC project in my solution.
2015-08-07T16:16:56.7251975Z ##[error]Error Message:
2015-08-07T16:16:56.7261978Z ##[error] Test method
SpecByExample.Web.Tests.Controllers.HomeControllerTests.AboutTest
threw exception: 2015-08-07T16:16:56.7261978Z
[error]System.IO.FileNotFoundException: Could not load file or assembly 'SpecByExample.Web, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot
find the file specified.WRN: Assembly binding logging is turned OFF.
2015-08-07T16:16:56.7271982Z ##[error]To enable assembly bind failure
logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
2015-08-07T16:16:56.7271982Z ##[error]Note: There is some performance
penalty associated with assembly bind failure logging.
2015-08-07T16:16:56.7281979Z ##[error]To turn this feature off, remove
the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
2015-08-07T16:16:56.7281979Z ##[error] 2015-08-07T16:16:56.7291971Z
[error]Stack Trace: 2015-08-07T16:16:56.7291971Z ##[error] at SpecByExample.Web.Tests.Controllers.HomeControllerTests.AboutTest()
2015-08-07T16:16:56.7831986Z Results File:
C:\a\14076a40\TestResults\buildguest_TASKAGENT-0007 2015-08-07
16_16_56.trx 2015-08-07T16:16:56.7861977Z Attachments:
2015-08-07T16:16:56.7861977Z ##[error]Test Run Failed.
Here's a screenshot of my build definition:
In Run unit test step. click advance and give path to your packages folder. (if you are using nuget it will download all dependencies there) give it a try and let me know how it goes.

Cannot find KRE package kre-clr-win-x86.1.0.0-beta3, Visual Studio 2015 CTP 6

I installed Visual Studio 2015 CTP 6, I create a ASP.NET MVC 6 project and i receive following error at build:
1>------ Build started: Project: Test, Configuration: Debug Any CPU ------
1> Cannot find KRE package kre-clr-win-x86.1.0.0-beta3 in the folder: C:\Users\cornel.adavidoaiei\.k\runtimes
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AspNet\Microsoft.Web.AspNet.targets(111,5): error : The ProjectK Runtime package needs to be installed. See output window for more details.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
I am looking in "C:\Users\cornel.adavidoaiei.k\runtimes\kre-clr-win-x86.1.0.0-beta3" and it isn't any bin here but i have bin in "C:\Users\cornel.adavidoaiei.k\runtimes\kre-clr-win-x64.1.0.0-beta3", why doesn't use x64 version which is installed and try to use x86 version of kre which is missing, any idea how could to solve this issue ?

Moving solutions from 32bit XP to 64bit Win7 --> compile error

I developed some solutions (C#, VB.Net) with VS2008/VS2010 on a XP-computer (32bit). The solutions uses .NET Framework 2.0 and 3.5 and references to 32bit Com-objects (dll, exe). The solutions are compiled with build-setting release+x86. This worked fine.
Now I moved the solutions to a new computer with 64bit Windows7 and VS2010 Premium. Now I'm getting the following error when building the solutions.
This is the complete error message:
------ Rebuild All started: Project: IXDokService, Configuration: Release x86 ------
TlbImp : error TI0000: The input file 'C:\Program Files (x86)\DSA\JetOffice Workflow\bin32\wrkflw32.exe' is not a valid type library.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1558,9): warning MSB3283: Cannot find wrapper assembly for type library "JetOfficeWorkflow".
------ Starting pre-build validation for project 'IXDokServiceWebSetup' ------
ERROR: An error occurred while validating. HRESULT = '80004005'
------ Pre-build validation for project 'IXDokServiceWebSetup' completed ------
------ Rebuild All started: Project: IXDokServiceWebSetup, Configuration: Release ------
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========
wrkflw32.exe is a 32bit-exe (COM). When I'm changing the .NET Framework Version to 4 then the building process of the solution runs successfully.
But I don't want to change the .NET Framework version. Has someone an idea for me?

Visual Studio 2010 Crash on project/form load

First i want to apologize for my english :S.
Hi i just got visual studio pro 2 days ago and every time i create a project, close VS 2010 and when i come back to work on my project and i click on my Form.vb i got every time : Visual Studio has stopped working.Then i tried run as administrator it doesn't work. What i don't understand it's when i click on show code the form load but the moment i click on it ,it just crashing and it's make me wanna drop laptop cascade...I've look on forum and post here but i haven't saw what i was searching.
Here the error that VS show me :(Those files doesn't exist i search)
Files that help describe the problem:
C:\Users\Usager\AppData\Local\Temp\WER152.tmp.WERInternalMetadata.xml
C:\Users\Usager\AppData\Local\Temp\WER18C9.tmp.appcompat.txt
C:\Users\Usager\AppData\Local\Temp\WER3520.tmp.hdmp
An unhandle win32 exception occured in devenv.exe[1688]
Unhandled exception at 0x777715de in devenv.exe: 0xC0000005: Access violation reading
location 0x00000000.
An unhandled exception of type 'System.ExecutionEngineException' occurred in
Microsoft.VisualStudio.Design.dll
Again thank you for your time to helping me.**
Here the Error log :
[02/07/12,18:22:19] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[02/07/12,18:22:19] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
[02/07/12,18:55:04] VS70pgui: [2] Return for Visual Studio 2010 Tools pour SQL Server Compact 3.5 SP2 FRA indicates a failed installation. DepCheck indicates the component is installed.
[02/07/12,18:57:05] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[02/07/12,18:57:05] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
[02/07/12,19:15:44] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #GDR.cab
[02/07/12,19:15:44] Microsoft Visual Studio 2010 Professional - FRA: [2] UpdateFileFetcherFromMsi: Warning: Missing fwlink entry for cabinet: #QFE.cab
**EndOfSession
Could be the *.suo file next to the .sln file. Delete it and retry?
See this for more info
I had a similar error. I found out that the destination path had too many characters and was too long. I fixed it by moving the whole project to my main drive (C:).

Working with Sandcastle and Compact Framework projects

I have a set of .Net Compact Framework, 3.5, projects I have included into a Sandcastle project.
In VS 2008 the compilation fails with this log (PATH is the path to the solution):
Step 1 of 12: Change Directory
Changing current directory from "PATH\Documentation\Help\" to "PATH\Documentation\buildhelp"
Step 1 Time Elapsed: 00:00:00.0156256
Step 2 of 12: Execute MRefBuilder
C:\Program Files (x86)\Sandcastle\ProductionTools\MRefBuilder /config:"PATH\Documentation\Help\Presentation\Style\Configuration\MRefBuilder.config" /out:reflection.org /internal- /dep:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll","C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll","C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll","C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll","C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll","C:\Windows\assembly\GAC_MSIL\System.Data.SqlXml\2.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll","C:\Windows\assembly\GAC_MSIL\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Security.dll","C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll","C:\Windows\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll","C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization.Formatters.Soap\2.0.0.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Formatters.Soap.dll","C:\Windows\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll","C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" "PATH\DesktopTestsLauncher\bin\Debug\DesktopTestsLauncher.exe" "PATH\HSNDemo\bin\Release\HSNDemo.exe" "PATH\HSN_Coordinator Bluetooth IMAGE\BTWrapper\bin\Release\BTWrapper.dll" "PATH\HSN_Coordinator Bluetooth IMAGE\HSN_Coordinator\bin\Release\HSN_Coordinator.dll" "PATH\PortableStationLibrary\bin\PDA\PortableStationLibrary.dll" "PATH\PortableStationTests\bin\Debug\PortableStationTests.exe" "PATH\PortableStation\bin\Debug\PortableStation.exe"
MrefBuilder (v2.6.10621.1)
Copyright ¸ Microsoft 2006
Error: A file access error occured while attempting to load the addin assembly 'PATH\Documentation\Help\Presentation\Style\Configuration\MRefBuilder.exe'. The error message is: No se puede cargar el archivo o ensamblado 'file:///PATH\Documentation\Help\Presentation\Style\Configuration\MRefBuilder.exe' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
Non-zero exit code: 1
Step 2 DaveSexton.DocProject.Engine.ExternalProcessException: Execute MRefBuilder:
The "C:\Program Files (x86)\Sandcastle\ProductionTools\MRefBuilder" process failed with exit code: 1.
Successful Steps: 1 of 12
Failed Steps: 1
Documentation help build failed.
If I use the DocProject External UI I get this message: "The imported project C:\Windows\Microsoft.NET\Framework64\v3.5\Microsoft.CompactFramework.CSharp.targets was not found."
I have installed the .Net CF power toys, and I have that file in the 32bits version of the framework. How do I tell SandCastle to use the 32bits version???
You should tell to use the X86 Build platform. If it is auto, it will search in Framework64 directory. See if this blog post helps: http://www.simonrhart.com/2010/06/automating-your-windows-mobile-6x.html
It is related to TFS Build but the MSBUILD platform should be X86 and not Auto. Hope this helps you in finding a solution.