Unhandled Exception: System.ComponentModel.Win32Exception : The system cannot find the file specified - jenkins

I am fetching source code from TFS in Jenkins and getting this error:
Unhandled Exception: System.ComponentModel.Win32Exception : The system cannot find the file specified at AutomaticDBDeploy.Module1.Main()
What is the reason, and how to fix it?

In visual Studio go to project menu and click on project properties under Platform target --> uncheck the Prefer-32-bit and Rebuild the solution and run the solution.
https://timxn.com/en/unhandled-exception-systemcomponentmodelwin32exception-system-cannot-find-file-specified

Related

Receiving error while creating project with Razor page template

Immediately I click on create and the project loads. I always receive the below error. I cannot do anything without correcting this.
This is the error:
Severity Code Description Project File Line Suppression State
Error NETSDK1004 Assets file 'C:\Users\HARBIORLAR PC\Desktop\VB Web Projects\BookList\BookList\BookList\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. BookList C:\Program Files\dotnet\sdk\3.1.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets 234
Screen shot of the error:
This is what i did and it works,I Enable automatic package restore by choosing Tools > Options > NuGet Package Manager, and then selecting Automatically check for missing packages during build in Visual Studio under Package Restore.
Then I build the project with internet connection on and the missing file was downloaded.
This the Screen shot After successful

I can not build the generated Android project by Zebble

I am getting the following error when building the android project generated by Zebble for Xamarin.
I followed the steps in -READ-ME-NOW!!!!!!!!!!!! text file. When I did build the android project, this is error I got:
The command "Zebble" update-schema auto" exited with code -1.
Some additional error log I found from Build output:
EXEC : error : Failed to update the xml schema for intellisense: Failed to find the UWP exe file. Searched all EXE files inside: E:\Labs.NET\Xamarin\TestZebble\TestZebbleApp\Run\UWP\bin
Could you please tell me what has gone wrong.
Hope this helps:
Remove all zebble folders from nuget packages folder.
Remove the Run\Android\Zebble.exe file.
Update the zebble nuget to latest version.
Set the Android project as startup project.
From Build > Configuration Manager be sure that Build and Deploy are enabled for android project.
Rebuild the solution.

Unable to launch web project through dart editor

Just starting up on Dart and I am unable to launch web project from dart editor, command line projects work fine.
I get this exception while trying to start web project
Running pub get on C:\Users\Admin\dart\DartABWebApp ... ---
Pub get failed, [69] Resolving dependencies...
Got socket error trying to find package browser at https://pub.dartlang.org.
Anyone knows how to resolve this ?
I moved the installation directly under primary drive and that did the trick

Error when build BlackBerry project use Eclipse?

I'm using Blackberry plugin for Eclipse.
I have just encountered a problem today.
I can't build any Blackberry project successful.
The error is:
Packaging project BlackBerryDVRRemote
C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\rapc.exe -quiet codename=deliverables\Standard\5.0.0\BlackBerryDVRRemote deliverables\Standard\5.0.0\BlackBerryDVRRemote.rapc -sourceroot=D:\PHONG\BlackBerry WorkSpace\WorkSpace1\BlackBerryDVRRemote\src;D:\PHONG\BlackBerry WorkSpace\WorkSpace1\BlackBerryDVRRemote\res -import=C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\lib\net_rim_api.jar D:\PHONG\BlackBerry WorkSpace\WorkSpace1\BlackBerryDVRRemote\bin
Warning!: No entry points found
Warning!: No definition found for exported static routine: .main(String[])
Packaging project BlackBerryDVRRemote succeeded (took 0.932 seconds)
These Blackberry projects was built successful yesterday, but today is not.
In the "Bin" folder I don't see any *.class file.
I Right click on the project and choose propertiers-->Java build path, I see "Default output folder" is BlackBerryDVRRemote/bin.
I Right click on the project and choose "Run/Debug As Simulator/Device", I see no happen.
Please help me to fix it,
Many thanks !
When i restart eclipse, i see the following error:
Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
Exception stack tracke:
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:336)
at org.eclipse.swt.widgets.Widget.getData(Widget.java:550)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:74)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:814)
at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:930)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:927)
at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:856)
at org.eclipse.ui.internal.Workbench$23.run(Workbench.java:1100)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.ja
Please help, thanks all !
thanks too: I have the same issue with Juno & BlackBerry resource editor.
By removing the project from the workspace and re-importing it, it works!

Error building a Release version when referencing a Web Service

If I create a New Mono Android application, then change the Active Config of the solution to Release, then right click and choose build, the application builds fine.
If I then add a web reference to http://soatest.parasoft.com/calculator.wsdl as per this tutorial, then if I build again I get the error:
Error 1 Could not load file or assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MonoAndroidApplication3\MonoAndroidApplication3\SGEN
If I change the Active config back to Debug then build, then the solution builds fine.
However, I cannot get the Release config to build at all when referencing any web service. This is causing me problems as I can't deploy a release version of my application.
I have tried using VS2010 and MonoDevelop 2.6 Beta 2, both give the same error.
I can't figure out why this is happening, but you can workaround it by going to the Build tab of your project properties and turning off "Generate serialization assembly".
Generate serialization assembly prevented you from building.
I got the NameResolutionFailure when selecting Release target because i didn't set the INTERNET permission in the application's options:
right click your project
select options
select the left item "Mono for Android Application"
set Required Permissions: "INTERNET" by checking the checkmark next to it.
It seems that this is active for debug builds since it's used to connect the debugger to the application.
You have to set this yourself in the Release build configuration.

Resources