473,386 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Reserved Control Names

I have noticed with .Net 2.0 that there are some reserved names (obviously)
in the framework.
The main one I am having a problem with is "Header.ascx". This works
pefectly during development, and straight after deployment.
Im pretty sure the problem turns up when the application pool the website is
sitting in recycles and somehow the the temp files can no longer be found.
It only ever seems to be happening on this file.

To fix it i have to either delete the temp files and recycle the app pool
or
make a change to the Header.ascx file itself to force the app to recompile
and generate a new temp version of the control.

It happens in both Website Projects and Web Application Projects as well.
I have changed the control name to PageHeader and have not received any
errors since.

Any idea why this is happening?

Graham
Jun 12 '06 #1
6 1047
Graham wrote:
I have noticed with .Net 2.0 that there are some reserved names (obviously)
in the framework.
The main one I am having a problem with is "Header.ascx". This works
pefectly during development, and straight after deployment.
Im pretty sure the problem turns up when the application pool the website is
sitting in recycles and somehow the the temp files can no longer be found.
It only ever seems to be happening on this file.

To fix it i have to either delete the temp files and recycle the app pool
or
make a change to the Header.ascx file itself to force the app to recompile
and generate a new temp version of the control.

It happens in both Website Projects and Web Application Projects as well.
I have changed the control name to PageHeader and have not received any
errors since.

Any idea why this is happening?

Graham


Hi Graham,

This seems odd to me. Header isn't a keyword that I'm aware of. One of
my projects has a control named Header. This hasn't given me any
problems in 1.1, 2.0 web site, or 2.0 web application.

Is the id of the control also header? That might be conflicting with
Page.Header...

What language are you using? What is the error you are getting?

--
David Hogue
Jun 12 '06 #2
Hi David,
Thanks for replying.
The id of the control is Header1 and im coding in C#.
Im getting the following error:
Exception type: System.IO.FileNotFoundException

Exception message: Could not load file or assembly 'App_Web_5rrlqqwl,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The system cannot find the file specified.

Stack trace: at
ASP.staffintranet_controls_header_ascx.__BuildCont rolTree(staffintranet_controls_header_ascx
__ctrl)

at ASP.staffintranet_controls_header_ascx.FrameworkIn itialize()

at System.Web.UI.UserControl.InitializeAsUserControlI nternal()

at System.Web.UI.UserControl.InitializeAsUserControl( Page page)

at ASP.staffintranet_cmsmaster_master.__BuildControlH eader1()

at
ASP.staffintranet_cmsmaster_master.__BuildControlT ree(staffintranet_cmsmaster_master
__ctrl)

at ASP.staffintranet_cmsmaster_master.FrameworkInitia lize()

at System.Web.UI.UserControl.InitializeAsUserControlI nternal()

at System.Web.UI.MasterPage.CreateMaster(TemplateCont rol owner, HttpContext
context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)

at System.Web.UI.Page.get_Master()

at System.Web.UI.Page.ApplyMasterPage()

at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Hope that helps...

Graham
"David Hogue" <da************@gmail.com> wrote in message
news:UN********************@fe05.news.easynews.com ...
Graham wrote:
I have noticed with .Net 2.0 that there are some reserved names
(obviously)
in the framework.
The main one I am having a problem with is "Header.ascx". This works
pefectly during development, and straight after deployment.
Im pretty sure the problem turns up when the application pool the website
is
sitting in recycles and somehow the the temp files can no longer be
found.
It only ever seems to be happening on this file.

To fix it i have to either delete the temp files and recycle the app pool
or
make a change to the Header.ascx file itself to force the app to
recompile
and generate a new temp version of the control.

It happens in both Website Projects and Web Application Projects as well.
I have changed the control name to PageHeader and have not received any
errors since.

Any idea why this is happening?

Graham


Hi Graham,

This seems odd to me. Header isn't a keyword that I'm aware of. One of
my projects has a control named Header. This hasn't given me any
problems in 1.1, 2.0 web site, or 2.0 web application.

Is the id of the control also header? That might be conflicting with
Page.Header...

What language are you using? What is the error you are getting?

--
David Hogue

Jun 12 '06 #3
Hi Graham,

As for the usercontrol(ascx)'s file naming, so far I haven't found any
definite document or existing issue addressing on such issue. And from the
further error message and call stack you provided, the runtime error is a
typical file/assembly not found exception. Based on my experience, there
does exists some similiar assembly not found error in ASP.NET 2.0
applications, however, most of them are caused by dynamically loading
usercontrol(ascx) in page. So is the usercontrol(ascx) dynamically loaded
or statically defined in aspx template?

BTW, the callstack indicate that there is also master page applied in your
application pages, I'm also suspecting whether this is also related to the
issue. Anyway, if you feel convenient, would you consider creating a
simplified project( with a page and usercontrol or a masterpage in
addition) which can reproduce the error in IIS? Thus, we can perform some
test in the local environment.

If you have any other findings, please also feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 12 '06 #4
Hi Graham,

How are you doing on this issue or have you got any progress? As I
mentioned in the last message, you can provide me a simplified test project
regarding on this issue so that we can perform some local test. Anyway, if
there is still anything we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft MSDN Online Support Lead
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 14 '06 #5
I will create a test project today.
Should I email this to you?

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:7Z**************@TK2MSFTNGXA01.phx.gbl...
Hi Graham,

How are you doing on this issue or have you got any progress? As I
mentioned in the last message, you can provide me a simplified test
project
regarding on this issue so that we can perform some local test. Anyway, if
there is still anything we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft MSDN Online Support Lead
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 19 '06 #6
Hello Graham,

Steven will be out of office for several days. I am his back up in these
days. Can you send me the test project? To get my actual email address,
please remove "online" from my display email.

Regards,

Luke Zhang
Microsoft Online Community Lead

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jun 21 '06 #7

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

Similar topics

2
by: Matthew Cascio | last post by:
My understanding is that using reserved words as column names is allowable as long as they are quoted. I am trying to create a table dynamically with columns defined by the first row of a text...
31
by: metaperl | last post by:
-- python -i File "<stdin>", line 1 class = "algebra" ^ SyntaxError: invalid syntax Why isn' t the parser smart enough to see that class followed by an identifier is used for class...
8
by: Tim H | last post by:
I know C's rules about reserved identifiers (anything starting with "_", leading "is", etc). I don't know C++ rules. I assume the same rules and more apply? I've seen several conventions for...
4
by: Bas Wassink | last post by:
Hello all, I've been wondering about struct member names and reserved identifiers for some time now and I can't figure out whether the reserved identifier restrictions apply to struct members. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.