PDA

View Full Version : sqlexpress یا ...



***UNIQUE***
پنج شنبه 24 بهمن 1387, 23:59 عصر
سلام
خسته نباشید
من یه Database با SQL2000 داشتم و User ها توی Sqlexpress vs 2005 تعریف شده بود وقتی روی هاست بردم مشکل پیدا کرد با کلی دردسر و سرچ رو اینترنت مشکل خطاها حل شد اما حالا اصلا" نمیدونم مشکل کجاس که وقتی به آدرس سایت میرم نمیتونم با User ها لاگین کنم در صورتیکه وقتی روی Local هستم و حتی ASPnetdb رو هم Delete کردم و به بانک روی هاست وصل میشم مشکلی نداره و روی Local لاگین میکنه (البته از وقتی SQLExpress رو از سیستمم عدهسفشمم کردم دیگه local رو هم کانکت نمیکنه) در صورتیکه من آدرسی که تو conectionstring دادم برای سرور و اصلا" ربطی به local نداره و وقتی توی ASp.net configuration هم user میساختم ، مستقیم روی بانکم روثی هاست ذخیره میشد اما نمیتونستم روی سایتم باهاش لاگین شم
من نمیدونم مشکل از کجاست برای همین نتونستم عنوان خوبی هم برای سوالم انتخاب کنم
لطفا" راهنمایی کنید
هاست از SQLServer2005 , 2000 پشتیبانی میکنه

***UNIQUE***
جمعه 25 بهمن 1387, 18:04 عصر
سلام
ممنون از راهنماییتون
من کل Database را به 2005 انتقال دادم و فایل Webconfig رو هم

<?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 xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<!--<clear/>-->
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=sql2.moallem.org,1433;Integrated Security=false;Initial Catalog=testformoallem;User ID=moallem.org;Password=administrator"
providerName="System.Data.SqlClient" />
<!--
<add name="TestForLocalSqlServer" connectionString="Data Source=HOME-A3242AABA5;Initial Catalog=TestForMoallem;Integrated Security=True"
providerName="System.Data.SqlClient" />
connectionString="server=sql.moallem.org,1433;database=testformoalle m;uid=moallem.org;pwd=administrator"
connectionString="server=home;database=testformoallem;uid=sa;pwd="
-->
<!--<membership defaultProvider="AspNetSqlMembershipProvider" />-->
</connectionStrings>
<appSettings/>

<system.web>

<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->

<authorization>
<allow roles="Power" />
</authorization>
<roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
<providers>
<add connectionStringName="LocalSqlServer" name="CustomizedRoleProvider"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>

<httpRuntime maxRequestLength="1550000" />
<!--executionTimeout="60" maxRequestLength="1550000" requestLengthDiskThreshold="512"/>-->

<!--
Set Sessions to cookieless if you need to retrieve session data
in the upload handler l(configure below in the httphandlers section
and defined in App_Code/Upload.cs)
-->
<sessionState cookieless="UseUri" />

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


<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
validate="false" />


</httpHandlers>
<customErrors mode="Off"/>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</buildProviders>
</compilation>
<!--
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>
-->
<membership defaultProvider="CustomizedProvider">
<providers>
<add connectionStringName="LocalSqlServer" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0" name="CustomizedProvider"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>

</system.web>


<!--
<location path="CreateAccount.aspx">
<system.web>
<authorization>
<allow users="asali" />
<deny users="daryabeygi"></deny>
</authorization>
</system.web>
</location>
-->
<system.net>
<mailSettings>
<smtp from="noreply@moallem.org">
<network host="mail.moallem.org" password="" userName="" />
</smtp>

</mailSettings>

</system.net>

<!--
settings to allow anonymous users to see the login page.
-->
<location path="Login.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>
بصصورت زیر تغییر دادم اما باز هم همان مشکل برقراره و من روی سایتم روی اینترنت نمیتونم با user ها لاگینکنم در صورتی که روی local میتونم و مشکلی ندارم
لطفا" راهنمایی کنید واقعا" کارم گیر کرده

***UNIQUE***
دوشنبه 28 بهمن 1387, 12:01 عصر
واقعا" ممنون
چقدر راهنمایی
یعنی تا حالا هیچ کس به این مشکل نخورده؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ ؟؟؟؟؟؟؟؟؟
حتی یه نمونه فرم لاگین که روی اینترنت کار کنه ندارید برای نمونه بذارید

Behrouz_Rad
دوشنبه 28 بهمن 1387, 21:14 عصر
عرض شود که شما جدول apnet_Applications رو باز کن و ببین در قسمت LoweredApplicationName چی نوشته شده.
اون رو به خاصیت applicationName تگ add در زیر مجموعه ی تگ membership نسبت بده.

موفق باشید.