TFS 2012 build task failed because "resgen" was not found - visual-studio

I am trying to run my build for my solution in VS.NET 2012 TFS but I am getting an error:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (2291): Task failed because "resgen.exe" was not found
I tried to install the latest Windows SDK 7.1 but it won't let me? Is there another solution for this except installing VS.NET on the build server?

I resolved this error on my TFS 2012 Build Server (Windows Server 2012) by:
Installing the Windows SDK from this link:
Microsoft Windows SDK for Windows 7 and .NET Framework 4
Rerunning the build.
You may need to check that the following Registry Key exists (per the Build error):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx35Tools-x86

Related

DEP0001: Unexpected Error: SmartDeviceException - Class not registered [0x80131500]

When attempting to deploy ARM to windows phone device via USB in
Visual Studio 2017 15.5.2 (Xamarin UWP/Android App) I am getting this error:
DEP0001: Unexpected Error: SmartDeviceException - Class not registered [0x80131500]
After a clean install of Windows 16299 I continue to get the error, even with a blank app. Please Advise.
I had this issue with Visual Studio 2017 15.5.6. Solved with:
regsvr32 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86\SirepClient.dll"
from admin command prompt.
This problem does not happen on Visual Studio 2017 Version 15.4.5
(File Version 15.4.27004.2010).
This version was tested on a clean install of Windows 16299 with a
blank app and also a working project.
Direct deploy of ARM to Device via USB was successful without issues.
I will continue to use 15.4.5 until the problem with 15.5.2 is resolved.
12/20/2017 EDIT:
as of this date, in an update from 15.4.5 to 15.5.2 the problem has been fixed.

Visual Studio Build for windowsphone error : (XapDeployCmd.exe) didn't found

I build and emulate my cordova app in android device and VisualStudio Android Emulator successfully in Visual Studio.
But when I try to build and deploy my app to windowsphone device I got this error that said the file "XapDeployCmd.exe" does not in %PATH%
ERROR: Error executing ""XapDeployCmd" /enumeratedevices":
'"XapDeployCmd"' is not recognized as an internal or external command,
WARNING: XapDeploy tool (XapDeployCmd.exe) didn't found. Assume that it's in
%PATH% and deploy fails.
When I referred to the path that I must find the file "XapDeployCmd.exe" in "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment" I saw there is one file there: "XapDeploy.exe" and "XapDeployCmd.exe" is not there
so where is "XapDeployCmd.exe" ?
I'm using Visual Studio 2015 Community With Update 3 and I installed Windows Phone SDK 8.0
Tools for Apache Cordova only supports deploying to Windows devices 8.1.
To deploy to Windows 8, you need Visual Studio 2013 which has a completely different project structure, and I don't recommend using it.
Most users who are on a version of Windows 8 tend to be on version 8.1
As I stated before، I had installed Windows Phone SDK 8.0 .
with installing Windows Phone SDK 8.0 , Visual Studio 2012 will be installed.
But the file "XapDeployCmd.exe" is not with this version of visual studio.
Installing Update 5 (update 2 or later) of visual studio 2012 will install "XapDeployCmd.exe" with itself. Visual Studio 2012 Iso and problem will be solved.
after solving this problem if you encounter with error like 'Exception from HRESULT: 0x89721800' , refer to this article

Getting strange errors when installing visual studio 2015 community rc

I have windows 7 x64 on my laptop, few days ago i tried to install visual studio 2015 community rc but i get flowing error when installer tries to install ".NET Framework 4.6 rc" :
Microsoft .NET framework 4.6 rc
Fatal error during installation.
Visual c++ library Redist resource package
Package failed.
And last lines in setup log files are:
[189C:1670][2015-06-10T18:20:08]i000: MUX: Go to Finished page.
[189C:1670][2015-06-10T18:20:08]i000: MUX: Format Message Failed: 317
[189C:1670][2015-06-10T18:20:08]i000: MUX: Format Message Failed: 317
[189C:1670][2015-06-10T18:20:08]i399: Apply complete, result: 0xc0000421, restart: None, ba requested restart: No
I download ".NET framework 4.6 rc" and tried to install it out of visual studio but this time i get this problem:
1.he setup cannot run in compatibility mode.
2.The .NET Framework 4.6 redistributable does not apply to this operating system. Please download the .NET Framework 4.6 for your operating system from the <A HREF="http://go.microsoft.com/fwlink/?LinkId=513370">Microsoft Download Center.
But the downloaded package is for windows 7 and windows 8 and my windows is 7 edition.
And i have a problem in my windows and i don't know how to solve the problem, some times when i want to install new applications such as firefox the installer app exits automatically without any error messages, You know in Visual studio's iso file there is packages such as sql server express, .NET Framework 4.6 rc and others, when i try to install this packages manually with their .msi files the installer has been crashed and exit without any message.

VS 2013 SqlBuildTask 04018 Error

After updating to a recent service pack my Database project no longer builds.
I get the following error:
Error 1 04018: The "SqlBuildTask" task failed unexpectedly.
System.MethodAccessException: Attempt by method
'Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnCreateCustomSchemaData(System.String,
System.Collections.Generic.Dictionary2<System.String,System.String>)'
to access method
'Microsoft.Data.Tools.Components.Diagnostics.SqlTracer.ShouldTrace(System.Diagnostics.TraceEventType)'
failed. at
Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnCreateCustomSchemaData(String
filePath, Dictionary2 referenceMetadata) at
Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.CreateCustomSchemaData(String
filePath, Dictionary2 referenceMetadata) at
Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.ProcessReferences(TaskLoggingHelper
providedLogger, SqlTaskHost host, ErrorManager errors) at
Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.LoadImpl(ITaskHost
providedHost, TaskLoggingHelper providedLogger) at
Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.Load(ITaskHost
providedHost, TaskLoggingHelper providedLogger) at
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteLoadTaskHostStep()
at
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteStep(Func1
step) at
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.Execute() at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at
Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext() C:\Program
Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets
I have tried rebooting and repairing VS2013
Thanks for any thoughts.
You need to install the last version of SQL Server Data Tools
http://msdn.microsoft.com/en-US/data/hh297027
Just updating to the latest SSDT did not work for me.
My Config:
Win 7 Enterprise, VS Express 2013 v12.0.31101.00 Update 4, .NET 4.5.51209
My solution that worked:
Uninstall all prev versions of SQL Server, in my case 2005, 2005 Mobile 2008, Compact Editions, etc. I left 2008 Setup Support Files.
Uninstall SSDT also
Download and install latest SQL Server Data Tools http://msdn.microsoft.com/en-US/data/hh297027 (as of 4/8/15 this is V 12.0.50318.0)
Reload project(s), clean, rebuild and no error!
I had to do all of the above and a little extra.
Install the latest service pack for my version of SQL (2012)
Update SSDT
Remove old SSDT files in the new install location
See Simon Mourier's answer in this post
Open project properties and uncheck "Enable extended transact-SQL verification for common objects"
Microsoft is removing this from the next version of SSDT and VS
Ok, solution that worked for me:
I compared dates and versions for files:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT\Microsoft.Data.Tools.Schema.Sql.UnitTesting.targets
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets
and versions from my build machine were one year older than versions from my dev machine.
So I copied my dev machine files to build server, and it works...
MSBuild, seriously?

ejabberd installation issue for Windows -- ./ejabberdctl: erl.exe: can't execute

I have installed ejabberd 2.1.11 on two machines, one with Windows XP SP2 and one with Windows server 2003 Standard edition. Both with VC++ 2005.
VC++ 2005 was already installed before starting the ejabberd installation.
I have manually locate and run erl.exe and in the eventViewer I got (in both machines):
Generate Activation Context failed for C:\Program Files\ejabberd-2.1.11\bin\erl.exe. Reference error message: The referenced assembly is not installed on your system.
and
Dependent Assembly Microsoft.VC80.CRT could not be found and Last Error was The referenced assembly is not installed on your system.
Also when running erl.exe a pop-up window appears with the message: "C:\Program Files\ejabberd-2.1.11\bin\erl.exe This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."
Also when I run ./ejabberdctl got the error:
"
Starting ejabberd...
./ejabberdctl: e:\bin\erl.exe: can't execute: (14001) Error 14001
" There is a problem starting Erlang.If the error you see is 14001, you need to install:
Microsoft Visual C++ 2005 SP1 Redistributable Package
You can download that installer from www.microsoft.com
You can also check the ejabberd Administrator Guide "
But the Visual C++ 2005 SP1 is installed.
Anyone have a idea why this happening?
Thanks in advance for your time.
rgb

Resources