Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

System.IO.PathTooLongException

Posted on 2006-12-01
7
Medium Priority
?
1,261 Views
Last Modified: 2012-06-27
Hi, All,

I got this exception when I tried to use vs2005 to publish my project to a network location.

The error said GenerateApplicationManifest task failed. (see below for full msg)

My path as it is seen in the box is \\Stobus1\DATA\OneTouch05\. It is no where to the 248 characters limit.
However when I browsed to it, I have to click on several nodes as My network Places, entire network, microsoft windows network, etc.

Do these all count as part of the path? How to ge around this?

Thanks!


Error      2      The "GenerateApplicationManifest" task failed unexpectedly.
System.IO.PathTooLongException: 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.
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolvePath(String path, String[] searchPaths)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolveAssembly(AssemblyReference a, String[] searchPaths)
   at Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest.ResolveFiles_1(String[] searchPaths)
   at Microsoft.Build.Tasks.GenerateManifestBase.ResolveFiles()
   at Microsoft.Build.Tasks.GenerateManifestBase.BuildManifest()
   at Microsoft.Build.Tasks.GenerateManifestBase.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)      CSRTS
0
Comment
Question by:ommer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 18054234
Hi ommer,

What is the name of the application? The path includes the full name of the application as well.

Tim Cottee
0
 

Author Comment

by:ommer
ID: 18054351
Tim,

On another try, I found out this has nothing to do with publish/depoy to network server, because I got the same error this time on BUILD under Release.

The project name is also short enough. It is CSRTS.

Where can I find out the ApplicationManifest path?

By the way, this is the first build after converted to vs2005, and it has been fine under vs2003.

Thanks again.
0
 
LVL 43

Assisted Solution

by:TimCottee
TimCottee earned 400 total points
ID: 18054520
ommer,

That is a good question, it is I believe local to the application folder. It may be that your local application folder path is too long, as you say not actually relevant to the deployment target path at all.

Tim
0
Amazon Web Services EC2 Cheat Sheet

AWS EC2 is a core part of AWS’s cloud platform, allowing users to spin up virtual machines for a variety of tasks; however, EC2’s offerings can be overwhelming. Learn the basics with our new AWS cheat sheet – this time on EC2!

 

Author Comment

by:ommer
ID: 18055197

Most of the proj stuff are in here. That is less than 100.
C:\Documents and Settings\ommer\My Documents\Visual Studio Projects\CSROrderProcessing.

What is the naming convention of the app manifest? I don't think any file there looks like an app manifest.

Also, I now run into the same error even when I run build under debug, which I have done many times successfully just yesterday, and I havn't moved my project around.
0
 

Author Comment

by:ommer
ID: 18055210

Correction:
C:\Documents and Settings\ommer\My Documents\Visual Studio 2005\Projects\CSROrderProcessing
0
 
LVL 21

Accepted Solution

by:
surajguptha earned 600 total points
ID: 18059653
Hi Ommer,
              It might not be a problem with just the start of the Path CSROrderProcessing. Inside this folder they might be multiple nested folders and which while can contain a file that has a long name. Putting together this long folderpath + file name the characters may have crossed 248 characters. Can you the length to the path of ur deepest nested file?

Hope this helps
0
 

Author Comment

by:ommer
ID: 18070682

I changed CSROrderProcessing to a short name then copied all files into it. That solved my problem.
0

Featured Post

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question