Solved

System.IO.PathTooLongException

Posted on 2006-12-01
7
1,220 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
  • 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 100 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 150 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

948 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now