I use SubSonic 2.2 for asp.net 2.0. I successfully generated the DAL for my web project. Now I'm trying to generate a web editor page for a particular database table:
sonic editor /table Table /out OutDir
but it doesn't work. This is the error:
Generating editor for Cantiere
ERROR: Trying to execute editor
Error Message: System.NullReferenceException: Riferimento a un oggetto non impos
tato su un'istanza di oggetto.
in SubSonic.SubCommander.Program.GenerateEditor(String table, String outDir)
in D:\@SubSonic\SubSonic\SubCommander\Program.cs:riga 751
in SubSonic.SubCommander.Program.GenerateEditor() in D:\@SubSonic\SubSonic\Su
bCommander\Program.cs:riga 727
in SubSonic.SubCommander.Program.Main(String[] args) in D:\@SubSonic\SubSonic
\SubCommander\Program.cs:riga 90
Execution Time: 246ms
And this is the configuration file:
<configuration>
<configSections>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" requirePermission="false"/>
</configSections>
<SubSonicService defaultProvider="Default">
<providers>
<!-- Referencing a connection string setup in the connectionStrings section -->
<!-- Also Supports MySQL, Oracle, SQL2000, SQL2005, SQLCE, SQLLite at the time of writing -->
<add name="Default" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="defaultConnectionString" generatedNamespace="Persistence"/>
</providers>
</SubSonicService>
<appSettings/>
<connectionStrings>
<add name="defaultConnectionString" connectionString="data source=127.0.0.1; initial catalog=***; user id=***; password=***; application name=***"/>
</connectionStrings>
</configuration>