.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Beta 2 - login problem

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :ASP.Net

At login I get this message:

Exception Details: System.Data.SqlServerCe.SqlCeException: The column name is not valid. [ Node name (if any) = ,Column name = PasswordFailuresSinceLastSucess ]

And even on this site I can't find any sample of login code: http://www.asp.net/webmatrix/tutorials/16-adding-security-and-membership

After installing Beta 2 I only have problems for now :)


View Complete Post

More Related Resource Links

Problem with LayoutTemplate and the Login-control

Hi, I'm trying to make a login-form for my website, but i needed to customize the standard-layout, because the validators made the login-button move a couple of pixels to the right of the textfieldsWhen using the LayoutTemplate, I can't seem to get the login to work.. When adding a button with "Login" as the ID, shouldn't that button handle the loginprocess from the membership-providers validateuser-method?If not, and I'm supposed to handle the loginprocess myself? And if so, how do I get to the validateuser-method? I don't wanna have the method in two seperate places if I can avoid it..

Creating Login Page Problem

I doing a login page using visual c# and encounter some problem on it. my database got Username, Password, and UserType I want to create a login page redirect the user to different page based on their roles. It show that there is an error on the code (line 24). Any idea on create a login page that redirect the user to different page based on their roles?It shows this message :   this type or namespace name 'DataView' could not be found(are you missing a using directive or an assembly reference)Here the code, protected void Page_Load(object sender, EventArgs e) { string connectionString = "Data Source =.\\SQLEXPRESS;" + "AttachDbFilename=\"C:\\Program Files\\Microsoft SQL Server\\MSSQL10.SQLEXPRESS\\MSSQL\\DATA\\UserDB.mdf\";" + "Integrated Security=True;" + "Connect Timeout=30;" + "User Instance=True;"; System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(connectionString ); System.Data.SqlClient.SqlCommand cmd = conn.CreateCommand(); conn.Open(); } protected void Button1_Click(object sender, EventArgs e) { SqlDataSource sds = new SqlDataSource(); sds.SelectParameters.Add("Username", TypeCode.String, this.TextBox1.Text); sds.

Login by FBA and Licensing problem

My sharepoint 2010 server will use FBA for login ,do I need buy any user Cal ? Thx  

membership provider with custom login form problem / question

Hi all, I am using the .net membership provider, and I can get past the membership.validate user ok and into my secure page.   The problem I have is that when I reach the secured page, I have a login status control which isn't changing from login to logout.   Below is my login code:If Membership.ValidateUser(txtUsername.Text, txtPassword.Text) Then Response.Redirect("/auth/Default.aspx") If chkRememberMe.Checked Then FormsAuthentication.SetAuthCookie(txtUsername.Text, True) Else FormsAuthentication.SetAuthCookie(txtUsername.Text, False) End If Else lblLoginStatus.Text = "Oops! Login not found!" End If    Thanks in advance.

Forms Based Authentication - problem with custom master page and login page



I have successfully enabled and set up FBA (Forms Based Authentication) on my SharePoint 2010 Foundation server. The thing is that I need to customize the look and feel of the login page. I have successfully customized the page (and master page) to look the way I want, however, when I try to log in, I get the following error/message on the page:
"Forms Based Authentication on classic Web applications has been deprecated".

What I've done:
Made copies of /_layouts/simple.master and /_layouts/login.aspx and renamed the copies. The markup in the master page is MUCH simpler than the original, but I've kept all the ContentPlaceholders that I don't use (most of them) in a hidden <asp:Panel at the bottom of the page.

I've changed the web.config file:
<authentication mode="Forms">
      <forms loginUrl="/_layouts/loginCustom.aspx" />

So, I'm not getting any errors on the page until I try to log in. When I use the default settings (login.aspx and simple.master) it works just fine (but damn that page looks ugly!).

Does anyone know what I might be missing?

Update: I believe the reason it doesn't work is because my custom login aspx is not part of the Claims Based Web Application (because it's sitting

Login problem with existing browser window


Hi All,

We are developing ASP.net 2.0/C# web application.

Once Login is expired the page is redirected to login page automatically. again If I am trying to login with same window, login is not working. Login is working when the application is opened in new browser.

What is the problem and how can i fix that error?

"403 forbidden" Error in my Custom login page, cant find problem

I Created a custom login page using Sharepoint Application page which is cofigured with FBA.  but every time redirect to http://testsp.max-perf.com/_layouts/DataQ.Extranet/test.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252F&Source=%2F .  I have  Win2008 (not r2) and sp2010. Thank you.

Problem with XCopy deployment of SQL Server CE 3.5 SP2 Beta

As ErikEJ's article says (http://erikej.blogspot.com/2009/10/whats-new-in-sql-server-compact-35-sp2.html), "...Notice the “Private” folder, which contains a version of System.Data.SqlServerCe.Dll which should be used for private deployments, to prevent the “Assembly probing” issue".

I have following app.config file:

<?xml version="1.0" encoding="utf-8"?>
      <remove invariant="System.Data.SqlServerCe.3.5" />
      <add name="Microsoft SQL Server Compact Data Provider"
           description=".NET Framework Data Provider for Microsoft SQL Server Compact"
                 PublicKeyToken=89845dcd8080cc91" />
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="sqlcelib" />

Razor View Engine problem in Preview corrected in Beta?



On my projects I am using Razor View engine and I need to define custom Partial folders:

      // Define default view engine
      ViewEngines.Engines.Add(new CshtmlViewEngine());
      ViewEngines.Engines.Add(new WebFormViewEngine());

      // Define Razor view engine
      CshtmlViewEngine razor = (CshtmlViewEngine)ViewEngines.Engines[0];

      // Register partial views folders                
      razor.PartialViewLocationFormats = razor.PartialViewLocationFormats.Concat(new String[] { "~/Views/Partial/{0}.cshtml" }).ToArray();
      razor.AreaPartialViewLocationFormats = razor.AreaPartialViewLocationFormats.Concat(new String[] { "~/Areas/{1}/Views/Partial/{0}.cshtml" }).ToArray();

I had this because there was a problem in MVC 3 Preview. Was it corrected?

How should I register the Partial Views in MVC 3 Beta?

Thank You,


Login problem


Hi, i have an application that make consecutive writings to the database, the problem is that sometimes it use BulkInsert others row insert and when different kind of inserts happens in less than 10 seconds i have an error "login failed for the user", if i wait for 20 or more seconds beetween the two kinds of insert it doesn't give the error.

Any idea of the problem.

Ps, when use the same kind of insert and have a lot of consecutive inserts there is no problem.


2008 reportviewer - IE9 beta caching problem



In IE9 beta the reportviewer is caching the previous report. I have a reportviewer on an aspx page that gets called and the code behind connects to the reportserver using the remote process mode.

However when the new tab opens up the old report is still displayed. This doesnt happen in IE7 or Firefox.

Anyone come across this problem?


Problem with MVC 3 beta and PHP


I have a site that is using MVC and PHP. We recently upgraded it to MVC 3 Preview 1 and things have been working fine. We just upgraded it the Beta release of MVC 3 and suddenly any form posts to PHP pages fail with a timeout error. "Gets" work fine, it's just posts that fail. The problem seems to be related to the
  <modules runAllManagedModulesForAllRequests="true" /> 
setting in web.config. When it's false the posts to PHP work fine but then MVC doesn't function properly.

We've duplicated the problem on both a Windows 7 development box and a Windows Server 2008 R2 server. The problem does not occur on our Windows Server 2003 test server, probably because it's not using the integrated pipeline.

I'm not having much luck getting help from the normal support channel. Any suggestions would be appreciated!


Account login problem


I have some problems with sahrepoint 2010 account management...

In my windows 7 i have 2 accounts: an administrator account (let's call it "admin") and a standard user (called "reader"). In the SP2010 central administration i have correctly added both accounts as "managed accounts". In my site i have modified the "site permissions": "admin" account was already in the "[Site collection name] Owners" group, and i have added the "reader" account to the "[Site collection name] Visitors" group.

When i open a SP website i have to login: let's say i log in as "reader". Then i want to log in as "admin", so i select "Sign in as a different user" in the top-right corner of the page. Now when i insert username and password of the "admin" account, i get some kind of error, as if the password is wrong (but i get no message, just the same window again asking me for username and password). At the third attempt, i get the 401 UNAUTHORIZED page. But when i close the page a re-open it, i result logged in as "admin", without having to insert username and password!

Is this a normal behavior? Otherwise, what could be the problem?

login page problem



In login.aspx I have used login control to enter user name and password, the problem is: even my caps lock is off when I enter user name it prints in capital letters but size is small size (when I copy and paste in note pad or msword it paste in small letters not in capital letters), when I turn on my caps lock on and type - it prints in bigger size as if I am typing in capital letters.  

ex:  1. temp is my user name if my caps lock is off it shows like this TEMP (but size in smaller than 2nd one)

       2. if my caps lock is on is shows like this as if I am typing capital letters TEMP

what do you think the problem is how can I fix it?



Login problem with new asp site


 I am new to asp.net. I have created a test site and copied to www.eddiepricetest.com but when I try to login and create a new user account i get the below error. When I do this locally on my pc it works but when I copy to the web server i get the error. Any ideas?



Server Error in '/' Application.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

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.

SQLExpress database file auto-creation error:

The connection string specifies a local Sql Server Express instance using a database location within the application's App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the data

Problem installing ASP.NET MVC 3 beta


Hi, when I install MVC 3 Beta, the installation finishes with no errors but I don't get the Visual Studio templates. In the setup log at %temp%\VisualStudio2010_MvcTemplates.Log there is a bunch of warnings like Error in Template ..., or Found templates with duplicate ids. I have no idea how to fix it. Please help. I put the log here if it helps.



stsadm change in 2010? login as system account problem


I have installed SharePoint 2010 beta 2 on a HP Blade in a Domain Environment. SQL Server 2008 SP1 CU2 is on a seperate Blade. Installation and configuration went ok. Everything runs under my Domain-Admin Account (SQL, Farm, ...)

The first few sites went smooth, after a while i noticed that not my Domain-Admin Account was written in the top-right corner, but "System Account". I remembered that problem from MOSS 2007 and tried stsadm updatefarmcredentials. Result after 30 seconds of waiting:
Value cannot be null.
Parameter name: farm

To be exactly i tried: stsadm -o updatefarmcredentials -userlogin XXX -userpassword XXX

There is definatly no typo and i tried varios different things like with "" and without "", with -identitytype and withou, and so on..

When i change the Farm-Account at the GUI, to a normal Account, i see my Domain-Admin Account in the top right corner again instead of System Account. When i change back, the same problem occurs.

Im pretty sure i resolved the issue in 07 with the command written above. Did the syntax change? Do i have to use Powershell? It looks like i have to specify the farm somehow (even thou there is only one farm consisting of one server on which im running the command)

Of course i'd be happy for any other solution to th
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend