473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Migrating from Vb Script to VB.NET & web.config

Hi everyone, I'm using Visual Web Developer '05 beta, VB.NET, Access.

I'm a complete newbie to .NET, so please bear with me! In classic ASP. I
used to put my connection string in global.asa. Since web.config is XML,
obviously I can't do a Server.MapPath() in that file. Of course I'll know the
path to the DB while working locally, but what about when I'm ready to build
my application and put it on a remote server in a shared hosting environment?

How can I map the path to the db in web.config? What should I be doing?

Thanks,
Brandon
Jul 21 '05 #1
1 1581
try to store the db path in the appsettings section of your web.config

"Brandon Taylor" wrote:
Hi everyone, I'm using Visual Web Developer '05 beta, VB.NET, Access.

I'm a complete newbie to .NET, so please bear with me! In classic ASP. I
used to put my connection string in global.asa. Since web.config is XML,
obviously I can't do a Server.MapPath() in that file. Of course I'll know the
path to the DB while working locally, but what about when I'm ready to build
my application and put it on a remote server in a shared hosting environment?

How can I map the path to the db in web.config? What should I be doing?

Thanks,
Brandon

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pieter | last post by:
Hi, I migrated one of my solutions(VB.NET 1.1, containing a Windowds Forms project and a Class Library project) to the 2.0 Framework using the inbuild-wizard. After migrating the...
11
by: Mike Towers | last post by:
Hi, The company I work for has a web site (IIS5) build using ASP and COM+ components which are written in VB6 and provide the business and database logic for the site. We would very much like...
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
1
by: Brandon Taylor | last post by:
Hi everyone, I'm using Visual Web Developer '05 beta, VB.NET, Access. I'm a complete newbie to .NET, so please bear with me! In classic ASP. I used to put my connection string in global.asa....
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
1
by: Max | last post by:
hi i have stored my connction string in web.config as we do usually. code of web.confing is given below. check the password field contain "&" character. now when i run my application it gives...
28
by: Peter Michaux | last post by:
Hi, I'm playing with dynamic script insertion to make a request to the server for a JavaScript file to be automatically run when it arrives in the browser. It works but... The page caching...
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
7
by: jeddiki | last post by:
Hi, As I am in Turkey at present, I can not see vidoes on youtube. So I have tried a few proxies but keep finding them slow or not working. So I have installed myphpProxy on my server under...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.