5,693,062 members and growing! (16,080 online)
Email Password   helpLost your password?
Web Development » ASP.NET » General     Intermediate

Visual Studio 2005: "The Directory Name is Invalid" Error

By Alex B. Clarke

When renaming a control ID in VS2005 Web Project at design, IDE may trough an error.
Windows, .NET, Visual Studio, ASP.NET, Dev

Posted: 27 May 2006
Updated: 27 May 2006
Views: 38,043
Bookmarked: 6 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
22 votes for this Article.
Popularity: 5.51 Rating: 4.11 out of 5
3 votes, 13.6%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
3 votes, 13.6%
4
16 votes, 72.7%
5
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article

Visual Studio 2005: "The Directory Name is Invalid" Error

Visual Studio 2005: "Failed to find definition" Error

Description

When working with a Web Site project in Visual Studio 2005 you may get an error when re-naming control ID in design mode. Error message can be one of the following:

  • Failed to find definition.
  • The directory name is invalid.

Sample Image - VSPropRenameBug.gif

The error may not happen if you don't have App_Code directory defined within your project.

Workaround

1. Navigate to the directory
..\Documents and Settings\<%UserName%>\Local Settings\Application Data\Microsoft\WebsiteCache

2. Create a folder with the same name as the name of your project.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Alex B. Clarke


Alex B. Clarke is a professioinal software developer specialising in .Net, C#, Asp.Net, SQL, ADSI, CDO, and other technolgies. He writes applications that automate business processes.
Occupation: Web Developer
Location: United Kingdom United Kingdom

Other popular ASP.NET articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 22 of 22 (Total in Forum: 22) (Refresh)FirstPrevNext
GeneralThts a great findmemberangsram6:51 3 Mar '08  
GeneralThank youmemberMukesh_B0:40 6 Jul '07  
GeneralThis is the complete fixmemberjlavigne9:47 17 May '07  
GeneralRe: This is the complete fixmemberAlex B. Clarke10:34 18 May '07  
GeneralAnother soultion.memberhibias6:06 15 Aug '06  
GeneralRe: Another soultion.membercider1236:31 28 Sep '06  
GeneralRe: Another soultion.memberAlex B. Clarke10:15 28 Sep '06  
GeneralThe Easiest Solutionmemberrjainx6:32 29 Sep '06  
GeneralSolved in 2 seconds last night.memberScurvee12:15 3 Oct '06  
GeneralRe: Solved in 2 seconds last night.memberScurvee7:08 13 Nov '06  
GeneralRe: Solved in 2 seconds last night.memberjdkulkarni22:36 13 Nov '06  
General.A Big Help - Thank you.memberEdTheBurger23:09 28 Jun '06  
GeneralPossible PatternmemberRobEmDee18:27 11 Jun '06  
GeneralIt happens to me all the timememberAnatoly Rapoport22:05 28 May '06  
GeneralRe: It happens to me all the timememberAlex B. Clarke23:33 28 May '06  
GeneralRe: It happens to me all the timememberdapoussin1:04 30 May '06  
AnswerRe: It happens to me all the time [modified]memberAlex B. Clarke2:53 30 May '06  
GeneralRe: It happens to me all the timememberAlex B. Clarke2:04 31 May '06  
GeneralRe: It happens to me all the timememberAnatoly Rapoport2:38 31 May '06  
Generalhow to recreate error?membercodebased23:43 27 May '06  
GeneralRe: how to recreate error?memberAlex B. Clarke2:54 28 May '06  
GeneralRe: how to recreate error?memberEfimPechat5:29 5 Dec '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 27 May 2006
Editor:
Copyright 2006 by Alex B. Clarke
Everything else Copyright © CodeProject, 1999-2008
Web16 | Advertise on the Code Project