PDA

View Full Version : مشکل با persia.dll



khz-web1
شنبه 10 آذر 1386, 19:08 عصر
با سلام خدمت دوستان عزیز
من برای چاپ تاریخ از persia.dll استفاده می کنم .....

و از کد زیر جهت چاپ تاریخ استفاده می کنم



Label1.Text = Str(Persia.Calendar.ConvertToPersian(DateTime.Now) )


ولی متاسفانه به من ارور میده


The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:

[InvalidCastException: Argument 'Number' cannot be converted to a numeric value.] Microsoft.VisualBasic.Conversion.Str(Object Number) +541 _Default.Page_Load(Object sender, EventArgs e) +48 System.Web.UI.Control.OnLoad(EventArgs e) +80 System.Web.UI.Control.LoadRecursive() +49 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3743

jasadeghi
شنبه 10 آذر 1386, 20:56 عصر
دروود به شما

فکر می کنم جواب شما اینجا باشه.

http://barnamenevis.org/forum/showthread.php?t=77823

با آرزوی بهروزی برای شما

rtech
شنبه 10 آذر 1386, 23:43 عصر
از این فایل راهنمای Persia.dll استفاده کنید

khz-web1
یک شنبه 11 آذر 1386, 01:43 صبح
این فایل رو دانلود کردم ولی به زبان C هستش

من وی بی می خوام

shahab_ksh
یک شنبه 11 آذر 1386, 14:41 عصر
اینطوری مشکلت حل میشه




Dim sunDate As Persia.SunDate
sunDate = Persia.Calendar.ConvertToPersian(DateTime.Now)
Label1.Text = sunDate.Persian

khz-web1
یک شنبه 11 آذر 1386, 15:05 عصر
سلام

آقای shahab_ksh (http://barnamenevis.org/forum/member.php?u=24304) واقعا ازت ممنون هستم ......... روی دکمه ی تشکر هم زدم

موفق باشید

AMIRSAYAH
شنبه 28 اردیبهشت 1387, 16:28 عصر
سلام لطفا" بگویید چگونه در بر نامه بعد از دانلود persiaاستفاده کنم

hesam_a110
یک شنبه 29 اردیبهشت 1387, 15:12 عصر
دردود بر شما
به Reference اضافه کنید و بعد هم مابقی ماجرا یا فقط در شاخه bin کپی کنید

پیروز و نیک باشید