نمایش نتایج 1 تا 5 از 5

نام تاپیک: سوال در مورد آپلود یک سایت

  1. #1

    سوال در مورد آپلود یک سایت

    سلام
    اول باید بگم که خیلی سایت خوبی دارید و مفید
    من یک قسمت نظر سنجی درست کردم دیتابیس sql 2005 و vb.net هم نوشته شده روی کامپیوتر دروست کار می کنه اما وقتی آپلود می شه وقتی باید یک نظر ثبت بشه مشکل زیر پیش می یاد

    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>

    من هیچ کاری به غیر از آپلود فایلهای درون پروژه به دا خل هاست انجام ندادم
    از این که هاست من sql ساپورت می کند هم شکی ندارم
    اگر امکان دارد من را راهنمایی کنید
    خدا نگهدار

  2. #2
    چون کاربر تازه واردی هستید پست رو حذف نکردم.
    در مورد این خطا قبلا گفته شده که مقدار خاصیت تگ customErrors رو برابر با Off قرار بدید تا علت اصلی بروز خطا مشخص بشه و سپس خطای اصلی رو در اینجا قرار بدید.
    در صورتی که با انجام این عمل همچنان همین خطا رو مشاهده می کنی، شانس دیگه ی تو هندل کردن خطا در روال Application_Error فایل Global.asax است.
    و در صورت عدم موفقیت، احتمالا نسخه ی Web App شما بر روی سرور بر روی دات نت 1.1 تنظیم شده و هاست باید اون رو بر روی دات نت 2.0 تنظیم کنه.

    موفق باشید.

  3. #3
    سلام
    مرسی که به من لطف دارید
    من این کاری که شما گفتید را نجام دادم و نتیجه این بود

    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    با سپاس خدا نگهدار

  4. #4
    سلام دوباره
    من دیتا بیسم را عوض کردم اکسسز 2003 گذاشتم اما بازم کار نمی کنه روی کامپیوتر درسته اما روی سرور پیام خطای زیر را میده!!

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    Security Exception
    Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Source Error:


    Line 7: Dim strcon2 As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\ASP.mdb;Persist Security Info=True"
    Line 8: Dim objcon2 As New OleDbConnection(strcon2)
    Line 9: objcon2.Open()
    Line 10: Dim selcou As String = "select * from Table2 where [Email] ='" & Trim(TextBox1.Text) & "'"
    Line 11: Dim objcom9 As New OleDbCommand(selcou, objcon2)

    اگه ممکنه راه نمایی بفرمایید
    خدا نگهدار

  5. #5
    در مورد خطای اول، مشکل از Connection String شماست که باید در این مورد از هاست کمک بخواید.
    در مورد خطای دوم، احتمالا مجوز دسترسی به درایور OLEDB رو نداری که در این مورد هم هاست باید به شما مجوز اعطا کنه.

    موفق باشید.

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •