Forums

This topic is locked

.NET connection to brinkster

Posted 27 Aug 2002 15:54:54
1
has voted
27 Aug 2002 15:54:54 andre maas posted:
Does someone know how to connect to a accessdatabase at brinkster in .NET.
I've change te connectrionstring in the web.config in a server.mappath but this is what I get.
-----------------------------------------------
The '&' character, hexadecimal value 0x26, cannot begin a name. Line 4, position 90.
----------------------------------------------

This is the line in the standard web.config
----------------------------------------------
add key="MM_CONNECTION_STRING_connDataGrid" value="Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("\membername\db\db.mdb" & ";" & "Persist Security Info=False"/>
----------------------------------------------

Can someone help me please.

Masor<font face='Tahoma'></font id='Tahoma'><font size=2></font id=size2>

Replies

Replied 28 Aug 2002 12:00:42
28 Aug 2002 12:00:42 andre maas replied:
Got it myself:
--------------------------------------------------------------------------
configuration&gt;
&lt;appSettings&gt;
add key="MM_CONNECTION_HANDLER_connDataGrid" value="default_oledb.htm" /&gt;
add key="MM_CONNECTION_STRING_connDataGrid" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Server.MapPath(/username/db/db.mdb)"/&gt;
add key="MM_CONNECTION_DATABASETYPE_connDataGrid" value="OleDb" /&gt;
add key="MM_CONNECTION_SCHEMA_connDataGrid" value="" /&gt;
add key="MM_CONNECTION_CATALOG_connDataGrid" value="" /&gt;
&lt;/appSettings&gt;
&lt;/configuration&gt;

----------------------------------------------------------



Reply to this topic