Connection String Problem

آواتار علی فامیل روحانی
Connection String Problem
توسط   علی فامیل روحانی   ۵۹۹۳ روز قبل

salam rofagha man ye host va domain be hamrahe db az radcom gereftam moshkeli ke daram hich kodum az safahatam ro neshun nemide hata safahate sade ke az db chizi ro nemikhunan bache haye poshtibani behem goftan irad az connection stringame inam connection stringam age irad dare lotfan ye connection stringe dorost midid mamnun az hamkaritoon.

  <?xml version="1.0" ?>
- <!--
 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
  -->
- <configuration>
- <appSettings>
  <add key="ConnectionString" value="packet size=4096;integrated security=SSPI;data source=localhost;persist security info=False;initial catalog=MydbName;user id=MyUserName;password=MyPassword" />
  </appSettings>
  <connectionStrings />
- <system.web>
- <!--
 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        
  -->
  <compilation debug="false" />
- <!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        
  -->
  <authentication mode="Windows" />
- <!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.
         
  -->
- <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
  <error statusCode="403" redirect="NoAccess.htm" />
  <error statusCode="404" redirect="FileNotFound.htm" />
  </customErrors>
  </system.web>
  </configuration>

 

آواتار رادکام ادمین
توسط   رادکام ادمین   ۵۹۹۳ روز قبل
- <configuration>
- <appSettings>
  <add key="ConnectionString" value="packet size=4096;integrated security=SSPI;data source=localhost;persist security info=False;initial catalog=MydbName;user id=MyUserName;password=MyPassword" />
  </appSettings>
  <connectionStrings />
- <system.web>
با توجه به اینکه در appsettings  پپیش از این connectionstring تعریف کرده اید باید بخش علامت زده شده را حذف کنید. وگرنه بعلا خطا در web.config سایت بالا نمی آید