What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Jun 27, 2007 by ted.husted
Labels: Phase-Implementation, Featured
CommonProblems  
Quick solutions to common problems (Issue 26)

(!) Error Message
(?) Error State
(/) Probable Cause

See also Yazaar Common Problems

Visual Studio 8

(?) JavaScript debugging isn't enabled
(/) Under Options/Web Browser/Internet Explorer Options/Advanced, clear the "Disabled Script Debugging" items. Right-click on a HTML file, select "Browse with", and ensure that either the Internal browser or IE is selected as the default. Then, you should be able to set breakpoints and hover over runtime variables.
(?) Changes made in a HTML page disappear.
(/) If debugging is enabled, VS may bring up a copy of the page, let you change it, and then throw it away. It may be a HTML issue, I'm not sure. The "tell" is that the tab will indicate "http://localhost ..." as the source.

Ankh / Subversion

(!) $(name) is not version-controlled.
(/) A file was renamed in the last commit. Update to the latest revision, and reopen the solution. You must do both.
(/) Files were opened as "Solution Items". Delete the "Solution Item" entry (any files listed here are not touched).

iBATIS SQL Query

|| Changes made to Spring or iBATIS configuration are not reflected after restarting application using development server,
(!)
(/) The VS 2005 Development server needs to be stopped to release and reload the iBATIS resources.
(!) "Column was set to data type implicit default; NULL supplied for NOT NULL column ...
(/) An empty field is being set to null. Change the helper call to use an empty string for null.
(?) Checkbox control isn't displaying YES for "checked" column
(/) Be sure that column has been added to the MyEntry object, which is (still) used to display items on a list.
{?} Could not find a part of the path
(/) The path to the resource files is different for a web project. In sqlmap.config.xml set the root key to "./"
(?) You change the query but the results don't change or a parameter is null.
(/) The parameter was not added to list of inputs for the command and so was not passed through by the helper.
(!) Can't resolve reference to object 'Mapper' while setting 'Mapper'.
(/) One of the iBATIS SQL configuration files is formatted incorrectly.
(!) Index was out of range. Must be non-negative and less than the size of the collection.
(/) The number of question marks in the statement doesn't match the param map.
(?) The wrong column is being updated.
(/) One of the properties specified by the param map is null, and the other columns are "shifting" back.
(!) Index was outside the bounds of the array.
If this message suddenly displays in the web application, you may have added a new setting to the sql-maps-config.xml Test project and not replicated the setting in the Web project. This particular configuration file is not automatically overwritten, since the projects use different settings for the "root" variable.

Jayrock/JSON RPC

|| Jayrock expects an property to have both a get and a set method. Add a set method, even just to throw a not implemented exception.
(!) My property has a get method, but Jayrock does not translate it to JSON.
(/)
(!) JS: ${.ashx Class} not found. (e.g "PhoneBook not found.")
(/) The anvil.js script is not included by the page.
(/) There's a runtime error in the .ashx class that prevents the bootstrap RPC script from running. Try accessing the ${ClassName}.ashx directly.
(/) If running a jsunit test against a server-side handler, be sure that the server is running, and open the test runner through the server (http://localhost:3082/js/lib/jsunit/testRunner.html). Likewise, open the test page via http://localhost/ ...
(!) Parser Error Message: Could not load type 'Global'.
(/) Code reformatting has disturbed the global.asax.cs fil. Revert to a prior revision.
(/) The essential fix is to remove from Global.asax.cs the import statement and change Inherits back to "PhoneBook.Global". (You will have to use another text editor to do this, since VS restricts editing of Global.asax.)
(?) Under FireFox, it takes 25+ seconds to first load an Dojo/Ajax page. The Jayrock test pages load fine.
(/) The problem is FF specific and doesn't happen with IE. Switch to the internal web browser and only pull up FF when needed (say to use FireBug).
To switch default web browsers, right client on a HTML or ASPX file, choose browse with, select the Internal Web Browser, and also select "Set as Default".

ASP.NET

(?) After deploying a new version, there are spontaneous NullReferenceException, DataBinder.Eval, or other low-level errors or oddities, that can't be reproduced.
(/) The binaries may not have deployed correctly. Be sure all the ASPX code and binary assemblies where checked in and updated on the server. The simplest thing to try first is to touch the Web.config file, which should cause the application to gracefully redeploy. If necessary, stop and start the IIS service.

ASP.NET Resources

(!) No message found under code '$(name)' for locale 'en-US'
(/) A text message is being referenced by a page or a test but has not been added to the "\\Core\Message.resx", OR it's been added but the solution has not been rebuilt. The Message resources are embedded in the Core assembly, so it must be rebuilt before a message is available. VStudio will not rebuild the Core automatically if the Messages.resx changes.


Sign in to add a comment