473,385 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Visual Studio 2005 reporting Error 13 : Unknown Build Error

Hello, I have a problem when working with a program that uses XAML in
one of the modules.

I copied some XAML code from another working project into an existing
project, then when trying to compile the project I get the following:
Error 13 Unknown build error, 'The specified path, file name, or both
are too long. The fully qualified file name must be less than 260
characters, and the directory name must be less than 248 characters.'

The XAML code that was entered was the following:

<Window x:Class="WPFPhotoGalleryDemo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-
namespace:Leadtools.Windows.Controls;assembly=Lead tools.Windows.Controls"
Title="LEADTOOLS WPF Photo Gallery Example" Width="800"
Height="650" Background ="Black" Icon="lv.ico"
ResizeMode="CanMinimize"
>
<Grid>
</Grid>
</Window>

I am using VS 2005 SP1 with .NET 3.0 extensions installed. The OS is
Windows XP Home SP2.

How do I resolve this error?

Thanks.
Mike
Jun 27 '08 #1
1 2005
On Fri, 11 Apr 2008 15:06:10 -0700, eljainc <el*****@sbcglobal.netwrote:
Hello, I have a problem when working with a program that uses XAML in
one of the modules.

I copied some XAML code from another working project into an existing
project, then when trying to compile the project I get the following:

Error 13 Unknown build error, 'The specified path, file name, or both
are too long. The fully qualified file name must be less than 260
characters, and the directory name must be less than 248 characters.'
That's the sort of error that can be hard to diagnose without access to
the entire project and the computer on which you're trying to compile it.

However, as a suggestion: given the error, and given that the same code
worked in a different context, you probably should be looking at how the
new context compares to the old one. Specifically, your new project in
which you've added the code, does the project live deeper in your
directory structure and/or have longer directory names?

The example you posted doesn't even have relative references to local
files, except possibly the icon. So it's hard to see from here what might
be different and causing the error. But maybe the local project into
which you copied the code text itself is too far into the directory
structure, or maybe there's some implicitly generated local file reference
that's not obvious.

Finally, it's possible that at some point the example is causing an
illegal path to be generated, in that the path is simply garbage for some
reason. Why that would be I can't say. But obviously if it's not a valid
path in the first place, the length easily could be too long too.
Unfortunately, an invalid path that's too long will hit the length-check
first, generating the error you're seeing rather than a more specific one
telling you that the path itself just isn't right.

I think it's more likely to do with where the project is and the depth of
the directory structure. But without being right there looking at the
computer, it's difficult to say for sure.

Pete
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
19
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours...
6
by: John | last post by:
Hi, I am working on a C++ project which has been developed with Visual Studio.Net 2003. When I compile it with Visual Studio 2005, it gives hundred of errors. Two of the strange errors are ...
9
by: slimicus | last post by:
The IDE crashes about every 10-20 minutes for me.. its been doing this ever since I started this project (The project was a 2003 project but I recreated it in 2005) When it crashes, its...
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
0
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the...
0
by: Massimiliano Polito | last post by:
It seems the option '/useenv' is no longer supported in in Microsoft Visual .NET 2005. If I run 'devenv /?' I get the following: ------------------------ Microsoft (R) Visual Studio Version...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.