PDA

View Full Version : مشکل در آپلود سایت(دیتا بیس !)



nader_hm2005
چهارشنبه 05 آبان 1389, 09:53 صبح
با سلام خدمت دوستان گل برنامه نویس
وب سایتی رو با ASP.net 2 نوشتم ، با این پیغام مواجه شدم ؛
Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

با پشتیبانی سایت تماس گرفتم ، طبق راهنمایی های پشتیبانی هاستینگ دو دیتابیس موجود را بر روی سایت ساختم به همراه یک لاگین ، از دیتا بیس خودم بک آپ گرفتم و دیتا بیس هاست را با این دیتا بیس ها ریستور کردم . کانکشن دبتا بیس ها در وب.کانفیگ موجود است به شرح زیر

<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Id=940_nader;Password=nader;User Instance=True;AttachDBFilename=|DataDirectory|940_ aspnetdb.mdf" />
<add name="Personal" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Id=940_nader;Password=nader;User Instance=True;AttachDBFilename=|DataDirectory|940_ Personal.mdf"
هر کاری لازم بوده کردم و واقعا راه دیگری به ذهنم نمی رسه . از طرفی از طرف کارفرما به شدت تحت فشارم .
نرم افزار روی هاست دات نت پنل هست .
لطفا به من کمک کنید ...

nader_hm2005
جمعه 07 آبان 1389, 20:48 عصر
واقعا مسخره بود !

<add name="LocalSqlServer" connectionString="server=207.158.5.39;database=940_ASPNETDB;uid=940_ NEW;pwd=nader;" providerName="System.Data.SqlClient"/>
<add name="Personal" connectionString="server=207.158.5.39;database=940_PERSONAL;uid=940_ NEW;pwd=nader;" providerName="System.Data.SqlClient"/>

باید به جای سورس توی کانکشن استرینگ آی پی دیتا بیس سرور را می نوشتم

leila_mahyanet
شنبه 08 آبان 1389, 10:04 صبح
ارور اول یه جورایی معنی اش اینه که خط <customErrors mode="Off"/> را به تگ <system.web> در وب کانفیگ اضافه کن (مثل کد بالا) تا نشون بده که خطا چیه .

مطمئن هستید که خطا مربوط به connectionString هست که اون رو تغییر دادید ؟