Ok,
This is a good one,
1) The below web.config is what I'm using to access my objects
2) All compilation is successfull
3) Sample aspx doesn't retreive any records
4) netTiersConnectionString appears on the asp.net console without me adding.
5) It won't be deleted, places a remove in the web.config and strike-through's the text in asp.net tab
6) It places the wrong connectstring by default
7) Is this a new feature that I haven't seen posted?
8) I can delete the web.config and the netTiersConnectionString is still there, in the asp.net tab in IIS.
9) useStoredProcedure="true", when this is set to true I get an error
a) The entry 'SqlNetTiersProvider' has already been added.
(c:\inetpub\wwwroot\fr\web.config line 8)
b) Remove that section and run again click the control and still no data, but no error.
c) Where is the config information comming from now! So
now I can't set provider to use stored procedures.
10) Has anyone else had the same problem
11) This is a CTP latest build
12) NUnit Test all succed
13) I'm lost....Help.
14) Download the example Northwind Web app and set it up ,
a) It returned records fine
b) When the app ran it launced in it's own web server in VS2005
c) No records returned when I run my sample on the Local IIS server.
d) Will test adding the sample Northwind app to the local IIS server.
i) Completed that test
with the same results on IIS server, Northwind app responed the same way
e) Will test my app running from VS2005 web server
i) Test returned no records, and
still dont know why the Northwind sample works and mine doesn't.
15) Found answers to the auto adding of nettiers config, it was in
global setting of site, don't know how it got there.
16) Resolved Issue of Data not showing up
A) Needed to assign a theme and skin
i)
This needs to be documented with the samples, which came with nothing but
code.
17) My sample app works fine but there are issues when the app is deployed to an IIS machine(localhost).
1) Parser Error Message: Missing connection string
Source Error:
Line 13: <add Line 14: name="SqlNetTiersProvider" Line 15: type="NCC.FR.DataAccessLayer.SqlClient.SqlNetTiersProvider, NCC.FR.DataAccessLayer.SqlClient" Line 16: connectionStringName="netTiersConnectionString" Line 17: useStoredProcedure="true" |
18) The above error was from me finding the same
web.conf in the root folder, and removing all items in it. Then I
had removed as it said the connection string. Removed the
web.config, replaced with the VS2005 working version and Bam, Works
fine. Issue Closed.
19) The No-Records problem was from
NetTiers not generating a skin file for the project, I'm not sure
if this is suppose to be the case....But NOTE: Your project will not
work until u define a skin file for the page using the controls.
//// Current web.Config
<configSections>
<section name="netTiersService"
type="NCC.FR.DataAccessLayer.Bases.NetTiersServiceSection,
NCC.FR.DataAccessLayer" allowDefinition="MachineToApplication"
restartOnExternalChanges="true"/>
</configSections>
<netTiersService defaultProvider="SqlNetTiersProvider">
<providers>
<add
name="SqlNetTiersProvider"
type="NCC.FR.DataAccessLayer.SqlClient.SqlNetTiersProvider,
NCC.FR.DataAccessLayer.SqlClient"
connectionStringName="netTiersConnectionString"
useStoredProcedure="true" applicationName="LMS2WebApp"
providerInvariantName="System.Data.SqlClient"/>
</providers>
</netTiersService>
//// Modified web.Config
<configSections>
<section name="netTiersService"
type="NCC.FR.DataAccessLayer.Bases.NetTiersServiceSection,
NCC.FR.DataAccessLayer" allowDefinition="MachineToApplication"
restartOnExternalChanges="true"/>
</configSections>
//// Added by IIS through asp.net tab
<connectionStrings>
<remove name="netTiersConnectionString" />
<add name="netTiersConnectionString"
connectionString="server=1x.x.0.xxx\Ncc;database=NatSQL;Integrated
Security=false;user=xxx;pwd=xxxxx;Connection Timeout=20;" />
</connectionStrings>