none
iis8配置错误怎么解决??? RRS feed

答案

  • 你好楼主,

    从错误里看,sqlconnection不需要database等等,他需要的是Data SourceIntegrated Security关键字。楼主可以参考这个示例这里来配置你的数据库连接:

    <sessionState 
    
       mode="InProc" 
    
       stateConnectionString="tcpip=127.0.0.1:42424" 
    
       stateNetworkTimeout="10" 
    
       sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI" 
    
       sqlCommandTimeout="30" 
    
       customProvider="" 
    
       cookieless="UseCookies" 
    
       cookieName="ASP.NET_SessionId" 
    
       timeout="20" 
    
       allowCustomSqlDatabase="false" 
    
       regenerateExpiredSessionId="true" 
    
       partitionResolverType="" 
    
       useHostingIdentity="true">
    
       <providers>
    
          <clear />
    
       </providers>
    
    </sessionState>
    

    更详细的说明在这里可以看到:

    http://msdn.microsoft.com/en-us/library/h6bb9cz9(v=vs.85).aspx


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年3月26日 6:35
    版主