PDA

View Full Version : سوال: کلاس MEMBERSHIP



samanraufi
یک شنبه 30 بهمن 1390, 17:37 عصر
برنامه ای نوشتم که کلاس membership رو در اون فراخوانـی میکنم.وقتی F5 میزنم.برنامه کـار میکنه و مشکلی نداره.اما وقــتی این برنامه رو توی شبکه قرار میدم و اون رو با IIS(هر نسخه ای) لود میکنم.خطای زمان اجرا میده.


Server Error in '/' Application.

User does not have permission to perform this action.

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: User does not have permission to perform this action.

Source Error:


Line 12:
Line 13: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Line 14: Button1.Text = Membership.GetAllUsers.Count
Line 15: End Sub
Line 16: End Class

Source File: C:\Users\Saman\Documents\Visual Studio 2010\WebSites\WebSite1\Default.aspx.vb Line: 14

fakhravari
دوشنبه 01 اسفند 1390, 02:36 صبح
Button1.Text = Membership.GetAllUsers().Count.ToString();