Blank LogOn View In MVC Application?

Jul 12, 2010

On Friday I gave a demo of an MVC application using the Authorize attribute on my JobCardController, and all was well. This morning, when I attempt an unauthorized action, I still get redirected to the LogOn view, using the below URL, but I appear to have what my reading tells me is called a White Screen of Death, i.e. nothing but white background and no actions invoked.

http://localhost:34054/Account/LogOn?ReturnUrl=%2fJobCard

ADDENDUM: I forgot to mention that I have moved the Account models and services out into my DataObjects and Services projects, but I had done this last week already without this problem.

I'm not asking what is wrong, but what are the common faults that could cause something like this and how can I start debugging this mess?

SOLVED: Somehow an Authorize attribute had landed up on my whole controller class, as in,

[HandleError]
[Authorize]
public class AccountController : BaseController

I removed that and everything is working again.

View 1 Replies


Similar Messages:

Web Forms :: View State Truncated And A Blank Web Page?

May 19, 2010

Recently I had migrated my ASP.net 1.1 based application from a IIS5.1 based platform to a IIS 6.0 based Platform.The new platform has 4 nodes with a load balancer.

One of the page of my application, which is perhaps the heaviest one in terms of form components like textboxes, dropdown is not behaving properly.Some times the users only get a "Blank White Screen" and some time they get a "Invalid ViewState" , Invalid length for a Base-64 char array.

Based on the KB
http://support.microsoft.com/kb/831150 I understand that the view state is getting truncated.

I had been facing this issue since we migrated to the new platform and the application was working perfectly fine on the old platform.

View 1 Replies

Web Forms :: Split View In The Visual Studio IDE And Design Is Blank

Mar 5, 2010

In the Source view has code. as I was coding and refreshed the split view (.ascx) it when blank. The so I when to the design view its blank too. The aspx page I can see the control.

View 3 Replies

Web Forms :: To Create A Grid View With 3 Blank Row Without Any Datasource Or Use (Datatable ) In Code Behind

Dec 7, 2010

How to create a Grid view with 3 blank Row without any Datasource or use (Datatable ) in code behind

it means

Sl.no ID Name

1

2

3

it means no blank ID ,Name

View 8 Replies

Crystal Reports :: Can't View Web Report / Can See Data Inside Javascript But Page Is Blank?

Feb 7, 2011

I have no problems viewing data on local machine but for some reason I cannot view that same report on the web. When i view source of the web page I can see data inside the javascript but the page is blank. What could I be doing wrong?

View 2 Replies

Forms Data Controls :: How To Validate A Text Box (if It Is Blank) Inside A List View Row, On Selected Index ?

Feb 8, 2010

i have a drop down list and a text box, inside a listview row (and this is a repeating layout). i populate each dropdownlist with same contents ( these contents/items come from a custom collection object).

i have added a required field validator in the listview's item template, that has its validation group = the validation group of the drop down list, and validates if the textbox is blank or not. this validation takes place on the selected index changed of the drop downlist for that row.

1. on selected index changed, EACH dropdownlist validates only its corressponding textbox perfectly (which is what i want)

but if i enter some text in one of the textboxes after doing 1, the dropdownlist for THAT particular row, assigns the correct value to the text entered. but for other rows (for which i changed their corresponding ddls to test the required field validation and for which the text boxes are still blank), their ddls by itself assign the values to the blank text without validating.

markup of code for listview is [Code]....

code behind for the ddl selected index changed is [Code]....

method GetIndexFromId retrieves index of the custom object inside a collection depending on the Id (which is a property) of the object.

i notice that the ddl selectedindexchanged is being hit as many number of times as many rows i change (i.e as many ddls in different rows i change to check the required field validation)

View 7 Replies

C# - MVC - Blank Model Not Returning Blank Data

Jun 2, 2010

I have a form which a user can fill in x times with the data they want too. The form is posted to the following Action.

[HttpPost]
public ActionResult Manage(ProductOptionModel DataToAdd)
{
if (!ModelState.IsValid)
{
return View(DataToAdd);
}
var ProdServ = new ProductService();
if (DataToAdd.ID != 0)
{
//Edit Mode.
DataToAdd = ProdServ.EditProductOption(DataToAdd);
ViewData["Message"] = "Option Changes Made";
}else
{
//Add
DataToAdd = ProdServ.AddProductOption(DataToAdd);
ViewData["Message"] = "New Option Added";
}
var RetModel = new ProductOptionModel() {ProductID = DataToAdd.ProductID};
return View(RetModel);
}

So at the bottom I blank the model (Leaving just the required field) and then return to the view. However the view holds the data from the previously submitted form. I have debugged the code and checked that the RetModel variable is empty.

View 2 Replies

Concurrent Viewing And Logon ID?

Aug 19, 2010

I am a windows application developer doing a web application with VB.net and SQL 2008 for the first time.I have developed a web application where users are supposed to view a file after selecting from a listbox. I then pick the users logon ID from windows then store in database and produce statistical reports later. It was working fine on my local machine till i deployed it on server to make it accessible on the intranet. The server OS is Windows 2008 Server and runs IIS. My issues are as follows,1. The application is unable to store the user logon id from the client.2. When more than one user uses the application, then there are errors but one user does not produce errors.

View 1 Replies

VS 2008 Concurrent Viewing And Logon ID?

Jun 7, 2010

I am a windows application developer doing a web application with VB.net and SQL 2008 for the first time.

I have developed a web application where users are supposed to view a file after selecting from a listbox. I then pick the users logon ID from windows then store in database and produce statistical reports later. It was working fine on my local machine till i deployed it on server to make it accessible on the intranet. The server OS is Windows 2008 Server and runs IIS. My issues are as follows,

1. The application is unable to store the user logon id from the client.
2. When more than one user uses the application, then there are errors but one user does not produce errors.

View 7 Replies

SQL Server :: Sql Native Client For Logon CR?

Sep 25, 2010

As i have developed my asp.net application with crystal report using sql server 2005.... on windows xp OS machine x86

My hosting provider is using sql server 2008 on windows server 2008 OS x64...

Please let me know the sql native client version of ms sql server 2005
and sql native client version of ms sql server 2008

will sql native client version of ms sql server 2005 will work on sql native client version of ms sql server 2008..

or we need the same sql native client version of ms sql server 2005 to run my crystal report

View 1 Replies

MVC :: 2 File Referencing From Within LogOn.aspx

Apr 10, 2010

I have written a custom membership provider for my MVC 2 app, and it all works fine. I wanted to force people to log in as soon as they went to the site, so set the authorization section of the web config to deny annonymous users. As expected, when you try and access the site, it re-routes you straight to the LogOn.aspx page. The problem I'm having is that when it initially jumps to the LogOn page, it cannot find any of the files referenced in the html header section.

The strange thing is I set a path to a css file as follows:

../../Content/site.css
yet in the page it shows up as
../Content/site.css

I even wrote a html helper that uses Url.Content on the paths passed in, but this still does not solve the problem. If I go to the LogOn page after the application has initially loaded, it references all the files correctly.

View 1 Replies

MVC :: RTM Authorize Always Redirects To Account / LogOn?

Feb 7, 2011

I have configured forms authentication for my MVC 3 RTM application. I updated the configuration to the following and set the autoFormsAuthentication per the Gu and StackOverflow to false. However, when my application is deployed to my web server (W2k3 Standard SP2, II6) the controllers marked with [Authorize] are always redirected to /Account/LogOn instead of the configured value.

[Code]....

View 5 Replies

Security :: Logon Box Appears Every 5 Minutes?

Jan 8, 2010

I get about 5 minutes of inactivity before a logon box appears for a site I manage. Once logged in, our users must be able to stay logged on all day with no annoying logon popups. This started happening after a change i made to IIS6. We formerly had digest authentication and windows integrated authentication checked and everything worked fine but our users complained because they had to put creds in as <domainuserid>. We want to get rid of the domain requirement. To do this i unchecked windows integrated authentication and added the domain to the "Realm" text box. I can log in now without the domain, and everything works as before but I only get a few minutes before I have to relogon. I tried increasing the connection timout to 36000 and have keep alives checked on the web site property page. I also tried setting the web servers registry setting: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesInetInfoParametersDigestContextCacheTTL to 36000 (ten hours). these changes had no effect that I can see.Our setup:we use SSL and have a test certificate that is expired We are hitting the site on our intranet with IE7 or IE8. The production version of this site is on the internet though.IIS6 on a 2003 serverkeep alives is checkedanonymous authentication is uncheckeddigest authentication is checkedwindows integrated authentication is uncheckedIISRESET was run after each change.

View 7 Replies

MVC :: Create Session Variable At Logon?

Dec 3, 2010

I'm building an application using MVC3 RC and I'm trying to add a session variable as soon as anyone logs on. The variable is an int which is retrieved from a database using User.Identity.Name to retrieve the relevant database record.

I'm using the MS AccountController and tried adding the session variable immediately after the line:

FormsService.SignIn(model.UserName, model.RememberMe);

Although this is the point at which the logon is validated the User.Identity.Name is still showing as null when I try to get it immediately after.

Does anyone know when User.Identity.Name is actually populated in the session and how I can intervene to grab it at that point?

View 2 Replies

MVC :: Nerddinner LogOn And Authentication Method?

Mar 14, 2011

i created a mvc project and looked to account controller LogOn action method. methood defined as bottom.

[Code]....

[Code]....

View 3 Replies

MVC :: Get The Object Of HTTPRequest - Logon User Details

Aug 17, 2010

Anyway I can get the object of HTTPRequest? From View or Action? What I want is to read the logon user name and its email address from active directory.

View 1 Replies

MVC Missing Style And Defaults To Logon Page?

Feb 23, 2010

I just setup an out of the box "W2K8 R2 Web" server and installed IIS 7 out of the box. Then I installed the .NET4 framework and ran "aspnet_regiis -i" command.

I created a site using .NET 4.0 Integrated app pool.

I created an MVC application using the default MVC project template, without modifying I compiled the project and deploy the files using (Publish) to the virtual directory.

I can pull the site up, but the styles are missing from the page and for some reason it routing to the /Account/LogOn?ReturnUrl=/

View 3 Replies

Security :: Prevent Multiple Logon On Different Tab In The Same Session?

Jan 14, 2010

I managed to user to perform multiple log on from other IE window session in my web application if the same log on is currently being used.Unfortunately I have problem to control multiple log on if the user is logging in using tab browsing in the same session. I know this is due to the same session Id but is there any way to trace down to the tab level within the same session?

View 2 Replies

Security :: How To Store / Get The Details Of The Logon User

Sep 5, 2010

We will put the active directory logon when the user access the website, the user needs to fill in his user name and password.

How do we store/get the details of the logon user once the user is logged in?

View 2 Replies

C# - Programmatic Logon To Crystal Reports Server?

Jan 9, 2010

I have a Web Forms app that uses forms authentication. I have a Crystal Reports Server 2008 V1 server with InfoView .NET installed and working. I have some Enterprise accounts setup. EDIT: I should mention that my Web Forms app is on a different server from Crystal Reports Server.

I need to know how to log on to InfoView .NET programmatically on my custom ASP .NET page (C#) and then transfer the user to InfoView without them having to type in the logon information.

Something like this would be nice (C#):

string username = "blah";
string password = "asdf";
// create logon token for crystal reports server
// .. // this is the code I need
Response.Redirect(url);

I did find this question, which gets me partway there, but it doesn't tell me how to pass the token to InfoView .NET. Some older docs also mention needing a cookie. I've also found other sites that show how to pass it to Java InfoView, but I need the .NET version.

View 1 Replies

Login Failed For User NT AuthorityAnonymous Logon

Mar 25, 2011

Im getting the following error when I try to login to web page with a valid username and password:

Oops. The error: Login failed for user 'NT AUTHORITYANONYMOUS LOGON'.
This is my web.config :
<configuration>
<system.web>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name=".ASPXFORUM" loginUrl="login.aspx" protection="All"
timeout="30" path="/" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>

Anyone know what this error mean?

View 3 Replies

Web Forms :: Sys.webforms.pagerequestmanagerservererrorexception Logon Failure?

Jan 11, 2010

I am developing an ASP.NET application that prints multiple images.I have a gridview with some data that I use to query the database for the image path.If the image is in one table, the document is sent to the printer, if not, I search another table for the document.When a run the application on my devel machine everything works fine, but when it runs from the production machine and it needs to search the image from the second table

View 2 Replies

Security :: How To Enforce Logon Hours Validation

Oct 6, 2010

How to enforce logon hours validation

View 10 Replies

MVC :: AntiForgeryToken And Logon - Register Controller Methods

Apr 5, 2010

should AntiForgeryToken be used with every post actions including user logon - register etc...?

View 2 Replies

Crystal Reports :: Programmatically Logon To Database

Dec 15, 2010

My report is using two (2) different databases, how can I programmatically logon to each database? I am using Visual Studio 2010, in preview mode the report populates with no problems. I am using the standard code to login to a single database, but unsure on how to pass values for the second.

View 1 Replies







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