I get an error in VS design view for all of the screens that use any of the DataSourceControl objects, including the Admin screens that are automatically generated. The error displayed is "Error Creating Control Unable to load NetTiersServiceSection"
I have tried this with multiple databases (including Petshop), thinking that there might be a naming conflict causing it, but the same things occurs on all of them. The admin pages build and work without errors, but they can't be edited in design view. If I cut out the data source, like the example below, the error disappears and I can view the controls.
<data:OrdersDataSource ID="OrdersDataSource" runat="server"
SelectMethod="GetPaged"
EnablePaging="True"
EnableSorting="True"
> <Parameters>
<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
</Parameters></data:OrdersDataSource>
One thing I noticed is that the NetTiersServiceSection is named slightly different in the generated Web.Config vs the one that is displayed in the summary report.
Web.Config
<section name="Petshop.Data" type="Petshop.Data.Bases.NetTiersServiceSection, Petshop.Data" allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>
SummaryReport
<section name="netTiersService" type="PetshopTest.Data.Bases.NetTiersServiceSection, PetshopTest.Data" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />
I tried renaming the section in Web.Config to NetTiersService, but get the same result.
I am using VS2005, .NetTiers 2.2, and CodeSmith Professional 4.1.2.
Has anyone else had this problem?
Thanks,
Daryl