I have a severe problem. This code was working not 3 hours ago and has been for days, and suddenly it stopped.
Here's the web page code:
[Code]....
And here's the Back end Code:
[Code]....
We have clients that can't access the website and it's causing major issues so I need a response as soon as possible with any suggestions or ideas.I'm using a recursive search and the error I'm getting is:
Unable to cast object of type 'System.Web.UI.Control' to type 'System.Web.UI.WebControls.Label'.
We have an asp.panel that by default is set to visible=false. When a checkbox is clicked the panel is set to visible=true. The checkbox is set to autopostback and viewstate=true as well as the panel's viewstate =true. This code has worked perfectly for several years and suddenly it has started throwing an error on the built in .net java function below. It doesn't do it in the IDE when you run it either. The bold line is where the exception is being thrown.
function
ValidatorCommonOnSubmit() { var result = !Page_BlockSubmit; Page_BlockSubmit = false; event.returnValue = result; return result; }
This is not a big issue since it's quite easy to bypass by making a new project and copying everything on it, but it bothers me quite a bit that I can't figure out what it is about. In short my calendar and calendar extenders stop working suddenly. The last time this happened I made some changes to the pages code behind, then hit undo gazillion times to go back to the last save. After that I hit debug and lo and behold: calendar did not respond to any clicks and any text field with calendar extender did not show calendar on clicking them.
This happens in both IE8 and FireFox 3.6 and no amount or restart, rebuild and other such tricks do nothing. The only thing that I can figure out to solve the problem is either use a backup copy of a version that works or make a new project and then copy all the files from the not working into the new/earlier version and all works again. I was able to track down that this seems to relate somehow to AJAX as when I ran the debug I mention above, I got error messages on the web page saying something about AJAX. This however happened only once and I cant get it to happen again (and thus can not remember much about what it said).
Also when I debugged the event handling the calendar click, I get an error message like this: There is no source code available for the current location Then it opens a file search window trying to find some cs file inside the ajax control toolkit. However this only happened the first time I tried debugging the event and I can't remember more details about it. Now I just get that error message when debug exits the event.
So end analysis on my part: The ajax control tool kit gets knotted up all of a sudden for some mysterious reason and is tied to that particular project. Can anyone tell me what this could be about?
I have an web apps in .Net 2.0, I am planning to convert it into .Net 3.5. But when I open up the project/solution in VS 2008, it does not prompt me the conversion wizard, and I could tell from the config file that it is still in .Net 2.0.
when all were under controll for a long time i suddenly receive today this error in the online page "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. "
I got a view that uses the ajax.beginform tag.This works great but if I want to do some validation to the data and then return a error message to the page it doesnt work for me.Here my code :
Suddenly, IIS 7.0 is redirecting every request for the root of any domain hosted on the box to ~/Account/Logon, which is our Forms Authentication redirect. Additionally, some JavaScript and image requests are being similarly redirected, but not other aspx pages.
EDIT: It turns out that something has gone wrong with the disk permissions. Can anyone point me to the way things are supposed to be in Windows Server 2008 for a standard ASP.Net installation? The disk permissions are out of whack now.
I have a customvalidator to validate the sum of 2 drop downs.. the validation code is working, because if the sum doesnt match my logic the page is not submitted, but if i select values that match my logic, the page is submitted.. so i know the logic is working, but the error message is not working.. and not sure why..
Some background, last week i had this working based on additional controls, but the business decided they wanted less questions on the form, so all i did was remove the controls from the validation and updated the logic to make sure it was only calculating against the existing controls. reminder that the validation is working( meaning that the page is not being submitted because it failed ) but the error message doesnt display on the page, so no one knows what is happening..
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged Response.Redirect("memberlogin.aspx?d=" + DropDownList1.SelectedValue.ToString)
Im using the following code to get the gridview rows that are checked and then add the values to the database.Its all works correctly unless apart from when i check the row at the top of the gridview where when i check the checkbox it doesnt even change to checked so i cannot add that row into the database.
Is there a tool/control to accomplish this. Have you seen the Yahoo Messenger or MSN messenger, when you get a messenger, a window suddenly opens from no where. How do I do that with Asp.net?Meaning, if there's a incoming IM, I want a window to popup like it does with Yahoo and MSN
asp.net 3.5 IIS7 Hosted on Windows Server 2008 (virtual machine)
I have a website which have been running for about a year without any problems. Users have been able to login etc, but now I get reports about users not able to login while using Internet Explorer. Users using other internet browsers like FireFox, Chrome etc have no trouble logging in.
The website are using the standard Forms authentication.
Also lately another website has been setup in IIS7, but these sites are using application pool. I've stopped this webapplication in IIS, but that doesn't have any effect on my problem
I see that Windows Update have failed to install a lot of patches lately, not sure if that is related to this problem. But some of the windows patches are security patches.
After i changed it, when going to SQL server express, looking at the original table, some how most of the data were changed to 0 and 1, some of them still stay the same, but most of it has been changed to 0 or 1.
When user login into my application,the note saying that Welcome,Joe is show.But,when user try to input something into web page (such as fill in the text box),the LoginName1 that refer to "Joe" is suddenly disappear.Why this happen?
I have Windows Server 2008 (64-bit), VS 2008 with its built-in webserver and an ASP.NET MVC 1.0 webapp.All I'm trying to do is to debug said app. I have a bunch of breakpoints, but they behave in a very strange way. When I fist start a debugging session with F5 and hit a breakpoint, the debugger stops just fine. However, after serveral F10s/F11s debugging suddenly "stops" (no exceptions at that time), but neither VS detaches from browsers' process, nor webapp execution stops: Visual Studio stays attached, and web request continues executing as usual.I tried various browsers (Chrome, Firefox, IE), but to no avail.
This has been working for the past three weeks that I've been developing this application, and for some reason has decided to stop working five minutes ago despite my apparently not doing anything.In Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AppName.Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I have a strange problem with the session. I have global.asax with code in the session_start event. This code calls some code that I have in a helper class. When I first run the project in debug everything is fine. However when I stop debugging and then re-run the project it fails and I have discovered that once the code in the helper class is hit the session is null. If I look in the global.asax session_start code the session is instantiated before it enters the helper class. If I then re-build the project and the re-run it everything works fine again! Why does the session suddenly become null and why does a re-build fix the problem?
I recently reinstalled Windows (on an SSD!) and I'm in the process of setting up IIS and all my web projects. One of my MVC project keeps asking for authentication on everything, including on resources like .css files and images. I'm using the default MVC template login with a custom provider that I'm using for dev purposes. I've tried rolling back my web.config to before I moved the project file and re-set IIS, but that didn't make much of a difference -- aside from changing authentication mode from Windows to Forms. Can you see anything wrong with my config?
I don't have any <authorization> element or anything else related to login, since I'm doing everything via MVC. Update: Tried <authorization><allow users="*"/></authorization>, still not working.
I have a web application that was working fine. I had to make minor changes that had nothing to do with the Session object in any way. When I run local everything works fine. When I publish to our testing box it all runs fine. When I publish to production it times out on the Session object. Dozens of other applications on the production server run fine and have no trouble with Session.