Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于ASP.NET的Google地图控件_Asp.net_Google Maps - Fatal编程技术网

用于ASP.NET的Google地图控件

用于ASP.NET的Google地图控件,asp.net,google-maps,Asp.net,Google Maps,我尝试使用,但不断出现以下错误: 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). 请注意,控件是codefile。 您可以检查: 它的包含页面也是codefile(或

我尝试使用,但不断出现以下错误:

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).

请注意,控件是codefile。 您可以检查:

  • 它的包含页面也是codefile(或将控件的源代码更改为codebehind)

  • 如果您计划在.aspx.cs中使用它,请使用指令这是一个更好的用户控件,

    注意:确保System.Web.Extension库的版本与添加引用时选择的版本相同

    添加“System.Web.Extensions,Version=4.0.0.0”的示例
    引用中有“System.Web.Extensions,Version=1.0.61025.0”。

    到底是什么导致了错误?你能描述一下其他人是如何复制它的吗?你想实现什么?他在问题中说他正在使用那个控制。