473,804 Members | 3,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Renamed namespace and got parser error

Ian
Hi there,

I have a small app and i just went into the code behind and renamed the name
space.,.. from myapp to mycompleteapp and now its giving me parser errors
about

Could not load type mycompleteapp.l ogin

login is my webform ... i looked in all the hidden places and everything
seems to have updated correctly..

I haven't changed the virtual directory on IIS location....

I suppose I can build it again, it wasn't like the longest app in the world
but it would be nice to know why it happended..

Maybe I messed up, any ideas??

Maybe I changed the namespace incorrectly

Ian
Nov 18 '05 #1
2 1107
The issue seems to be quite simple. Check your .aspx or .ascx file and make
sure each file inherits (loads) the correct type.

"Ian" <ia*********@ho tmail.com> wrote in message
news:Ou******** ******@TK2MSFTN GP12.phx.gbl...
Hi there,

I have a small app and i just went into the code behind and renamed the name space.,.. from myapp to mycompleteapp and now its giving me parser errors
about

Could not load type mycompleteapp.l ogin

login is my webform ... i looked in all the hidden places and everything
seems to have updated correctly..

I haven't changed the virtual directory on IIS location....

I suppose I can build it again, it wasn't like the longest app in the world but it would be nice to know why it happended..

Maybe I messed up, any ideas??

Maybe I changed the namespace incorrectly

Ian

Nov 18 '05 #2
Namespaces are case sensitive, make sure you have consistent case between
the code-behind namespace and the reference in the .aspx page..

"Ian" <ia*********@ho tmail.com> wrote in message
news:Ou******** ******@TK2MSFTN GP12.phx.gbl...
Hi there,

I have a small app and i just went into the code behind and renamed the name space.,.. from myapp to mycompleteapp and now its giving me parser errors
about

Could not load type mycompleteapp.l ogin

login is my webform ... i looked in all the hidden places and everything
seems to have updated correctly..

I haven't changed the virtual directory on IIS location....

I suppose I can build it again, it wasn't like the longest app in the world but it would be nice to know why it happended..

Maybe I messed up, any ideas??

Maybe I changed the namespace incorrectly

Ian

Nov 18 '05 #3

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

Similar topics

5
10013
by: SenthilSS | last post by:
My application produces XML Data files which have XML namespace qualified XML elements (nodes), but the namespace itself is not declared in the data file. My task is to read these data files in a C# app for viewing purposes. I am using "XmlDocument" and "DataSet" for displaying the XML data in the Data grid. Problem: If I add the Namespace declaration to the data file itself (by manually opening the file and adding a new Root element...
6
24743
by: Robert Warnestam | last post by:
I've two class libraries, where one is referencing the other. The first library looks like this; (assembly name and root name space is set to Codab.Parser) namespace Codab.Parser { public class Parser {...} ... } The second library looks like this (assemble name and root name space is set to Codab.TapNet)
4
2058
by: John Holmes | last post by:
I'm using data to rename some web controls on a form that uses a repeater contol and so it can have mulitple instances of the same control set. The controls get renamed (thanks to Steven Cheng's help) in a click event of the button that is pushed to enter data. Each time the button is clicked it sends the ID entered by the user to query the database and return information. The renamed controls then include the ID in the name of the...
29
4250
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using System.Text.RegularExpressions; using System.Web; using System.Web.Caching;
4
1876
by: dhnriverside | last post by:
HI guys I've just written my first independent namespace for my library (yay me!). However, on trying to add it to my website project, it causes an error when I look at the website. It compiles ok though... The error message is... "The located assembly's manifest definition with name 'HudsonNash.Utils.Security' does not match the assembly reference"
4
1328
by: Brent White | last post by:
The aspx file was originally default.aspx, but I'm putting some other aspx files in that same virtual directory and I want to give it a more meaningful name. I renamed default.aspx in the IDE to CorporateSelectStates.aspx, and the file default.aspx.vb was renamed to CorporateSelectStates.aspx.vb. Now when I try to build, I get an error saying "The file /CrystalReportsWebApplication1/Default.aspx.vb does not exist" It refers to line 1...
1
1527
by: toton | last post by:
Hi, Is it possible to have a class level namespace opening instead of file level . Something like this, I have a long namespace like namespace com { namespace my_company{ namespace my_project{ namespace parser{ class my_parser{ };
3
1824
by: toton | last post by:
Hi, Is it possible to have a class level namespace opening instead of file level . Something like this, I have a long namespace like namespace com { namespace my_company{ namespace my_project{ namespace parser{ class my_parser{ };
2
7804
by: yllanger | last post by:
Hi guys, I have come yet again to ask another question. :D The scenario is like this. Using Parser; namespace Crawler { public void Main() {
0
9705
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
10568
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...
1
10311
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9138
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...
0
6847
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
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.