473,769 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Solution for "illegal characters in path" error message in ASP.NET

I have been having trouble the last few days opening any ASP.NET web
forms in the design view in the designer. Every time I clicked on an
aspx file I got a message box with the error "Unable to open in
designer. Illegal characters in path" and the file is instead opened
in HTML view. I don't know what application or situation may have
caused this error. I looked on the newsgroups and noticed that
numerous other people were having this problem.

The way I fixed it was to:
1> Go to another machine with same version of VS.NET and OS
2> run "regedit"
3> Select "HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\.NETFr amework" branch
from tree on the machine that does not have this issue.
4> Select File->Export from the menu of Registry Editor to export
branch to file.
5> Double-click on this file on the machine that is having the issue.

The error message should be gone and the aspx files should now be
viewed correctly in the designer. This is what worked for me.

I hope this helps other people who have struggled with the same issue.

------------

Steve Grahovac
Nov 18 '05 #1
1 5433
Steve,

Thank you for posting this to the group!

Jim Cheshire, MCSE, MCSD [MSFT]
Microsoft Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: sg******@hotmai l.com (Steve Grahovac)
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
Subject: Solution for "illegal characters in path" error message in ASP.NET
Date: 1 Jan 2004 12:03:33 -0800
Organization : http://groups.google.com
Lines: 25
Message-ID: <7f************ **************@ posting.google. com>
NNTP-Posting-Host: 65.26.193.244
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google. com 1072987413 5967 127.0.0.1 (1 Jan 2004 20:03:33 GMT)X-Complaints-To: gr**********@go ogle.com
NNTP-Posting-Date: Thu, 1 Jan 2004 20:03:33 +0000 (UTC)
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!newsfeed00.s u
l.t-online.de!t-online.de!newsf eed.icl.net!new sfeed.fjserv.ne t!news.maxwell.
syr.edu!postnew s1.google.com!n ot-for-mailXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1992 54
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

I have been having trouble the last few days opening any ASP.NET web
forms in the design view in the designer. Every time I clicked on an
aspx file I got a message box with the error "Unable to open in
designer. Illegal characters in path" and the file is instead opened
in HTML view. I don't know what application or situation may have
caused this error. I looked on the newsgroups and noticed that
numerous other people were having this problem.

The way I fixed it was to:
1> Go to another machine with same version of VS.NET and OS
2> run "regedit"
3> Select "HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\.NETFr amework" branch
from tree on the machine that does not have this issue.
4> Select File->Export from the menu of Registry Editor to export
branch to file.
5> Double-click on this file on the machine that is having the issue.

The error message should be gone and the aspx files should now be
viewed correctly in the designer. This is what worked for me.

I hope this helps other people who have struggled with the same issue.

------------

Steve Grahovac


Nov 18 '05 #2

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

Similar topics

2
6042
by: Kostatus | last post by:
The following code worked perfectly fine until i modified an unrelated part of the program: this->dungArea.mBlocked = mioS.mio_dungArea.mFlags & isBlocked; after that i started getting the error message: error C2297: '&' : illegal, right operand has type 'bool (__thiscall cDungeon::*)(int,int)'
2
10833
by: Karl Koscher | last post by:
I'm trying to communicate with a USB device using C#. I'm able to determine the device path using P/Invoke and SetupDiGetClassDevs, SetupDiEnumDeviceInterfaces, and SetupDiGetDeviceInterfaceDetail, but I can't open the device using File.Open. I get the following error: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path.
10
2190
by: Alpha | last post by:
I use FolderBrowserDlg for user to select a folder path then store it in the sql table. I then retrieve it to concatenate in a sqlcommand text to retrive files from that directory but it won't work because the database has it as "\\Support\VMS\VMSDB" while the C# code expects to see @"\\Support\\VMS\\VMSDB" . Is there a way to fix this? Thanks, alpha
0
1681
by: dsh | last post by:
I have an ASP.NET web application running on a load-balanced Windows Server 2003 web farm running IIS 6.0, using Active Directory authentication. I'm trying to programmatically create a new directory on a different server in the same domain. Before we switched to 2003, I was able to simply change the user in the machine.config file to a domain user with permissions. In 2003 I have done the following: 1. Created a new domain user...
1
4245
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall) LoadControl("ViewSmall.ascx");
3
15783
by: Eckhard Schwabe | last post by:
I only found one post on Google where someone mentions the same problem with a DataSet: XmlDataReader in .Net 1.1 can not read XML files from a path which contains "%10" or "%3f". code to reproduce: string filename = "%10.xml"; //XML file with this name is existing XmlReader reader = new XmlTextReader(filename);
3
8599
by: Kondapanaidu | last post by:
Hi, I am using C#.NET1.1 My solution is having different projects How will I know My solution path like(Application.startupPath) this is for Individual projects this will gives upto their corresponding EXEs. But I need the path like Only the Main solution.
1
2334
by: Shilpa | last post by:
Hi, I have a OpenFileDialog on my windows form whose filter is *.*. I want the users to be able to further filter the files by giving *.doc or *.zip etc in the "file name" field of the dialog (Just like it happens in the open file dialog of MS Word) Currently, if the user enters a wild card character in the file name field, it is throwing an exception with the message "Illegal characters in path". Please let me know how to achieve the...
0
1016
by: Zuhaib Hyder | last post by:
i'm trying to configurer my dot net site on lcal IIS, which use ms access database while i try to access from other pc's, then database path error occurs, bcz my connection was trying to find database on local system, rather then go to my webserver virtual directory what will be the solution of it?
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9422
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10208
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.