Welcome to Dream.In.Code
Become an Expert!

Join 149,778 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,652 people online right now. Registration is fast and FREE... Join Now!




Help... Ambiguous Error

 
Reply to this topicStart new topic

Help... Ambiguous Error

macker
6 Feb, 2007 - 07:24 AM
Post #1

New D.I.C Head
*

Joined: 2 Feb, 2007
Posts: 4



Thanked: 1 times
My Contributions
I have no idea what may cause this error I have been getting.

One time I build my website, it is ok, the next, it throws two or three errors, saying that BusinessAreaTemplate is Ambiguous.

What is "Ambiguous"

The error seems to be based in my VB code part of my site.

Any help would be great....I have included some code,
Really, I was just wondering if anyone had ran into this problem before.

Partial Class BusinessAreaTemplateConfirmation
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub




Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Public sourcePage As BusinessAreaTemplate

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

If Not Page.IsPostBack Then

'loginInfo = DirectCast(Session.Item(Constants.SessionLoginInfo), LoginInfo)

Dim loginInfo As New LoginInfo
Navigation.UserName = loginInfo.GetUserName

If Not loginInfo.IsUserAuthToViewPage(Request.Url.LocalPath) Then Response.Redirect("NotAuthorized.aspx")

sourcePage = DirectCast(Context.Handler, BusinessAreaTemplate)
Dim templateName As String = sourcePage.TemplateName
lblStatus.Text = String.Format("{0} saved to the database. Click <a href=BusinessAreaTemplate.aspx>here</a> to add new template.", templateName)

End If

End Sub

End Class
User is offlineProfile CardPM
+Quote Post

sontek
RE: Help... Ambiguous Error
18 Feb, 2007 - 12:47 PM
Post #2

D.I.C Regular
Group Icon

Joined: 13 Sep, 2001
Posts: 283



Thanked: 1 times
Dream Kudos: 85
My Contributions
Ambiguous means you have that class name defined in more than one of your referencing libraries
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 06:45AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month