PDA

View Full Version : پیغام خطای Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.



omid6630
سه شنبه 07 تیر 1390, 19:46 عصر
وقتی میخوام روی سیستم دیگه ای که سایت نصب شده ، Login کنم ، این خطا رو میده .


سایت بالا میاد . فقط موقع login کردن این خطا رو میده ... چطوری برطرفش کنم .





Server Error in '/' Application.

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\ASP.NET v4.0

omid6630
شنبه 11 تیر 1390, 11:42 صبح
خیلی درباره این موضوع گشتم ، چیزی پیدا نکردم !!!

اگر کسی اطلاعاتی داره ، اعلام کنه !

omid6630
شنبه 11 تیر 1390, 12:17 عصر
برای درک بهتر این موضوع فایل xml رو گذاشتم .


<?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/>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=;Initial Catalog=Web;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" connectionStringName="Paygah_WebConnectionString" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear/>
<add connectionStringName="ConnectionString" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</roleManager>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Forms"/>
<!--
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="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<httpModules>
<add type="DevExpress.Web.ASPxClasses.ASPxHttpHandlerModule, DevExpress.Web.v9.3, Version=9.3.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule"/>
</httpModules>
<compilation debug="true" targetFramework="4.0">
<assemblies>

<add assembly="WindowsFormsIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
</configuration>

omid6630
شنبه 11 تیر 1390, 14:14 عصر
این هم کد Page Load


protected void Page_Load(object sender, EventArgs e)
{
if (Page.User.Identity.IsAuthenticated)
{
if (Roles.IsUserInRole("Admin"))
{

admin_bindgrid();

}}

raziee
شنبه 11 تیر 1390, 17:40 عصر
در SQL Server یک User تعریف کنید.
و سپس User تعریف شده رو به دیتابیستون assign کنید.
و حالا به جای Integrated Security=True از UserName و Password استفاده کنید.

hamed_naghdi
سه شنبه 29 بهمن 1392, 10:50 صبح
به لینک زیر برو ، کار من رو که راه انداخت
http://ab1group.mihanblog.com/post/comment/new/63/fromtype/postone/fid/13927106835303141b3b7c2/atrty/1392710683/avrvy/0/key/deecf721dd708b1a9d1ac47a71510fd7/#post_form