2010年1月12日 星期二

The type '[class]' exists in both '[dll location]' and '[dll location 2]'

別急, 每當發生了這個問題,
原因幾乎都是同一個---
ASP.Net 專案中, 有二個不同的aspx.cs or aspx.vb 中, 卻有同樣的 class name,

A.aspx.cs:
public partial class A : System.Web.UI.UserControl
{
...
}

B.aspx.cs:
public partial class A : System.Web.UI.UserControl
{
...
}

大家Copy程式碼時, 要多加小心了~

2 則留言:

匿名 提到...

I don’t be aware the way i wound up right here,
however consider this post is unbelievable. My
partner and i don’t acknowledge what you are having said that surely you'll certainly be a renowned doodlekit, if you aren't by now.
My site : Genital Warts Remedy

匿名 提到...

I'd been just searching for this info for a time. Soon after Six hours involving constant Googleing, now I received the item in the website. I wonder what’s your Google’s trouble which doesn’t ranking such type of educational web sites more detailed the most notable. Most of the leading web pages usually are full of garbage. Specifically just lately, following the fresh panda algorithm criteria bring up to date.
My page Online Vehicle Insurance