Jeremy Wadsworth
My Contribution to the ASP.NET Community


Welcome   
Welcome to my personal website. Here you will find blog posts related to web development as well as personal related interests. If you're here for the source code to my Personal Web Site Kit, please register and you'll receive an email when your account has been approved.


Latest Blog Entries

 Thursday, August 28, 2008


Compiler Error Message: BC30560: 'Login_ascx' is ambiguous in the namespace 'ASP'    

I've been getting this error intermittently for a while now and finally got tired of seeing it, so I started looking for causes and solutions. The exact error I was getting is shown below. Note that it could appear with the same error 'BC30560', but have a different class name and different namespace.

Compiler Error Message: BC30560: 'Login_ascx' is ambiguous in the namespace 'ASP'

I couldn't really find a clear answer as it seems it can be caused by different scenarios, some of which may be a result of a bug in the framework. In my case it was a simple fix, although I don't know why this fixed it.

I had a page named Login.aspx and a User Control that resided on that page named Login.ascx. Why did I do it this way? Because I used the Login.aspx page as the primary login page, but there were other scenarios where I wanted to show a login without redirecting to the login page. So I created a User Control that I could put anywhere I wanted.

It seems as though there is a bug in the asp.net framework since my page and my control have different file extensions and different class names. Yet as soon as I changed my User Control to be named LoginCtrl.ascx, the error stopped appearing.



jeremy at 3:36 PM | (64) Comments | Add a comment | Permalink





Commments
tony said...

wots tht in english

Saturday, October 18, 2008 5:10 AM

JJ said...

Deleted C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files on the server. I get lazy and just roll files out whenever there's a change. I do not deploy nor pre-compile, build, etc., I had an ascx file that I just added some script to, and got same error. Also the ascx had the same name as an aspx, so maybe this was part of the problem, still, clearing temp files worked.

Sunday, November 02, 2008 10:41 PM

jeremy said...

JJ, Thanks for you input.

Saturday, December 20, 2008 12:53 PM

Adobe Business Catalyst said...

wohoo this solved my problem! thanks

Wednesday, February 10, 2010 2:07 AM

1 oz silver said...

It does solved the problem but the bug is still there in the latest version.

Sunday, April 25, 2010 9:50 PM

Hire Dedicated full time asp.net Web developer said...

Nice suggestion.....thanks

Tuesday, May 04, 2010 10:39 PM

Dining Room Furniture said...

the same problem, it was caused by the existence of both a .ascx and a .aspx file with the same name in the same program. If you change a page from a page to a includable page and ccs does not remove the created page by itself. You have to look in your filesystem and delete the old files yourself.

Monday, June 07, 2010 4:18 AM

Agile Informatics Nishu said...

The reason why the problem ocassionaly occurs is that batch compile is not always using the same strategy to group page or usercontrol together, for most time, the two problem items may not be compiled into the same assmebly, then no error will occur......................

Monday, June 07, 2010 5:53 AM

kuber infotek dinesh gupta said...

the duplicated name here may also be caused by two page/user control in differetn folder hierarchy that have the same file name. ASP.NET use dynamic compilation and will batch compile multiple page/ascx controls by default. When you haven't explicitly specify a ClassName( in the directive), if will generate dynamic class depend on file name.

Monday, June 07, 2010 9:13 AM

classifieds mumbai said...

I am getting this error when i try to access a particular page on my site, the site was working perfectly until i edited some code which was nothing to do with the user control, and not even on the same page as the control is on. I have looked on the net about this and tried the various things that have been mentioned but nothing works.

Wednesday, June 09, 2010 3:09 AM

indian classified websites said...

The Web Services supplied by Reporting Services provide an interface in the reporting engine to gain access to the reports and the report inner workings. By interfacing to the Reporting Services Web Services we can extract the available reports that have been loaded on to the Reporting Services Server.

Wednesday, June 09, 2010 3:33 AM

classifieds india said...

This error is usually reporting that there are some pages or usercontrols that have the same name in the generated assemblies since ASP.NET use a dynamic compilation model. For example, you may contains a usercontrol and a web page and they have the same name.

Friday, June 11, 2010 7:07 AM

LAX Limousine Service said...

One thing that is very wierd about it all, is that the code works perfectly fine on my laptop, and even on the other developers laptops, but only on this one box, which is running Windows Server 2003, is it appearing.

Saturday, June 26, 2010 6:25 AM

Tiffany jewellery said...

By interfacing to the Reporting Services Web Services we can extract the available reports that have been loaded on to the Reporting Services Server.

Friday, July 16, 2010 9:03 PM

medical tourism said...

It is really a nice suggestion.thank you very much for the nice informative post

Monday, July 19, 2010 6:54 AM

Cheap spy gadgets said...

Your blog provides us a very great information. Its really very helpful to me to find result on search engine. Hope to hear more good information related to searching from your side.

Tuesday, July 20, 2010 7:10 AM

flex chat said...

http://blog.handyracing.com/2010/01/01/addictive-motor-sports-raceway-in-grand-blanc.aspx

Thursday, July 22, 2010 5:07 AM

business goals said...

good tips, thanks for share man.

Saturday, July 24, 2010 3:12 AM

Cialis said...

ASP.NET use dynamic compilation and will batch compile multiple page/ascx controls by default. When you haven't explicitly specify a ClassName( in the directive), if will generate dynamic class depend on file name.

Sunday, July 25, 2010 6:42 AM

Budget Travel Blog said...

I have looked on the net about this and tried the various things that have been mentioned but nothing works.

Monday, July 26, 2010 8:02 AM

cheap mbt shoes said...

good

Friday, July 30, 2010 2:26 AM

five finger shoes said...

THANK YOU SO MUCH

Friday, July 30, 2010 4:12 AM

buy xbox live online said...

This was a useful post and I think it is rather easy to see from the other comments as well that this post is well written and useful. I bookmarked this blog a while ago because of the useful content and I am never being disappointed. Keep up the good work

Friday, August 06, 2010 9:10 AM

WoW Accounts said...

Nice blogs thank you for shairng, I just bookmark this articles from my further reference

Monday, August 09, 2010 2:46 AM

WoW Accounts said...

Nice blogs thank you for shairng, I just bookmark this articles from my further reference

Monday, August 09, 2010 2:47 AM

WoW Accounts said...

Nice blogs thank you for shairng, I just bookmark this articles from my further reference

Monday, August 09, 2010 2:49 AM

WoW Accounts said...

Nice blogs thank you for shairng, I just bookmark this articles from my further reference

Monday, August 09, 2010 2:51 AM

WoW Accounts said...

Nice blogs thank you for shairng, I just bookmark this articles from my further reference

Monday, August 09, 2010 2:52 AM

5s red tags said...

For example, you may contains a usercontrol and a web page and they have the same name...

Monday, August 09, 2010 8:13 AM

simulation assurance auto said...

I always like your blog post because you always comes with different ideas and information. I always shared your site post with my friends. Keep posting and i will follow you..

Thursday, August 12, 2010 11:40 PM

auto carriers said...

Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay abreast of any updates. Pleasant work and much success in your business efforts!

Saturday, August 14, 2010 6:06 AM

Manolo Blahnik Shoes said...

I love your blog. Maybe you could let me know how I can subscribing with it?

Sunday, August 15, 2010 1:10 AM

Yeast Infection said...

Well written blog , good information. i am a web optimizer not a web developer but i have basic knowledge about ASP and PHP language.

Sunday, August 15, 2010 3:15 AM

cheap iphone said...

Great post. nicely done.

Sunday, August 15, 2010 3:53 AM

ugg boots said...

Delightful work and much success in your business endeavors! Have a nice day

Monday, August 16, 2010 2:06 AM

hair straighteners said...

good

Monday, August 16, 2010 2:07 AM

NFL jerseys said...

fashion

Monday, August 16, 2010 2:08 AM

five finger shoes said...

Have a nice day

Monday, August 16, 2010 2:10 AM

Christian Louboutin said...

dfsaff

Monday, August 16, 2010 2:11 AM

accessorize said...

ssfs

Monday, August 16, 2010 2:11 AM

6S said...

I will directly grab your rss feed to stay abreast of any updates. Pleasant work and much success in your business efforts!

Monday, August 16, 2010 11:40 AM

mph said...

Information like the one you mentioned here will be very useful to me!.I love books and used to visit bookshops regularly.I just visit your blog.The articles are quite good and I have already used to visit this site regularly.A nice one...

Wednesday, August 18, 2010 10:37 PM

lalique said...

veyr interesting.

Tuesday, August 24, 2010 8:10 PM

Lalique said...

Nice.

Tuesday, August 24, 2010 8:11 PM

ffxivgil said...

<a href="http://www.gamevive.com/ffxiv-gil.php">cheap ff14 gil</a> <a href="http://www.gamevive.com/ffxiv-cdkey.php">final fantasy xiv cd key</a> <a href="http://www.gamevive.com/ffxiv-cdkey.php">ff14 time card</a> <a href="http://www.gamevive.com/ffxiv-account.php">final fantasy xiv account</a>

Wednesday, August 25, 2010 5:23 AM

ffxivgil said...

[url=http://www.gamevive.com/ffxiv-gil.php]cheap ffxiv gil[/url] [url=http://www.gamevive.com/ffxiv-cdkey.php]cheap ffxiv time card[/url] [url=http://www.gamevive.com/ffxiv-account.php]ffxiv account[/url] [url=http://www.gamevive.com/ffxiv-power-leveling.php]ffxiv power leveling[/url] [url=http://www.gamevive.com/ffxiv-cdkey.php]ffxiv cd key[/url]

Wednesday, August 25, 2010 5:24 AM

jeans lydcc said...

There's no waver about it, this is the promote of the metro-sexual.<a href="http://www.nike-basketball-shoes.org">cheap nike</a>,<a href="http://www.calvin-kleinjeans.org">jeans calvin klein</a>Looking opportune has never been wherefore important to men of all ages. <a href="http://www.replica-louis-vuitton-handbags.org">louis vuitton handbag</a>,<a href="http://www.gucci-sneakers.org">gucci sneaker</a> ,<a href="http://www.ed-hardy-shoes.com">ed hardy men's shoes</a>With an abundance of rich leather, these premium Del Mar flip-flops by Ocean Minded will wrap your feet in comfort and sophisticated style.<a href="http://www.nikeairmax2009.net">nike air max 2009</a>, <a href="http://www.p90x-dvds.org">p90x cheap</a> Designed to be carried over the shoulder with adjustable straps, this bag features two 21-inch handles with buckles. <a href="http://www.hugobossjeans.org">hugo boss jeans</a>, <a href="http://www.ugg-classic-short-boots.org">ugg short</a>,<a href="http://www.mac-cosmetics-outlet.org">mac cosmetics outlet</a>Armani, Gucci, Hugo Boss and Calvin Klein are just some of the famously well intimate men's designers.<a href="http://www.discount-coach-handbags.org">coach handbag</a>,<a href="http://www.jimmychoo-shoes.org">jimmy shoe</a>,<a href="http://www.ghd-flat-irons.org">ghd iron</a>The snap closure makes opening and closing hassle-free. <a href="http://www.uggs-boots-onsale.com">ugg boots on sale</a>, <a href="http://www.burberry-outlet.org">burberry outlets</a>,<a href="http://www.replica-cheap-designer-bags.org">cheap designer bags</a>sire designers are ballot up on this trend and wily more and further collections for men several. <a href="http://www.discount-mac-cosmetics.org">discount mac cosmetics</a>,<a href="http://www.true-religion-jeans-onsale.org">true religion outlet</a>convenience you could want from your tote.<a href="http://www.ed-hardy-jeans.net">ed hardy outlet</a>,<a href="http://www.ugg-bailey-boots.org">ugg bailey</a>Distinguishing itself from the entire knock-offs doing the rounds, this classy Italian-made tote comes with the Prada card of authenticity.<a href="http://www.christian-louboutin-boots.org">christian louboutin boots</a>,<a href="http://www.cheap-coach-purses.com">coach purse</a>,<a href="http://www.replica-chanel-handbags.org">chanel handbag</a>The upper is built with a lightweight outsole.<a href="http://www.adidas-shoes-men.com">adidas shoes men</a> But not everyone can minister designer clothes, what's a man on a modest issue to dispatch when he needs clothes? <a href="http://www.timberland-mens-shoes.com">shoes timberland</a>, <a href="http://www.womens-mbt-shoes.com">mbt womens shoes</a>,<a href="http://www.giuseppe-zanotti-shoes.org">giuseppe zanotti shoes</a>The slip on design provides the much needed traction to prevent slipping. <a href="http://www.womens-ugg-boots.net">womens ugg boots</a>,<a href="http://www.ghd-iv-styler.org">ghd styler</a>,<a href="http://www.discount-gucci-bags.org">gucci bag</a>Shopping around isn't really an alternative when you ambience fancy clothes shopping is the boisterous simulacrum of a dental visit.

Thursday, August 26, 2010 2:35 AM

discount mac cosmetics said...

There's no waver about it, this is the promote of the metro-sexual.[url=http://www.nike-basketball-shoes.org]cheap nike[/url],[url=http://www.calvin-kleinjeans.org]jeans calvin klein[/url]Looking opportune has never been wherefore important to men of all ages. [url=http://www.replica-louis-vuitton-handbags.org]louis vuitton handbag[/url],[url=http://www.gucci-sneakers.org]gucci sneaker[/url] ,[url=http://www.ed-hardy-shoes.com]ed hardy men's shoes[/url]With an abundance of rich leather, these premium Del Mar flip-flops by Ocean Minded will wrap your feet in comfort and sophisticated style.[url=http://www.nikeairmax2009.net]nike air max 2009[/url], [url=http://www.p90x-dvds.org]p90x cheap[/url] Designed to be carried over the shoulder with adjustable straps, this bag features two 21-inch handles with buckles. [url=http://www.hugobossjeans.org]hugo boss jeans[/url], [url=http://www.ugg-classic-short-boots.org]ugg short[/url],[url=http://www.mac-cosmetics-outlet.org]mac cosmetics outlet[/url]Armani, Gucci, Hugo Boss and Calvin Klein are just some of the famously well intimate men's designers.[url=http://www.discount-coach-handbags.org]coach handbag[/url],[url=http://www.jimmychoo-shoes.org]jimmy shoe[/url],[url=http://www.ghd-flat-irons.org]ghd iron[/url]The snap closure makes opening and closing hassle-free. [url=http://www.uggs-boots-onsale.com]ugg boots on sale[/url], [url=http://www.burberry-outlet.org]burberry outlets[/url],[url=http://www.replica-cheap-designer-bags.org]cheap designer bags[/url]sire designers are ballot up on this trend and wily more and further collections for men several. [url=http://www.discount-mac-cosmetics.org]discount mac cosmetics[/url],[url=http://www.true-religion-jeans-onsale.org]true religion outlet[/url]convenience you could want from your tote.[url=http://www.ed-hardy-jeans.net]ed hardy outlet[/url],[url=http://www.ugg-bailey-boots.org]ugg bailey[/url]Distinguishing itself from the entire knock-offs doing the rounds, this classy Italian-made tote comes with the Prada card of authenticity.[url=http://www.christian-louboutin-boots.org]christian louboutin boots[/url],[url=http://www.cheap-coach-purses.com]coach purse[/url],[url=http://www.replica-chanel-handbags.org]chanel handbag[/url]The upper is built with a lightweight outsole.[url=http://www.adidas-shoes-men.com]adidas shoes men[/url] But not everyone can minister designer clothes, what's a man on a modest issue to dispatch when he needs clothes? [url=http://www.timberland-mens-shoes.com]shoes timberland[/url], [url=http://www.womens-mbt-shoes.com]mbt womens shoes[/url],[url=http://www.giuseppe-zanotti-shoes.org]giuseppe zanotti shoes[/url]The slip on design provides the much needed traction to prevent slipping. [url=http://www.womens-ugg-boots.net]womens ugg boots[/url],[url=http://www.ghd-iv-styler.org]ghd styler[/url],[url=http://www.discount-gucci-bags.org]gucci bag[/url]Shopping around isn't really an alternative when you ambience fancy clothes shopping is the boisterous simulacrum of a dental visit.

Thursday, August 26, 2010 2:35 AM

buy ffxiv gold said...

<a href="http://www.ffxivgil.co.uk/">buy ffxiv gold</a>

Thursday, August 26, 2010 4:31 AM

ffxiv gil said...

<a href="http://www.uff14gil.com/">ffxiv gil</a>

Thursday, August 26, 2010 4:34 AM

ffxiv gil said...

<a href="http://www.uff14gil.com/">ffxiv gil</a>

Thursday, August 26, 2010 4:34 AM

ffxiv gil said...

<a href="http://www.uff14gil.com/">ffxiv gil</a>

Thursday, August 26, 2010 4:34 AM

phentermine 37.5 said...

great blog this will enhance the reader.very informative articles. thanks for sharing.

Friday, August 27, 2010 1:35 AM

best british online casinos said...

I was wondering about it and searching for a info like this so many thanks to you for providing me this great post.

Saturday, August 28, 2010 7:21 AM

bestes Casino said...

I’ve recently been using C# Generics quite a bit, and loving every single second of it. Recently, I’ve made a personal discovery on the use of Interfaces.

Saturday, August 28, 2010 7:50 AM

hoodia appetite suppressant said...

I will directly grab your rss feed to stay abreast of any updates. Pleasant work and much success in your business efforts!Thanks

Wednesday, September 01, 2010 3:21 PM

Pup dog training said...

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

Friday, September 03, 2010 6:24 AM

gold chains said...

I’ve recently been using C# Generics quite a bit, and loving every single second of it. Recently, I’ve made a personal discovery on the use of Interfaces.

Saturday, September 04, 2010 3:11 AM

tech blog said...

Well written blog , good information. i am a web optimizer not a web developer but i have basic knowledge about ASP and PHP language.

Saturday, September 04, 2010 7:45 AM

Acheter Cialis said...

with the help of latest ASP.net frame work you can resolve your problem. this blog posts are very informative. thanks.

Monday, September 06, 2010 2:21 AM

cheap jersey boys tickets said...

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. Thanks for sharing. Keep posting like this.

Monday, September 06, 2010 4:50 AM

sana lee said...

I admit, I have not been on this webpage in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues.

Monday, September 06, 2010 5:59 AM

fico score said...

I am getting this error when i try to access a particular page on my site, the site was working perfectly until i edited some code which was nothing to do with the user control, and not even on the same page as the control is on. I have looked on the net about this and tried the various things that have been mentioned but nothing works.

Tuesday, September 07, 2010 2:38 AM

legitimate online degree programs said...

As a Newbie, I am always searching online for articles that can help me. Thank you

Wednesday, September 08, 2010 9:47 AM

  Leave a comment

Enter Your Name:
 
Enter your website
Security code from image below:  
Need Custom Controls Work or Training?
   


Join WebHost4Life.com






If you would like to help support this project, please click the button below to make a small donation.