473,327 Members | 2,012 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,327 software developers and data experts.

Non-stop Ascx Not Defined Error

Sept. 2, 2006

I have a web site which I've created many user controls for... I keep
getting ASP.[web user control name].ascx is not defined errors... no matter
what I do, I cannot figure out what is causing them.... what's worse, is if
I have one of these errors, then it spawns more errors for different user
controls and how I need to add a reference to a weird assembly name (just
random numbers/letters) and Global.asax.

Here's an example:
e:\inetpub\wwwroot\CactiDevelopers\Product Guides\Headlines.aspx.vb(49,0):
error BC30002: Type 'ASP.product_guides_displayentry_ascx' is not defined.

Any ideas? I absolutely am stuck and searches aren't pulling anything
helpful up.

Thanks!

--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Web Site/Blog: http://CactiDevelopers.ResDev.Net/
Sep 2 '06 #1
2 3435
Sept. 2, 2006

I have a confession.... it seems like everytime I post here after being
thoroughly frustrated with a problem.... I then solve it within the next few
minutes/hours.......... which is the case now.

When .Net 2.0 re-arranged where files are located (like in App_Code,
etc)... I couldn't at first find my ASCX classes in Intellisense. I finally
found them under ASP.[ascx name], and so I used that...... which was the
problem. When they are put under ASP, they are given this name format (or so
it appears): ASP_[foldername]_[controlname]_ascx...... I finally figured out
that the correct location of the classes is [foldername]_[controlname].....
which is under the same namespaces which are imported, just like refering to
any other class object you would normally. What confused me until now, was
that when you create an ASCX control, it makes the class name Not what you
created it as... but [foldername]_[controlname].

Now I've finally figured out why I couldn't cast my Master pages to the
correct type either.... I was using the master page class "copy" under ASP.
lol

Hopefully this helps someone else! :-)
--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Web Site/Blog: http://CactiDevelopers.ResDev.Net/

"Joseph Bittman MVP MCSD" <Ry*********@msn.comwrote in message
news:eQ*************@TK2MSFTNGP05.phx.gbl...
Sept. 2, 2006

I have a web site which I've created many user controls for... I keep
getting ASP.[web user control name].ascx is not defined errors... no
matter
what I do, I cannot figure out what is causing them.... what's worse, is
if
I have one of these errors, then it spawns more errors for different user
controls and how I need to add a reference to a weird assembly name (just
random numbers/letters) and Global.asax.

Here's an example:
e:\inetpub\wwwroot\CactiDevelopers\Product Guides\Headlines.aspx.vb(49,0):
error BC30002: Type 'ASP.product_guides_displayentry_ascx' is not defined.

Any ideas? I absolutely am stuck and searches aren't pulling anything
helpful up.

Thanks!

--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Web Site/Blog: http://CactiDevelopers.ResDev.Net/


Sep 2 '06 #2
Sept. 2, 2006

Nope not working now.... and also, if I have a variable representing the
usercontrol, if I try "[variable] = new usercontrolname".... then I get a
type cast exception as it couldn't be cast to "ASP.[...]"........

Anyone have ideas?

This just seems very weird.

--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Web Site/Blog: http://CactiDevelopers.ResDev.Net/

"Joseph Bittman MVP MCSD" <Ry*********@msn.comwrote in message
news:O%****************@TK2MSFTNGP02.phx.gbl...
Sept. 2, 2006

I have a confession.... it seems like everytime I post here after being
thoroughly frustrated with a problem.... I then solve it within the next
few minutes/hours.......... which is the case now.

When .Net 2.0 re-arranged where files are located (like in App_Code,
etc)... I couldn't at first find my ASCX classes in Intellisense. I
finally found them under ASP.[ascx name], and so I used that...... which
was the problem. When they are put under ASP, they are given this name
format (or so it appears): ASP_[foldername]_[controlname]_ascx...... I
finally figured out that the correct location of the classes is
[foldername]_[controlname]..... which is under the same namespaces which
are imported, just like refering to any other class object you would
normally. What confused me until now, was that when you create an ASCX
control, it makes the class name Not what you created it as... but
[foldername]_[controlname].

Now I've finally figured out why I couldn't cast my Master pages to the
correct type either.... I was using the master page class "copy" under
ASP. lol

Hopefully this helps someone else! :-)
--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Web Site/Blog: http://CactiDevelopers.ResDev.Net/

"Joseph Bittman MVP MCSD" <Ry*********@msn.comwrote in message
news:eQ*************@TK2MSFTNGP05.phx.gbl...
>Sept. 2, 2006

I have a web site which I've created many user controls for... I keep
getting ASP.[web user control name].ascx is not defined errors... no
matter
what I do, I cannot figure out what is causing them.... what's worse, is
if
I have one of these errors, then it spawns more errors for different user
controls and how I need to add a reference to a weird assembly name (just
random numbers/letters) and Global.asax.

Here's an example:
e:\inetpub\wwwroot\CactiDevelopers\Product
Guides\Headlines.aspx.vb(49,0):
error BC30002: Type 'ASP.product_guides_displayentry_ascx' is not
defined.

Any ideas? I absolutely am stuck and searches aren't pulling anything
helpful up.

Thanks!

--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Web Site/Blog: http://CactiDevelopers.ResDev.Net/



Sep 2 '06 #3

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

Similar topics

12
by: lothar | last post by:
re: 4.2.1 Regular Expression Syntax http://docs.python.org/lib/re-syntax.html *?, +?, ?? Adding "?" after the qualifier makes it perform the match in non-greedy or minimal fashion; as few...
5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
22
by: Steve - DND | last post by:
We're currently doing some tests to determine the performance of static vs non-static functions, and we're coming up with some odd(in our opinion) results. We used a very simple setup. One class...
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
11
by: ypjofficial | last post by:
Hello All, So far I have been reading that in case of a polymorphic class ( having at least one virtual function in it), the virtual function call get resolved at run time and during that the...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.