| | |
Web Server Path for Access DB
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2007
Posts: 26
Reputation:
Solved Threads: 0
Hi
I have just uploaded an Access DB and an .aspx page that writes to the DB. It works fine locally ie IIS.
The problem is that when on the host the db does not get written to. I think its to do with the Source to the DB on my web.config file.
The db is on annex2/annex.eu/wwwroot/annexll.mdb on the host
my code on the Web.config is as follows
THanks
I have just uploaded an Access DB and an .aspx page that writes to the DB. It works fine locally ie IIS.
The problem is that when on the host the db does not get written to. I think its to do with the Source to the DB on my web.config file.
The db is on annex2/annex.eu/wwwroot/annexll.mdb on the host
my code on the Web.config is as follows
ASP.NET Syntax (Toggle Plain Text)
<add key="MM_CONNECTION_HANDLER_ss1" value="default_oledb.htm" /> <add key="MM_CONNECTION_STRING_ss1" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=annexeu/annex2.eu/wwwroot/annexll.mdb;Persist Security Info=False" /> <add key="MM_CONNECTION_DATABASETYPE_ss1" value="OleDb" /> <add key="MM_CONNECTION_SCHEMA_ss1" value="" /> <add key="MM_CONNECTION_CATALOG_ss1" value="" />
THanks
•
•
Join Date: Jun 2007
Posts: 26
Reputation:
Solved Threads: 0
The ISP gave me the path C:\HostingSites\Annexeu\Annex2 they said nothing about security.
This is what I've tried since
In my Web.Config
In my Returns.aspx file on Page load
But it still writes nothing into the Access DB. Nevertheless there no errors coming up which is strange. No errors so I have nothing to go on
ViRiPuff
This is what I've tried since
In my Web.Config
ASP.NET Syntax (Toggle Plain Text)
<configuration> <system.web> <customErrors mode="On"/> </system.web> <appSettings> <add key="MM_CONNECTION_HANDLER_ss1" value="default_oledb.htm" /> <add key="MM_CONNECTION_STRING_ss1" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}\db\AnnexII.mdb;" /> <add key="MM_CONNECTION_DATABASETYPE_ss1" value="OleDb" /> <add key="MM_CONNECTION_SCHEMA_ss1" value="" /> <add key="MM_CONNECTION_CATALOG_ss1" value="" /> </appSettings> </configuration>
In my Returns.aspx file on Page load
ASP.NET Syntax (Toggle Plain Text)
Sub Page_Load() Dim connstr connstr = String.Format(ConfigurationManager.AppSettings("MM_CONNECTION_STRING_ss1"), Server.MapPath("~")) End Sub
But it still writes nothing into the Access DB. Nevertheless there no errors coming up which is strange. No errors so I have nothing to go on
ViRiPuff
•
•
Join Date: Apr 2008
Posts: 115
Reputation:
Solved Threads: 6
just try this connection string in your code first and try something like this:
This is presuming that the DB is in the root file on your web server.
Also, What is the code you are using to write values to the database?
ASP.NET Syntax (Toggle Plain Text)
connstr = "Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("AnnexII.mdb")""
This is presuming that the DB is in the root file on your web server.
Also, What is the code you are using to write values to the database?
Last edited by peter_budo; Apr 18th, 2009 at 4:41 am. Reason: Correcting closing tag
•
•
Join Date: Jun 2007
Posts: 26
Reputation:
Solved Threads: 0
Hi
Thanks again for your help. I created the site with Dreamweaver 8 and here's the INSERT code
I'll try your suggestion now. I'll report back in a few minutes
Thanks again for your help. I created the site with Dreamweaver 8 and here's the INSERT code
ASP.NET Syntax (Toggle Plain Text)
<MM:Insert runat="server" CommandText='<%# "INSERT INTO Returns (AccessCode, CallSign, Delivering, DepDate, Email, ETADate, Flag, GrossTons, IMOno, LastDelDate, LastDelPort, NextPort, NoticeDate, NoticeTime, PreviousPort, Q35, VesselName) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" %>'
I'll try your suggestion now. I'll report back in a few minutes
Last edited by peter_budo; Apr 18th, 2009 at 4:42 am. Reason: Correcting closing tag
•
•
Join Date: Jun 2007
Posts: 26
Reputation:
Solved Threads: 0
Hi again
I've gone back to the path my isp gave me on the Web.config. Its now opening the database but not writing to it.
I know this because when I view the DB using my ftp immediately after trying to write to it from the web the db is locked for about 5 minutes. After about 5 minutes the db is viewable again but no data has been written to it.
Here is the path from the isp
C:\HostingSpaces\annexeu\annex2.eu\wwwroot
ViRiPuff
I've gone back to the path my isp gave me on the Web.config. Its now opening the database but not writing to it.
I know this because when I view the DB using my ftp immediately after trying to write to it from the web the db is locked for about 5 minutes. After about 5 minutes the db is viewable again but no data has been written to it.
Here is the path from the isp
C:\HostingSpaces\annexeu\annex2.eu\wwwroot
ViRiPuff
![]() |
Similar Threads
- PHP & Apache Server Security Questions (PHP)
- Error in Web Setup Project while using Installer Class and Custom Actions (ASP.NET)
- how can I run sitemap_gen.py to generate Google Sitemap on my hosting company server? (Python)
- How To Authenticate Clients to printing From Server Using ASP.NET C# (ASP.NET)
- Relative path of MS Access Database (ASP.NET)
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- Securing my database access password (PHP)
- Forms authorization, only want a few links (ASP.NET)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- non access to images on web (HTML and CSS)
Other Threads in the ASP.NET Forum
- Previous Thread: Manipulate asp:label through ul/li
- Next Thread: Javascript_urgent
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol feedback findcontrol flash flv form forms gridview homeedition hosting iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings relationaldatabases rotatepage save search security serializesmo.table sessionvariables silverlight smartcard sql ssl suse textbox tracking treeview typeof unauthorized validatedate validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml





