简体   繁体   中英

Hosting WebSite in IIS 5.1

I have created a sample website . I am using Linq as Model. I am trying to host my website in IIS 5.1.But when i am trying to login (acceesing page via IIS 5.1) i am getting follwing error:

Cannot open database "WCF" requested by the login. The login failed.Login failed for user .

WCF is the name of the database. My authentication section web.config is

    <authentication mode="Forms">
        <forms loginUrl="Default2.aspx" timeout="2880" />
    </authentication>

Security and authentication setting which i have in IIS is 在此处输入图片说明

My connectionString is

    <connectionStrings>
    <add name="WCFConnectionString" connectionString="Data Source=localhost;Initial Catalog=WCF;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>

Any idea why is it happening? please help.

Does IUSR_ExXP have login rights to your database? When you use integrated security, it will use whatever account the IIS process is running as - which in this case seems to be IUSR_ExXP .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM