Me, Myself and Mayvelous
16 Nov
This is one of the most frustrating errors I’ve got to fix. I’m using rad editor for my aspx pages and in some pages, it works like a charm but some just doesn’t. Whenever I tried to update the page, it threw this error, “An error has occurred. Refresh the screen and try again”, in the rad editor content area.
My first thought was, the files much be read-only and hence to make writable to the files but it wasn’t the case. So I checked my code, cross check with another working page, recheck again and again, but I found no difference in code and doesn’t work. Then I created a new “test.aspx” file and pasted the same code and tested it. Strange enough, it works!
So I thought may be my page got corrupted, so I deleted that page and recreated a new page with the same name, paste the code back in. Then it’s not working again. The same god damn code in “test.aspx” is working and not in the other page.
Something was really fishily wrong! Since they are the exact same code, the only difference I can think of now is the file name. But I can’t change all the file names without knowing whether that’s the actual cause of the problem. So my final option, turn to google for help and there it was!
(ID#250) “An error has ocurred. Refresh the screen and try again”
PROBLEM
When saving the content from r.a.d.editor directly in the ASPX/ASCX the following error appears:
An error has ocurred. Refresh the screen and try again.SOLUTION
When saving the r.a.d.editor content directly in the ASPX/ASCX the page name should not contain “(“, “)”, “-”, or ” ‘ “. If such names are obligatory, r.a.d.editor’s content should be saved in a database.Link: Telerik KB Article
So stupid error. My error files are named using the “-” dash. Once I removed the dash, all working. It’s just so lame error message and even in the KB no explanation about why it cannot use a dash in the file names. Well you can use dash if you saving content in DB, but why not in the actual file? I just not satisfy with that KB solution explanation. Nevertheless, it solved my problem and thank god for that. Took hell lotta time from me. I guess next time, I better google first then check on my code. Hmm.
25 Jul
Whenever you get this kind of error messages with instructions, do not follow the instruction straight away.
Always turn to your best friend, google, to see how others solve it and search for the best possible answer.
May be this is a bad advice but I never trust error message instructions. Of course you must read the message and instruction properly to see it is a sensible/reasonable instruction on the problem. As for me, I just have to find out whether others are actually following the instructions as mentioned or not.
The error:
Unable to find script library ‘/aspnet_client/system_web/1_1_4322/WebUIValidation.js’. Try placing this file manually, or reinstall by running ‘aspnet_regiis -c’.
The error dialog box pops up on those pages with form validation.
This problem happens whenever the system cannot access aspnet_client folder either you don’t have a permission or it is not in your root directory, ie. when you changed the root directory for your virtual folders, from Inetpub/wwwroot to some other folder, and when you use Validation controls (eg. RequiredFieldValidator, ValidationSummary, etc) on input TextBoxes in one of your site.
You can check whether you are using the default root or not by checking the property > Home Directory of your IIS virtual directory as shown on the following images.
For this error, I don’t like uninstalling IIS and reinstall again just for the sake of one site error. There got to have some easier way to solve it and yes, there is.
I’ve also found out that when you follow the error instructions straight away, you might screw up the problem more and some of the google results shows that it actually got screwed in some cases.
Some people uninstalled and reinstalled IIS but that doesn’t solve the problem and they have to uninstalled and reinstalled .net framework as well.
Different solution for different cases I’m sure, but for my case, I tried the easiest resolution ie. copy the aspnet_client folder from wwwroot to my new virtual root folder, and voila it works!
Read more in the following sources:
26 Apr
Remember that Cache error at the bottom of my site??
Well guess what, it’s gone, finally!
It was nothing! I just created “cache” folder and give 777 access to it.
I did created cache folder before but it was in the wrong directory.
I thought I have to add that in the theme folder and the actual theme folder but no, it has to be at main root.
Well now it’s gone, phhhheeeewwwww!!
19 Apr
I was fighting with asp dropdownlist for not being able to combine two columns directly. Say I got the same scenario as the following:
Suppose you want a drop-down list to display both the first name and the last name of each employee in the company.
I should be able to use DataTextField to combine two columns like:
ddlemployeename.DataTextField = "firstname" + ', " + "lastname";
But noooo…it gives me this error:
DataBinder.Eval: ‘System.Data.DataRowView’ does not contain a property with the name firstname, lastname.
You have to go mingle with your storeprocedure or Sqlcommand statement to change the string. Then only you can set that new string to DataTextField. Something like below. Very inefficient!
There is another efficient way of adding multiple fields in Dropdownlist using DataSet and DataTable by adding a new column on fly in DataTable object.
I did tried that method, but didn’t work for me, I’ll have to try again later. Anyway that code is in page 4 of the referenced article, so you can check that out as well.
SQL Statement
SELECT lastname + ‘, ‘ + firstname AS ‘EmployeeName’
FROM EmployeesBinding Code
ddlemployeename.DataTextField = “EmployeeName”;
You can use a data-binding expression to set the DataSource property. The expression you use must evaluate to a .Net object that exposes the ICollection interface. You cannot use expressions to set the other properties. The values for DataTextField and DataValueField each must match the name of one field in the data source, so you cannot assign DataTextField by combining two or more fields in the datasource.
What the hell that bold part suppose to mean? For the moment I’ll just change my storeproc for that and play around with DataTable column later.
Any of you have any better way of solving this problem please let me know.
Thanks.
Ref: Data Bound Controls (.PDF)
3 Apr
Lately I’ve been getting too much errors in my browser FireFox.
I’m sure what the cause of those errors but there is an obvious slowness in the broswer especially with gmail chat on.
Sometime I can’t even move from one tab to another and whenever I try to type email, the letters appear too slow.
May be I got too much extensions loaded or conflicting some.
I tried to use Opera sometimes but it’s abit slower page load…or that’s how I feel, plus cant use my favorite extensions.
Anyway it’s very annoying to get errors all the time…if it’s keep happening, me not gonna like it anymore.
Technorati Tags: FireFox Errors, Browsers, Errors
27 Feb
Is she Burmese? Her surname, “Myint”, sounds very Burmese. She looks like one too.
If she is then great! Good to see some Burmese faces in well recognized companies such this.
Janice Myint
Customer Support
Janice has a Masters of Engineering from Cornell University. She brings with her a great deal of experience working with customers and a commitment to uphold Technorati’s mantra: “Be of Service”. A transplant from Virginia, she lives in San Francisco, co-owns an urban art gallery and retail store in the Lower Haight neighborhood of San Francisco, and, as a second degree black belt, practices Taekwondo in her spare time.
Oh I wanna complaint about technorati.:D
I can’t see any technorati back links in my wordpress dash board. Before I can see who linked me but now I can’t, been a while now. Don’t know how to fix or it’s technorati problem that they’re not tracking my site??
Link: Technorati Staff Profiles
Check her blog
Technorati Tags: Technorati Staff, Profiles, Burmese, Myanmar, Technorati Back Link Tracking
6 Feb
The Problem:
WinForm application to create and populate the development database.
The generated data, scripts and permissions files+folders are to be copied from the project folder to debug/release folder on a successful build.
Uses a pre-build event from ‘Project properties > Common Properties > Build Events’ of VS.Net 2003.
Uses xcopy to copy files and directories.
The Test and Check :
The (!@#$%*&) Error:
Performing Pre-Build Event…
‘xcopy’ is not recognized as an internal or external command,
operable program or batch file.Project error: A tool returned an error code from the build event
Pre-Build Event failed
The Solution:
After a bit of googling, I found out that I’ve messed up the "Path" variables from the registry while trying to install php manually a few week back. Because of it none of my basic command prompt were working and definitely pre-build xcopy would not work.
The reference article said,
"If commands don’t work, then, the first thing you should check is the contents of your Path variable. At a bare minimum, your Path should start with the following:"
PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\Wbem
The system registry environment variable type should be REG_EXPAND_SZ, not REG_SZ.
You can find the path by: cmd > regedit > browse to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
So…
I’ve changed my mess up path:;C:\php;;C:\Program Files\QuickTime\QTSystem\
To the correct path:
C:\PROGRAM FILES\THINKPAD\UTILITIES;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI
Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
Server\80\Tools\Binn;C:\php;C:\Program Files\QuickTime\QTSystem\
Well you don’t need all those paths, I just added a few from my friends’ paths to make mine more complete.
Remark:
# 3 days to figure out,
# 10 min to search for the solution,
# 2 min to fix the problem.
You SUX May!