C# - Forms Authentication Infinite Loop?

Sep 19, 2010

I have an application that works great on localhost with forms authentication.I deployed it to the deployment machine and it to the build machine and received and endless set of 302 redirects.I try logging onto the deployment machine and access the page via the deployment machines ip and it works again.So it is not working when I try and access the site from my computer to the build computer.

View 4 Replies


Similar Messages:

Web Forms :: Infinite Loop From Random Class?

Feb 17, 2010

Infinite loop from random class?

[Code]....

View 4 Replies

Web Forms :: __doPostBack Infinite Loop Using Onfocus?

Feb 15, 2011

I am calling a method with __doPostBack using the OnFocus event for the controls. However I need to update the values multiple controls when the server method executes. This actually causes on focus to keep firing. Looking for help. I tried using TextBox1.Attributes.Remove("onfocus") and then adding it the javascript after processing but it still keep looping. Here is a sample using to textbox's for simplicity:

HTML

[Code]....

Code Behind:

[Code]....

View 3 Replies

Infinite Loop With HTTP 401 Status?

Jul 7, 2010

I wrote an ASP.NET page that requires HTTP Basic authorization, which I put in the Page_Load function:

void Page_Load(object sender, EventArgs e)
{
string auth = Request.Headers["Authorization"];
if (string.IsNullOrEmpty(auth))
{
Response.StatusCode = 401;
}
else
{
string[] usernameAndPassword = Encoding.UTF8.GetString(Convert.FromBase64String(auth)).Split(':');
string username = usernameAndPassword[0];
string password = usernameAndPassword[1];
Login(username, password);
}
}

When I try to view the page in a browser (either Firefox or IE), it asks me for the username and password, and then...asks me for the username and password again.

Why does this happen, and how can I fix it?

View 1 Replies

SQL Reporting :: Web Report Causing An Infinite Loop?

Aug 3, 2010

I am having problems moving my reports from VS2008 to VS2010. I have made several WEB reports in VS2008 that use the code below on the load event of the WEB page to provide a data for the report and they all work correctly. I have to use this method of providing data because I am using several complicated queries that brake the VS2008 and VS2010 wizard.

When I try to convert over to VS2010, the report loading message flashes on the screen and the report never loads. I have run this code in debug and found that it is causing an infinite loop. After the code runs, the load event fires again. I tried adding an exit sub at the end of the code for a test but it has no effect.Below is a sample of the code that I am using with a simplified query and names.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Declare connection string.
Dim cnString As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString.ToString [code]...

View 2 Replies

MVC :: RC2 Client-Side Validation Infinite Loop Bug?

Mar 3, 2010

I've found a bug with RC2's client-side validation that causes an infinite loop (at least in IE7).Basically, if you create a standard ASP.NET MVC 2 RC2 web application template and then modify the LogOn.aspx view to this:

[Code]....

Note the new table that has been placed around it.Now, when you fire it up in IE7 and hit "Log On", the whole browser freezes and goes into an infinite loop.I have narrowed this down to the use of OnPropertyChange and the setting of the CSS classes for the elements themselves. It seems whenever an element is in a table, and you change its CSS class, the OnPropertyChange event fires with the property of "value" (which fires the entire process off again hence the endless loop).This is reproducable for me in IE7 (I haven't tested FireFox, IE6 or IE8).

View 1 Replies

AJAX :: CascadingDropDown Infinite Reload Loop In Webkit?

Jan 4, 2010

Using VS2005, VB code behind, I have a page with two DropDownLists and corresponding CascadingDropDown's. I want to automatically postback when the second DropDownList index changes, therefore I have set its AutoPostBack="true". I have wired up the web services and the lists are getting populated as expected in IE7+, FireFox and Opera, but when I view the page in a WebKit based browsers (Chrome, Safari) the CascadingDropDown appear to load in an infinite loop. I included theWebkit compatibility fix but the issue persists. I've attached a working example below.Anyone know why Webkit browsers are infinitely reloading the cascading dropdownlists? Is there a fix?Source code below:Markup:

[Code]....

Webkit.js

[Code]....

Code Behind:

[Code]....

Web Services Markup:

[Code]....

View 3 Replies

C# - Application_Error Exceptions Handling, Redirection Infinite Loop And CSS Loading?

Oct 9, 2010

I have error handling in Application_Error event of globals.asax file. Inside this event, I'm using Response.Redirect(~errorview.aspx) method, for redirection to site which is able to handle errors in user friendly way.

Everything works fine, unless exception is rising in Application_Start event. When error occurs there, my application gets trapped in infinite loop with the Application_Error method hit repeatedly. What is more, the page I'm redirecting to never gets hit. Changing Response.Redirect(~errorview.aspx) method to Response.Redirect(~errorview.aspx, false) changes nothing.

The good news is, when Response.Redirect(~errorview.aspx) has been replaced with Server.Transfer(~errorview.aspx), errorview.aspx page succesfully gets hit.

The side effect now is not loading CSS, and errorview.aspx page looks ugly. What is more, the CSS is not loaded only when exception occurs in Application_Start event. Exceptions thrown from any other place don't make the CSS mess.

How I can handle this problem in correct way, and why the CSS is missing in the one particular situation ? What is the appropriate way of handling errors in my case ?

UPDATE

For CSS loading, I'm using this:

<link href="~/Css/Layout/style.css" type="text/css" rel="stylesheet"
runat="server" ID="_uid" />

error page I'm transfering from: http://localhost/APP/Pages/Module/Pages/ErrorView.aspx

css folder path: http://localhost/APP/Pages/Module/CSS/Layout/style.css

View 2 Replies

AJAX :: Numeric UP/Down Extender Causes Infinite Page Load Loop?

Aug 14, 2010

I have fought a bizarre situation for days. Anytime a certain listview loaded the page went into an infinite loop of reloading. I was finally put the listview on a page with nothing else to see if I could isolate the issue.Even with only the folowing code, it continually looped on load even though it brought in the correct data every time.

[Code]....

[Code]....

View 1 Replies

Forms Data Controls :: Listing / Categories That It Is Added Infinite Category,subcategory?

Sep 2, 2010

i have a problem about listing. i have categories that it is added infinite category,subcategory. Table is like that:

id
ustid
kategori
seviye

i want listing like this:

For example when i click "Arac", the list will become like following:
Araç (category)
Otomobil (subcategory)
Motorsiklet (subcategory)

Then .when i click "Otomobil"
Araç
Otomobil
----Fiat
---Audi
---BMW

when i click "Fiat"
Araç
-Otomobil
--Fiat
---Murat
---Şahin

View 3 Replies

AJAX :: Infinite Width Of ValidatorCalloutExtender

Mar 7, 2011

I have create a textbox to be validated and a rangevalidator along with validatorcalloutextender to display the error message. All seems to work perfectly, until I realise that my validatorcalloutextender's pop-up has a width like infinite. I have tried diverse css style which I found in google, but still, the width of that validatorcalloutextender is like infinite (though I have set its width to width="20px")

View 6 Replies

JQuery :: Infinite Scroll / Load External Content Into Element?

Jan 25, 2011

[Code]....

With the above syntax we can load content into a
[Code]....

when the user scrolls. But before inserting into the div I want to make sure that div is in the viewport area when the user scrolls down.

If yes then I would like to load external content into that
[Code]....

so tell me how could i detect which element is in viewport area by jquery when user scroll down then i can load external content into that element.

View 3 Replies

Logic For Displaying Infinite Category Tree In Nested <ul>s From Self Join Table?

Aug 14, 2010

in my on-line shopping project i created a dynamic Category List (with Infinite Level Depth) Implemented in a Single Table in DB with Self join.the schema is like below:UpdateI want to use a JQuery plugin to make a Multi Level Menu bar. this plugin uses <ul> and <li> elements so I should transform the DB table to <ul> and <li>. the result should like this:

<ul>
<li>Clothing 1
<ul>

[code]...

View 2 Replies

Delaring A String Thats Within A Loop Within Another Loop

Jan 14, 2010

Im stuck with declaring a string which is in a loop within another loop.

Dim CompanyDetails As String = ""
Dim CompanyRow As DataRow
For Each CompanyRow In newdt.Rows
CompanyDetails += CompanyRow(1) & " " & CompanyRow(0) & "<br/>"...

How can I get this to see the GetInfo as declared..... since its in a loop within a loop?

View 9 Replies

C# - What's The Difference: Windows Authentication, Passport Authentication And Form Authentication

Sep 17, 2010

Just going to start making a web application and was wondering which was better, or at least what are the main differences between them (as it probably matters what I am using them for)?

View 3 Replies

AJAX :: AutoCompleteExtender - Authentication Failure (forms Authentication)

Apr 15, 2010

'm using the AutoCompleteExtender from the AJAX control toolkit on my aspx page - I have it wired up to a WCF service that is returning a string array and everything works happily.

If I change my service definition to include a demand for the caller to be authenticated, like so:

<OperationContract(), PrincipalPermission(SecurityAction.Demand, Authenticated:=True)> _Public Function GetLookupValues(ByVal prefixText As String, ByVal count As Integer, ByVal contextKey As String) As String()

Then the autocomplete extender stops working, and I get an authentication error in the service. The service is set up to use ASPNetCompatibility mode, and I was hoping that the extender would pass the authentication credentials for my logged in user - does anyone know how to make this work?

View 2 Replies

Security :: Changing From Forms Authentication To Windows Authentication?

Sep 3, 2010

What do I need to do in order to change an application from Forms Authentication to windows authentication?

View 2 Replies

Security :: Using Rss Feed Authentication With Forms Authentication?

Jun 3, 2010

I have developed the authenticated rss feed using the basic http authentication for my site.I also have the admin module for the site which uses the Asp.net Forms Authentication .Both are in the same project.When i turn on the forms authentication module to None in my web.config.My rss feed authentication works fine(the browser pop up the dialog box for the username and password) and upon entering the username and password the rss feed gets displayed.But with forms authentication turn on when i click the rss feed link i am getting redirected to the administrator login page.

If i set my authentication mode to none than the feed works like dream but the admin module do not work as it uses forms authentication.

How can i resolve the conflict for that one.I am using the asp.net mvc filter on my feed contoller to pop up the dialog box for the username and password.

[Code]....

View 1 Replies

How To Convert Forms Authentication To Windows Authentication

Sep 15, 2010

I've been asked to convert an asp.net application from forms authentication with roles using the aspnetdb database to use windows authentication instead.

what is required to do this? can I still use the roles defined in the app and stored in aspnetdb?

View 1 Replies

Mixing Forms Authentication With Windows Authentication?

Feb 12, 2010

I have an (ASP.NET 3.5) intranet application which has been designed to use forms authentication (along with the default aspnet membership system). I also store additional information about users in another table which shares its primary key with the aspnet_users table.

For users who are part of our domain I store their domain account name in the secondary users table, and I want to automatically log in users whose domain account name matches a name stored in the table.

I have read the guides which are available - they're all from two years ago or more and assume that you are able to activate Windows Authentication on a separate login page that allows you to extract the domain account name. From what I can tell, though, this is not possible in IIS7 (the overall authentication method is applied on all pages and cannot be selectively deactivated, and both authentication methods can't be applied on the same page).

Is there a way of getting IIS to pass through the windows domain account name of the requesting user? I don't need proper AD authentication, just the domain name.

View 6 Replies

Ssl - How To Preserve Authentication For Forms Authentication Cookie

Aug 19, 2010

We have a non-SSL ASP.NET web app that allows a user to login (ASP forms authentication, inproc).

Once authenticated, we redirect their browser to an external, SSL secured page on another web site / domain altogether that we do not control.

The client is redirected back to a pre-configured url on our original http web app when done.

However, the customer is then asked to "re-login" again on our side which is undesired...

It seems the forms authentication cookie is destroyed when transitioning between HTTP and HTTPS and back again.

How can I keep the forms authentication cookie alive so that the customer does not have to re-authenticate on the round trip?

View 2 Replies

Security :: Forms Authentication With A Secondary Authentication?

Feb 16, 2011

I'm developing an internal booking sytem. Users log in to the sytem and can view existing bookings and search for bookings. They can also create new or edit existing bookings. When completing such actions I need a confirmation prior to completing the booking or updating the recorded. The confirmation is based on a reauthentication of the user.... in otherwords he needs to enter his passord again.

How can I achieve this? The system is internam and I'm using Forms Authentication. I an also using roles as som of the admin forms can only be viewed by administrators.

View 1 Replies

Data Controls :: Implement Infinite Scroll (Load Data On Page Scroll) In ListView Control Using JQuery

May 7, 2015

Article here [URL] ....

The code only working for DataList what if I want replace it with ListView just cuz I need my items design responsive ...

View 1 Replies

DataSource Controls :: Use Mixed And Server Authentication Option Inplace Of Windows Authentication?

Jan 8, 2010

I have just installed SQL Server 2005. I selected windows mode authentication. I am not able to login in management studion. Now, I want to use mixed and server authentication option inplace of windows authentication. so, would that be possible after installation.

View 2 Replies

Security :: Authentication Method - Enable Anoymous Access And Basic Authentication?

Jul 14, 2010

This could be very straight forward for some of you, but I got caught up. I am doing very simple test - browsing from IIS Manager to see the default page or "under Construction", however I am being challenged to provide my login credential . When I provide my login credential, I am able to see the default page. I wanted to see the default page without providing my credential since Enable anoymous access + basic authentication I am simply wanted to see the default page asit is working on other servers except this one. I have included screen print to make sure may question is clear.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved