I have an asp.net 2.0 application, which is very slow in performance. we have triggered the issue down the line, we are surprised with issue. The application used lot of database operations and respective stored procedure have lot of complicated business logic, but the stored procedure won't take much time to execute on SSMS(SQL Server) but when we access same stored procedure through the application it take huge time. please suggest me how i can resolve the time consuming problem.
Are you sure it is the sql that is taking longer? If you are displaying results into a grid and have lots of results I'll bet the slowdown has nothing to do with SQL but is actually the browser trying to render all that html. This is a common problem.
There are only 10 types of people in the world, those who understand binary and those who don't.
I have one page in my VS 2013 VB.NET Web App project that doesn't open in IIS Express, giving the above compiler error message.
Event Viewer describes the error as: Event ID: 1310 Qualifier: 32768
Source: ASP.NET 4.0.30319.0
I can move the page to my test server and it runs fine. It only happens in IIS Express when debugging in VS 2013.
If anyone has a clue, please let me know! I really don't want to be running 'regular' IIS here on my development machine, but will if push comes to shove! My Web App is quite large and uses lots of AJAX. I have larger pages that do the same sort of AJAX which work without fail.
Thanks for this advice! While developing a page like this I like having all its script and style right there in front of me so I don't have to go hunting around, but if this is causing a problem I'll gladly move as much as possible into external files.
BTW: How does one convert an error code like 2147024888 into HEX 0x80070008 -- which actually does return useful stuff in the Google?
Handle = window.open('WebForm1.aspx','','width=300px,height=200px');
Window.opener = handle;
Now in the newly opened WebForm1.aspx page an asp:GridView is defined that opens a new asp page when a row is doubled clicked. The way this is handled is in the GridView’s RowDataBound event the follow command is added to the e.Row.Attributes value as below:
I still think you'd be better off using location.assign instead of window.open. Displaying a splash page and then trying to open the real site in a new window will just annoy your users - especially as they'll have to turn off their popup blocker to use it!
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I added a sitemap and then chose that as a source.
Then I get this:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Host 'fe80::ad93:da36:44e1:3cca%11' is not allowed to connect to this MySQL server
<siteMap><providers><addname="MySqlSiteMapProvider"type="MySql.Web.SiteMap.MySqlSiteMapProvider, MySql.Web, Version=22.214.171.124, Culture=neutral, PublicKeyToken=c5687fc88969c44d"connectionStringName="LocalMySqlServer"applicationName="/"/></providers></siteMap>
i need a help from you guys.
i have follow code from msdn how to login connect ldap.
but when i wanna change password to ldap, it won't work.
here's my LdapAuthentication.cs code:
public LdapAuthentication(string path)
_path = path;
publicbool IsAuthenticated(string domain, string username, string pwd)
string _domain = domain;
string domainAndUsername = domain + @"\" + username;
DirectoryEntry entry = new DirectoryEntry(_path, domainAndUsername, pwd);
//Bind to the native AdsObject to force authentication.
object obj = entry.NativeObject;
DirectorySearcher search = new DirectorySearcher(entry);
search.Filter = "(SAMAccountName=" + username + ")";
SearchResult result = search.FindOne();
if (null == result)
//Update the new path to the user in the directory.
_path = result.Path;
_filterAttribute = (string)result.Properties["cn"];
catch (Exception ex)
thrownew Exception("Error authenticating user. " + ex.Message);
DirectorySearcher search = new DirectorySearcher(_path);
search.Filter = "(cn=" + _filterAttribute + ")";
StringBuilder groupNames = new StringBuilder();
SearchResult result = search.FindOne();
int propertyCount = result.Properties["memberOf"].Count;
int equalsIndex, commaIndex;
for (int propertyCounter = 0; propertyCounter < propertyCount; propertyCounter++)
dn = (string)result.Properties["memberOf"][propertyCounter];
equalsIndex = dn.IndexOf("=", 1);
commaIndex = dn.IndexOf(",", 1);
if (-1 == equalsIndex)
groupNames.Append(dn.Substring((equalsIndex + 1), (commaIndex - equalsIndex) - 1));
catch (Exception ex)
thrownew Exception("Error obtaining group names. " + ex.Message);
and this is my ChangePassword.aspx code:
Use the form below to change your password.
New passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length.
</p><asp:ChangePasswordID="ChangeUserPassword"runat="server"CancelDestinationPageUrl="~/Default.aspx"EnableViewState="false"RenderOuterTable="false"SuccessPageUrl="ChangePasswordSuccess.aspx"><ChangePasswordTemplate><spanclass="failureNotification"><asp:LiteralID="FailureText"runat="server"></asp:Literal></span><asp:ValidationSummaryID="ChangeUserPasswordValidationSummary"runat="server"CssClass="failureNotification"ValidationGroup="ChangeUserPasswordValidationGroup"/><divclass="accountInfo"><fieldsetclass="changePassword"><legend>Account Information</legend><p><asp:LabelID="Label1"runat="server">Domain:</asp:Label><asp:TextBoxID="txtDomain1"runat="server"></asp:TextBox></p><p><asp:LabelID="Label2"runat="server">Username:</asp:Label><asp:TextBoxID="txtUsername1"runat="server"></asp:TextBox></p><p><asp:LabelID="Label3"runat="server"AssociatedControlID="CurrentPassword">Old Password:</asp:Label><asp:TextBoxID="txtPassword1"runat="server"CssClass="passwordEntry"TextMode="Password"></asp:TextBox><asp:RequiredFieldValidatorID="CurrentPasswordRequired"runat="server"ControlToValidate="CurrentPassword"CssClass="failureNotification"ErrorMessage="Password is required."ToolTip="Old Password is required."ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator></p><p><asp:LabelID="Label4"runat="server"AssociatedControlID="NewPassword">New Password:</asp:Label><asp:TextBoxID="txtNewPassword"runat="server"CssClass="passwordEntry"TextMode="Password"></asp:TextBox><asp:RequiredFieldValidatorID="NewPasswordRequired"runat="server"ControlToValidate="NewPassword"CssClass="failureNotification"ErrorMessage="New Password is required."ToolTip="New Password is required."ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator></p><p><asp:LabelID="Label5"runat="server"AssociatedControlID="ConfirmNewPassword">Confirm New Password:</asp:Label><asp:TextBoxID="txtConfirmNewPassword"runat="server"CssClass="passwordEntry"TextMode="Password"></asp:TextBox><asp:RequiredFieldValidatorID="ConfirmNewPasswordRequired"runat="server"ControlToValidate="ConfirmNewPassword"CssClass="failureNotification"Display="Dynamic"ErrorMessage="Confirm New Password is required."ToolTip="Confirm New Password is required."ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator><asp:CompareValidatorID="NewPasswordCompare"runat="server"ControlToCompare="txtNewPassword"ControlToValidate="ConfirmNewPassword"CssClass="failureNotification"Display="Dynamic"ErrorMessage="The Confirm New Password must match the New Password entry."ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:CompareValidator></p></fieldset><pclass="submitButton"><asp:ButtonID="CancelPushButton"runat="server"CausesValidation="False"CommandName="Cancel"Text="Cancel"/><asp:ButtonID="ChangePasswordPushButton"runat="server"CommandName="ChangePassword"Text="Change Password"ValidationGroup="ChangeUserPasswordValidationGroup"OnClick="Click_Change"/></p></div><scriptrunat="server">
void Click_Change(object sender, EventArgs e)
string adPath = "LDAP://my-domain.com"; //Path to your LDAP directory server
LdapAuthentication adAuth = new LdapAuthentication(adPath);
if(true == adAuth.ChangePassword(txtDomain1.Text, txtUsername1.Text, txtPassword1.Text))
errorLabel.Text = "Error Password!.";
errorLabel.Text = "Check It. " + ex.Message;
did i'm do something wrong?
what should i do to make void button change password will take old password and renew password to ldap?
anybody know how?
Last Visit: 31-Dec-99 18:00 Last Update: 30-Jun-16 13:47