问题如下,帮帮忙。。Server Error in '/' Application.
--------------------------------------------------------------------------------Method not found: 'System.Decimal model.products.get_p_price()'. 
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.MissingMethodException: Method not found: 'System.Decimal model.products.get_p_price()'.Stack Trace: 
[MissingMethodException: Method not found: 'System.Decimal model.products.get_p_price()'.]
   DataConn.BIll.updateproduct(products p) in E:\Guitar2\Guitar\Guitar\Guitar1\DataConn\BILL.cs:563
   Bmanger_productUpdate.btnadd_Click(Object sender, EventArgs e) in e:\webnt12\g\guitarcenter.com.cn\www\Bmanger\productUpdate.aspx.cs:125
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5614 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 在本地iis运行正常,上传到虚拟空间后错误。
原来的属性变量的类型是Decimal,后来改为string。重新编译生成后上传model.dll 等相关文件,运行出错。
快愁死了。。 

解决方案 »

  1.   

    新的Model.dll里面该接口变了吧
      

  2.   

    好像是虚拟空间中继续在用旧的DLL导致的..楼主你将ASPX,DLL等文件一并上传后再试试。
      

  3.   

    btnadd_Click方法出错。检查代码看看,类型是否一致
      

  4.   

    protected void btnadd_Click(object sender, EventArgs e)  Click方法不都是这样的吗??
      

  5.   

    <configuration> 
    <system.web> 
    <customErrors mode="Off"/> 
    </system.web> 
    </configuration> 
     要使这个具体错误信息细节是看得见的在遥控器,请创造在位于当前Web应用程序的根目录的“web.config”配置文件之内的一个标记。 这个标记应该然后有它的“方式”属性被设置对" off "。
      

  6.   

     Method not found: 'System.Decimal model.products.get_p_price()没有找到方法get_p_price()
      

  7.   

    你去看看model.products
    里面肯定是没有get_p_price()这个方法,
    要不就是你引用的model.products.get_p_price()所在的dll的版本有问题,你要确定你引用的dll中有get_p_price()这个方法。你现在就应该是去看看Dll中是不是有这个方法,先彻底排除这一种可能,然后再慢慢找问题原因,不能在那里猜,看事实!
      

  8.   

    所有的DLL,包括前台页面,重新打包上传,是因为版本不统一问题
      

  9.   

    本地IIS是可以运行的,怎么会没有那个方法