مشکل وب کانفیگ در سرور DotNetPanel

bahar_aa

New Member
سلام
من نمیتونم سایتم رو در سرور ببینم و مشکل در فایل وب کانفیگم هست.اما نمیتونم مشکل رو پیداکنم.کل وب کانفیگم رو در زیر قرار دادم.تمامی تنظیمات و عملیات رو هم در هاست انجام دادم(از جمله قرار دادن دیتابیس ، تطبیق ورژن دات نت و ...)
با وجود اینکه custom errore من off هست اما بازهم من ارور 500 میبینم و نمیتونم بفهمم که مشکل دقیقا از کدوم قسمته
از security استفاده نمیکنم.با کنترلهای wat کار نکردم.(اول استفاده کردم اما الان چون نسخه باید آزمایش بره بالا تمام security رو برداشتم)فعلا هیچ سطح دسترسی هم ندارم.آدرس صفحه دیفالتم در یک فولدر مشخص شده که اونرو در <defaultDocument> ست کردم.هر چی به ذهنم رسیده انجام دادم اما بازهم مشکل دارم
دیتابیس من express و در پوشه App_Data قرار دارد.دات نت فریمورکم هم نسخه 4 هست.پنلم هم DotNetPanel هست.
از دوستان که در این زمینه دانشی دارند درخواست کمک دارم.ممنون

کد:
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
    <connectionStrings>
    <add name="connection" connectionString="Server=something;Database=DBname;Uid=username;Password=password;" />
    <add name="ConnectionString" connectionString="Server=something;Database=DBname;Uid=username;Password=password;" />
  </connectionStrings>
  <system.web>
 <customErrors mode="Off"/>
    <compilation debug="true" targetFramework="4.0"/>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
    </authentication>
    <membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
      </providers>
    </membership>
    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
      </providers>
    </roleManager>
    <httpHandlers>
      <add verb="*" type="ComponentArt.Web.UI.UploadProgressHandler, ComponentArt.Web.UI" path="ComponentArtUploadProgress.axd"/>
    </httpHandlers>
    <httpModules>
      <add type="ComponentArt.Web.UI.UploadModule, ComponentArt.Web.UI" name="ComponentArtUploadModule"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="~/Pages/Page_Home.aspx" />
      </files>
    </defaultDocument>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147482624"/>
        <!--this value in bytes~2GB-->
      </requestFiltering>
    </security>
    <modules runAllManagedModulesForAllRequests="true"/>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules></modules>
    <handlers></handlers>
  </system.webServer>
</configuration>
 
آخرین ویرایش:

nokian95

New Member
سلام
من خودم هم 1 ماهی میشه همین مشکل رو دارم و دوستان گفتند که اشکال ازمتد Connection Strings می باشد
شما شاید با تغییرات این کد بتوانید مشکل خود را حل نمایید

کد:
connectionString="Data Source=64.85.163.151\SQLEXPRESS;Initial Catalog=YOUR_DB;Persist Security Info=True;User ID=USER;Password=PASSWORD"

کد:
connectionString="Data Source=.\SQLExpress;Initial Catalog=YOUR_DB;uid=USER;pwd=PASSWORD[/
CODE]

[CODE]connectionString="Data Source=WIN2008\SQLEXPRESS;Initial Catalog=YOURDB;Persist Security Info=True;Integrated Security=True;User ID=USER;Password=PASSWORD"

کد:
connectionString="Integrated Security=true; Persist Security Info=False; User ID=USER; password=PASSWORD; Initial Catalog=YOUR_DB;Data Source=WIN2008\SQLEXPRESS;"
 

جدیدترین ارسال ها

بالا