<customErrorReporting> عنصر (ClickOnce توزيع)

Specifies a URI إلى إظهار when an خطأ occurs.

<customErrorReporting
   uri
/>

ملاحظات

This عنصر هو اختياري. Without it, ClickOnce displays an خطأ حوار صندوق showing the ‏‏ استثناء مكدس. If the customErrorReporting عنصر هو موجود, ClickOnce will instead عرض the URI indicated بواسطة the uri معلمة. The الهدف URI will تضمين the outer ‏‏ استثناء فئة, the inner ‏‏ استثناء فئة, و the inner ‏‏ استثناء رسالة كـ معلمات.

استخدم this عنصر إلى إضافة خطأ التقارير functionality إلى your تطبيق. Since the generated URI يتضمن معلومات حول the نوع of خطأ, your ويب موقع can parse that معلومات و عرض, for مثال, an appropriate troubleshooting شاشة.

مثال

The following قصاصة shows the customErrorReporting عنصر, together مع the generated URI it might produce.

<customErrorReporting uri=https://www.contoso.com/applications/error.asp />

Example Generated Error:
https://www.contoso.com/applications/error.asp? outer=System.Deployment.Application.InvalidDeploymentException&&inner=System.Deployment.Application.InvalidDeploymentException&&msg=The%20application%20manifest%20is%20signed,%20but%20the%20deployment%20manifest%20is%20unsigned.%20Both%20manifests%20must%20be%20either%20signed%20or%20unsigned.

راجع أيضًا:

المرجع

ClickOnce Deployment Manifest