问题如下,帮帮忙。。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 等相关文件,运行出错。
快愁死了。。
--------------------------------------------------------------------------------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 等相关文件,运行出错。
快愁死了。。
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
要使这个具体错误信息细节是看得见的在遥控器,请创造在位于当前Web应用程序的根目录的“web.config”配置文件之内的一个标记。 这个标记应该然后有它的“方式”属性被设置对" off "。
里面肯定是没有get_p_price()这个方法,
要不就是你引用的model.products.get_p_price()所在的dll的版本有问题,你要确定你引用的dll中有get_p_price()这个方法。你现在就应该是去看看Dll中是不是有这个方法,先彻底排除这一种可能,然后再慢慢找问题原因,不能在那里猜,看事实!