Invalid character encoding
Hi
I'm running TeamCity Agra EAP, build 3914, and this is my first configuration and use of TeamCity. I am using Team Foundation Server as VCS, and using sln2005 as build runner.
When I run the agent I get the error below. Does anyone know what I can do?
---
: The project file could not be loaded. Invalid character in the given encoding. Line 5, position 70.
: sln2005 output: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe C:\TeamCity\buildAgent\work\Server\PFSYS\PFSYS\PFSYS.sln__generatedBuild1174638588825.msbuild "/l:JetBrains.BuildServer.MSBuildLoggers.MSBuildLogger,C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll;5;http://localhost:9090/RPC2" "/property:build_working_dir=C:\TeamCity\buildAgent\work\Server\PFSYS;DotNetFramework1_1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;build_number=5;DotNetFramework1_1=;user_language=no;user_country=NO;os_version=5.1;user_timezone=Europe/Berlin;file_encoding=Cp1252;DotNetFramework2_0_x86=;file_separator=\;DotNetFramework2_0_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;DotNetFramework2_0_Path=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;Configuration=Release;os_arch=x86;DotNetFramework1_1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;DotNetFramework2_0=;DotNetFramework1_1_x86=;build_vcs_number_1=2023;user_name=sah;os_name=Windows XP;idea_build_agent_port=9090;teamcity_buildType_id=bt1;DotNetFrameworkSDK2_0_Path=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;user_variant=;DotNetFrameworkSDK2_0_x86=;successful_build_number=1;user_home=C:\Documents and Settings\sah.OBJECTNET;idea_build_server_build_id=5;DotNetFrameworkSDK2_0_x86_Path=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;path_separator=_;DotNetFrameworkSDK2_0=" /target:RunSolutionBuild_generated Microsoft (R) Build Engine Version 2.0.50727.42 Copyright (C) Microsoft Corporation 2005. All rights reserved. Init C:\TeamCity\buildAgent\work\Server\PFSYS\PFSYS\PFSYS.sln__generatedBuild1174638588825.msbuild(5,70): error MSB4025: The project file could not be loaded. Invalid character in the given encoding. Line 5, position 70.
Please sign in to leave a comment.
Sten,
Could you please take a look at generated file C:\TeamCity\buildAgent\work\Server\PFSYS\PFSYS\PFSYS.sln__generatedBuild1174638588825.msbuild ,
Possibly you'll see what's wrong with line 5. Please let us know what you've encountered.
Kind regards,
KIR
Hello,
Could you please check if the runner is sln2005.
Unfortunately, msbuild runner does not compartible with .sln files.
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I now think I know why I got the invalid character encoding error:
TeamCity have problems with national characters in directory and filenames.
Im my first post I had masked away some characters in the solution file so the norwegian project name could not be read - ie. the real name was not PFSYS.
The real name contained the norwegian letter 'ø' in both solution file and directory.
I changed the following to be able to start build by TeamCity (with sln2005 runner):
Renamed directory and solutionfile on local filesystem (C:\TeamCity\buildAgent\work\Manual) (and in the solutionfile).
Changed VCS checkout mode to: Do not checkout files automatically
Changed Build Runner Solution file path: to new directory and filename.
---
Are my expectations correct - does TeamCity have problems with national characters in directory and filenames?
Hi Sten,
Most likely you're right, and projects with national characters in its name are not supported - we haven't done thoughtful testing for such situations. If such requirement is crucial for you, please file a Jira request at http://www.jetbrains.net/jira/browse/TW
Thanks for your help,
KIR
Stay away from national characters in solution filename :)