0

今朝まで問題なく動いていたサイトがあります。今、私は

「オブジェクト ''、データベース ''、スキーマ 'dbo' に対する SELECT 権限が拒否されました。

エラー。問題は、メソッドが一部の DBML コードの一部であり、接続文字列が見つからないことです。

    [global::System.Data.Linq.Mapping.FunctionAttribute(Name="RAW.GetCustomers")]
    public ISingleResult<GetCustomersResult> GetCustomers()
    {
        IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
        return ((ISingleResult<GetCustomersResult>)(result.ReturnValue));
    }

これは、エラーの原因となっている生成された関数呼び出しです。データベースで権限が変更されたか、ログインが有効ではなくなったと想定する必要がありますが、このコードには接続情報が見つかりません。web.configにも何もありません。このすべての接続情報はどこにありますか? 私が持っているのは、呼び出される関数のリストを含む図だけです。エラーの原因となっているのは GetCustomers() 関数 (上記を参照) です。

これがweb.Configです。RawParts 接続文字列が表示されますが、問題の原因となっているデータベースへの接続文字列は表示されません (dynamics がその名前です)。

    <?xml version="1.0" encoding="UTF-8"?>

<configuration>
  <connectionStrings>
    <add name="MiscReportTablesConnectionString" connectionString="Data Source=pmfcgrb12;Initial Catalog=MiscReportTables;Persist Security Info=True;User ID=USERNAME;Password=PASSWORD"
      providerName="System.Data.SqlClient" />
  </connectionStrings>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />

    <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>

    <customErrors mode="Off"/>

  </system.web>

  <system.webServer>
     <modules runAllManagedModulesForAllRequests="true" />
        <defaultDocument>
            <files>
                <clear/>
                <add value="default.aspx"/>
            </files>
        </defaultDocument>
  </system.webServer>
</configuration>
4

1 に答える 1