Connectionstring i en Web.config
Jeg vil gerne have min web.config til at kigge i applikationens rodmappe for at lede efter databasen. Jeg får hele tiden error at database stien ikke er sat korrekt. Web.config ser således ud:<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data"/>
</configSections>
<appSettings/>
<dataConfiguration defaultDatabase="DotFinance"/>
<connectionStrings>
<add
name="DotFinance"
providerName="System.Data.OleDb"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db/DotFinance.mdb" />
</connectionStrings>
.......
