DeveloperBarn Forums

Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

Discuss "ambiguous in the namespace 'ASP'" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Reply « Previous Thread | Next Thread »
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old May 30th, 2008, 04:11 PM
richyrich's Avatar
Moderator

 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 320
Thanks: 22
Thanked 23 Times in 23 Posts
Rep Power: 1
richyrich is on a distinguished road

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default

OK, I'm not going to start celebrating just yet, but I hope I may have worked out a solution to the ambiguous problem.

I was looking at my web.config to try and sort out the db connection problem when I spotted this:-
Code:
<pages>
    <controls>
        <add tagPrefix="atlas" namespace="System.Web.UI" assembly="System.Web.Extensions, ....... />
     </controls>
.
.
.
</pages>
This was added in when I created an Ajax Enabled website and uses the same namespace, System.Web.UI, that my other controls use. So, I thought this may cause a conflict with the other controls I added at the page level.

So, I've added references to all the controls I had in my web pages into the web.config and removed the Reference directives on all the pages. I had to put the user control files in a seperate folder, I just called this UserControls, then you add a reference for each control
Code:
<add tagPrefix="yourownprefix" tagName="yourtagname" src="~/UserControls/your_control.ascx" />
Fingers crossed, that might solve the problem, but will keep you posted...
Reply With Quote
Sponsored Links
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Tags
ambiguous, namespace

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
class name is ambiguous richyrich .Net Development 11 August 12th, 2008 11:11 AM


Sponsored Links

ASP.NET Resource Index
a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer.

Free Web Directory
Including Chats and Forums Resources, Offer automatic, instant and free directory submissions.
URLZ Web Directory
URLZ Web Directory

Free Web Directory - Add Your Link
The Little Web Directory
Free Web Directory
Pegasus free web directory is a free directory organised by categories.

Web Directory & SEO Services
dirroot web directory


All times are GMT -4. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 DeveloperBarn.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46