Knowledgebase List
error string does not contain a definition for
Error: string does not contain a definition for ... and no extension method

You may encounter this error when a reserved keyword is used as a BusinessObject. For example, the keyword Culture is a reserved keyword. If you have a table named Culture, the generator will then generate a BusinessObject class called Culture. This BusinessObject class is used everywhere when calling methods on the Middle Tier. For example it may do a call like this

DdlCultureID.DataSource = Culture.SelectCultureDropDownListData();

This will generate an error in Visual Studio. To fix this make sure to use the Fully Qualified Class Name, e.g.


Make sure to do this everywhere there is a keyword confict.
Express: No code in the DataLayerBase. All I see is add your own code here
Our free Express Product Line only generates Unbound ASP.NET Web Forms. Unbound web forms are not bound to the database. This is the reason it does not have code in the generated DataLayerBase classes. Developers are expected to add their own code here. To add your code please follow this tutorial:
Is there upgrade pricing or Cost
No there is none. Every version that comes out is considered a new product and therefore sells for full price. However, if you're a current customer, please email us at and we can send you a coupon with substantial discount and therefore can be considered an upgrade price.
Does not generate code
You just installed the software and you started generating code but no code is generated.

There could be a few things that you need to check.

First, go to the App Settings tab, under the App Files Directory, make sure that the directory it's pointing to exist. If not, browse onto the directory. Once done, regenerate your code.

If that did not work, check that the Database Name under the Database Settings tab is the correct database you want to generate code for. Also make sure (in SQL Server) that you have Tables or Views in that table.

Lastly, you may want to right-click on the application (AspxFormsGen), and then on the context menu click Run as Administrator, and then try to generate code again.
Handles clause requires a WithEvents variable defined in the containing type or one of its base type
When you encounter this along with lots of errors in the VB.NET web site it's probably because you opened the generated web site as a project in Visual Studio. Close the project, and then in Visual Studio click File, and then Open Web Site, and then point to the generated folder.
Will not install in Windows Server Operating System Products
Most of our products will not install in Windows Server Operating System Products, e.g. Windows Server 2008. We made it this way by default. Our code generators are made for development, and therefore should be installed in development machines. The generating engine is very powerful that in as little as One Click you could generate thousands of lines of code. To make it simple, code generated will overwrite most existing code without notice. This can have a devastating effect on Production Systems which are normally installed in Windows Server Operating System products.
Not generating Code
This may be caused by a few things:

1. Check if the product was installed in the Recommended Directory.
   - Go to the App Settings Tab
   - Under the App Files Directory, browse to where you installed the AppFiles folder of the application
   - Run again and regenerate your code

2. You may need Administrator Rights to run the application.
   - Right-Click on the application
   - Choose Properties
   - Click on the Compatibility Tab
   - Check Run this program as an administrator
   - Click the Apply button and then close the Properties Context Menu
   - Run the application and start generating code
I removed or commented the Required Model Validation Attribute for a specific field but it still req
By design, a dictionary is hard coded on the drop downlist, for example:

<td class="editor-field">@Html.DropDownListFor(vm => vm.ProductsModel.ProductName, new SelectList(Model.ProductsDropDownListData, "ProductID", "ProductName"), "Select One", new Dictionary<stringobject> {{ "data-val", "true" }, { "data-val-required", "Product Name is required!" }})</td>

So rather than commenting the field's model required validation like this:
//[Required(ErrorMessage = "{0} is required!")]
[StringLength(40, ErrorMessage = "{0} must be a maximum of {1} characters long!")]
[Display(Name = "Product Name")]
public string ProductName { getset; }

Simply remove the hard-coded code shown below.

, new Dictionary<stringobject> {{ "data-val", "true" }, { "data-val-required", "Product Name is required!" }}
Why is the Foreign-Key field shown as a TextBox instead of a DropDownList?
The related foreign table may have not been selected when you generated code. Or, if the foreign table was selected, the foreign table may have more than one (1) Primary Key.
Can I choose a few fields from a table to generate code for?
No. All fields from Selected Tables/Views or All Tables/Views will be generated. Adding this feature will take away from the ease of use as well as our One Click philosophy.