You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by ib...@incubator.apache.org on 2005/01/16 04:25:14 UTC

[Apache iBATIS Wiki] Updated: How do I setup NPetshop?

   Date: 2005-01-15T19:25:14
   Editor: RobertoRabe
   Wiki: Apache iBATIS Wiki
   Page: How do I setup NPetshop?
   URL: http://wiki.apache.org/ibatis/How do I setup NPetshop?

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -7,17 +7,20 @@
 Setup Web Sharing for the `NPetshop.Web` folder (right-click for folder properties and the Web Sharing tab).
 
 = Data Source =
-Open the NPetshop solution in VS.NET, and edit the `dao.config` file in the `NPetshop.Web` project for the database being used.
+Open the NPetshop solution in VS.NET, and edit the `dao.config` file in the `NPetshop.Web` project for the database being used (make sure the ''<database>'' entry you are using is NOT ''commented'').
 
 {{{
-<dataSource name="Access"
+<database>
+  <provider name="OleDb1.1"/>
+  <dataSource name="Access"
     connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data
     Source=C:\projects\ibatis\svn\NPetshop\NPetshop.Web\npetshop.mdb"/>
+</database>
 }}}
 
 = Run NPetshop =
 Start/Run the application in Debug mode and browse the NPetshop!  
 
-If necessary, set NPetshop.Web as the !StartUp Project and set Default.aspx as the Start Page.
+If necessary, set `NPetshop.Web` as the '''!StartUp Project''' and set `Default.aspx` as the '''Start Page'''.
 
-If you get an "Operation must use an updateable query" error when performing an action that causes a database insert, update, or delete, you may need to give the ASP.NET machine account Modify permissions for both the folder containing the NPetshop Access database as well as the Access database file itself. Modify permissions are required for the folder since Access creates an .ldb file (locking database file) in the same directory as the Access .mdb file whenever a user uses the database.
+If you get an ''"Operation must use an updateable query"'' error when performing an action that causes a database insert, update, or delete, you may need to give the ''ASP.NET'' machine account ''Modify'' permissions for both the folder containing the NPetshop Access database as well as the Access database file itself. Modify permissions are required for the folder since Access creates an .ldb file (locking database file) in the same directory as the Access .mdb file whenever a user uses the database.