本文介绍了得到此错误:来自HRESULT的异常:0xCA31801F cs2007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
'/'应用程序中的服务器错误。
HRESULT异常:0xCA31801F
描述: 在执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
例外详细信息: 系统.Runtime.InteropServices.COMException:来自HRESULT的异常:0xCA31801F
来源错误:
第122行:throw; 第123行:} 第124行:} 第125行: 第126行:public void Refresh() |
源文件: c:\Inetpub \wwwroot \ App_Code \Profiles \ProfileBase.cs 行: 124
堆栈跟踪:
[COMException(0xca31801f):来自HRESULT的异常:0xCA31801F] ADODB.Field.set_Value(Object pvar)+0 Microsoft.CommerceServer.Runtime.Profiles.ProfileProperty.set_Value(Object value)+801 [CommerceProfileSystemException:无法设置值profile属性'cc_number'。] Microsoft.CommerceServer.Runtime.Profiles.ProfileProperty.set_Value(Object value)+1136 CommerceSite.Profiles.ProfileBase.Update()in c:\Inetpub\wwwroot \ App_Code \Profiles \ProfileBase.cs:124 CommerceSite.BusinessObjects.CurrentUser.InsertCreditCard(CreditCardProfile creditCardProfile)位于c:\ Inetpub \wwwroot \ App_Code \ BusinessObjects \ CurrentUser.cs:177 [TargetInvocationException:抛出了异常通过调用的目标。] System.RuntimeMethodHandle.InvokeMethod(Object target,Object [] arguments,Signature sig,Boolean constructor)+0 System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化,Boolean skipVisibilityChecks)+289 System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)+38 System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod方法,Boolean disposeInstance,Object&实例)+1293 System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary values)+988 System.Web.UI.DataSourceView.Insert(IDictionary values,DataSourceViewOperationCallback callback)+3642205 Controls_PaymentManager.EditButton_Command(Object sender,CommandEventArgs e)位于c:\ Inetpub \wwwroot \Controls \ PaymentManager.ascx.cs:521 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e )+12296037 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+3804 |
Diegolo
解决方案
Server Error in '/' Application.
Exception from HRESULT: 0xCA31801F
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.Runtime.InteropServices.COMException: Exception from HRESULT: 0xCA31801F
Source Error: Line 122: throw;
Line 123: }
Line 124: }
Line 125:
Line 126: public void Refresh()
|
Source File: c:\Inetpub\wwwroot\App_Code\Profiles\ProfileBase.cs Line: 124
Stack Trace: [COMException (0xca31801f): Exception from HRESULT: 0xCA31801F]
ADODB.Field.set_Value(Object pvar) +0
Microsoft.CommerceServer.Runtime.Profiles.ProfileProperty.set_Value(Object value) +801
[CommerceProfileSystemException: Failed to set value for profile property 'cc_number'.]
Microsoft.CommerceServer.Runtime.Profiles.ProfileProperty.set_Value(Object value) +1136
CommerceSite.Profiles.ProfileBase.Update() in c:\Inetpub\wwwroot\App_Code\Profiles\ProfileBase.cs:124
CommerceSite.BusinessObjects.CurrentUser.InsertCreditCard(CreditCardProfile creditCardProfile) in c:\Inetpub\wwwroot\App_Code\BusinessObjects\CurrentUser.cs:177
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +289
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +1293
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary values) +988
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +3642205
Controls_PaymentManager.EditButton_Command(Object sender, CommandEventArgs e) in c:\Inetpub\wwwroot\Controls\PaymentManager.ascx.cs:521
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +12296037
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
|
Diegolo
解决方案
这篇关于得到此错误:来自HRESULT的异常:0xCA31801F cs2007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!