0

我已经尝试了很多在 iis 上托管应用程序我在 win xp 上托管在 iis 5.1 但问题相同它不登录只是显示登录页面之后我尝试在 IIS 7.5 win 7 上托管它它只是显示登录页面 i已根据它更改了其 Web 配置凭据,因为我正在使用 sql server 2008 R2 我已经根据它给出了连接字符串我在此处附加我的 Web 配置,显示环境 sqlserver 2008 R2、iis 7.5、win 7 请查看它并让我知道有没有错误,

<?xml version="1.0"?>

<configuration>
    <system.diagnostics>
        <sources>
            <source name="System.ServiceModel" switchValue="Error,ActivityTracing" propagateActivity="true">
                <listeners>
                    <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                        <filter type=""/>
                    </add>
                    <add name="ServiceModelTraceListener">
                        <filter type=""/>
                    </add>
                </listeners>
            </source>
        </sources>
        <sharedListeners>
            <add initializeData="F:\Work\08-14-09\Source\InspectionEvaluation\web_tracelog.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
                <filter type=""/>
            </add>
        </sharedListeners>
    </system.diagnostics>
    <appSettings/>
    <connectionStrings>
        <add name="Inspection" connectionString="Data Source=HASSANALI-PC\SQLEXPRESS;Database=Inspection;Integrated Security=SSPI; Persist Security Info=false; Trusted_Connection=Yes;Connect Timeout=30;" providerName="System.Data.SqlClient"/>
        <add name="InspectionDesign" connectionString="Data Source=HASSANALI-PC\SQLEXPRESS;Database=InspectionDesign;Integrated Security=SSPI;           Persist Security Info=false; Trusted_Connection=Yes;" providerName="System.Data.SqlClient"/>
        <add name="inspectionConStr" connectionString="Server=NY-IT-Tabish\LOCALDEV;Database=Inspectionp;User ID=sa;Password=capslock;Trusted_Connection=False;"/>
        <add name="InspectionEntities" connectionString="metadata=res://*/Inspection.csdl|res://*/Inspection.ssdl|res://*/Inspection.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=OFFICE-7398439B\SQLEXPRESS;Initial Catalog=Inspection;User ID=musewerx;Password=123456;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient"/>

    </connectionStrings>
    <system.web>

        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
                <add assembly="office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/></assemblies></compilation>

        <authentication mode="Windows"/>

        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>

    <system.serviceModel>
        <services/>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_ICIService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
                    <security mode="None">
                        <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
                        <message clientCredentialType="UserName" algorithmSuite="Default"/>
                    </security>
                </binding>
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:8731/InspectionServices/CI/" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICIService" contract="CIService.ICIService" name="BasicHttpBinding_ICIService"/>
        </client>
    </system.serviceModel>
</configuration>

希望您的建议谢谢

4

0 回答 0