我用VS2005开发一个项目,用MagicAjax 控件实现页面提交时不用刷新遇到一个问题,在我本地是好的,便发布到server后报错
报错信息如下:
Attempted to access a field that is not accessible by the caller. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FieldAccessException: Attempted to access a field that is not accessible by the caller.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
请问哪个老兄知道怎么回事???????????
我本地测试通过的

解决方案 »

  1.   

    你用ajax实现什么功能呢, 抱错是和操作文件有关的啊
      

  2.   

    我用的是MagicAjax控件,
    是为了DropDownList下拉的时候不刷新页面
      

  3.   

    把aspnet帐号加到administrators组,然后重启动iis admin服务,或者重启计算机。
      

  4.   

    只有用了ajax的页面才会报错,
    其他页面不会
      

  5.   

    没有注册他的dll或者没有安装它的必要项,可能如此~~~~~~~
      

  6.   

    难道没人用过MagicAjax这个控件吗???
      

  7.   

    不关 MagicAjax 的事。楼主你怎么都不看报错的信息呢?Attempted to access a field that is not accessible by the caller.调用者尝试访问一个不可访问的字段。
      

  8.   

    是没有权限访问数据库。你用的是 Access 数据库吧?试试 ahtya(流蕴) 的方法。
      

  9.   

    跟数据库没有关系,我把用到MagicAjax 的地方去掉(只是html去掉,cs文件不改)后不会报错了,但没有我想要的效果
      

  10.   

    是和MagicAjax相关的一个.JS文件没上传吧,我也是遇到类似问题,说是缺少这么个文件,没解决了,呵