2012-11-30 155 views
0

我試圖用this Google Maps Control,但我不斷收到此錯誤:谷歌地圖控制ASP.NET

The base class includes the field 'GoogleMapForASPNet1', but its type 
(Vehicle_Tracking_System.GoogleMapForASPNet) is not compatible with the type of control 
(ASP.googlemapforaspnet_ascx). 
+1

準確地說,你是如何產生錯誤的?你能描述別人如何重現它嗎? – ghoti

+0

你想達到什麼? –

回答

0

注意,控制的CodeFile。 您可以檢查:

  • 它包含頁面也的CodeFile(或更改控件的源代碼隱藏到),如果您計劃在.aspx.cs使用它
  • ,您使用的指令< @Reference控制= 「...」
  • 如果您.aspx.cs是一個局部類,控制應該自動宣佈

希望這將幫助,

0

注意:確保System.Web.Extension庫的版本與添加引用時選擇的版本相同。

您正在添加「System.Web.Extensions,Version = 4.0.0.0」 並且該引用具有「System.Web.Extensions,Version = 1.0.61025.0」的示例。