473,387 Members | 3,750 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,387 software developers and data experts.

deploying my app to our webserver (on win2003 machine)

17
Hello,

I need some begginers help here with the following:

I developed ASP 2.0 application on my personal machine which is using the
wwwroot localhost and everything works fine.

my question is how do I move/transform my asp application to work on our webserver (how do i deploy it ). ?
to be more specific, in my asp application (using the ms visual studio 2005 ide)
the query points to my local Access d.b. that reside on local pc hard drive,
and i need help with pointing the query to fetch records from the Access d.b.
that reside on my webserver.

I hope i was clear with my issues, please let me know if more information is needed.

TIA
May 20 '08 #1
7 1469
Curtis Rutland
3,256 Expert 2GB
This depends on how you connect to your DB.

If you use OleDb:
If you had put your Access DB in your App_Data folder, you shouldn't have to change anything. If you didn't but want to, here's the connection string:
Expand|Select|Wrap|Line Numbers
  1. Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\myDatabase.mdb;User Id=admin;Password=;
  2.  
If you didn't and don't want to, you just need to change your connection string to point to the correct location.

If you use ODBC:
Copy your DB to wherever you want on the webserver, and set up a DSN with the same name as the one on your local machine.

If you were using the AccessDataSource
Just make sure that the 'DataFile' attribute is pointing to the correct location on the webserver where you put the database.



Now as to deploying there's more than one way to go about this. You can publish your site, which will precompile the site and deploy it to your webserver. I don't usually do that, but it's a great option.

I just copy the directory over to the webserver. Just make sure that you set it up as an application or a virtual directory under IIS, or the application relative links (~/whatever.aspx) will not work.

Hello,

I need some begginers help here with the following:

I developed ASP 2.0 application on my personal machine which is using the
wwwroot localhost and everything works fine.

my question is how do I move/transform my asp application to work on our webserver (how do i deploy it ). ?
to be more specific, in my asp application (using the ms visual studio 2005 ide)
the query points to my local Access d.b. that reside on local pc hard drive,
and i need help with pointing the query to fetch records from the Access d.b.
that reside on my webserver.

I hope i was clear with my issues, please let me know if more information is needed.

TIA
May 20 '08 #2
Plater
7,872 Expert 4TB
Are you using the "Publish" command to put your website on the server computer? I recomend it.
Then check for things like mentioned in the post above.
May 20 '08 #3
vstud
17
Hi and thank you both for the info and comments.

i.
I believe I'm using the AccessDataSource and currently that was pointing to my local access d.b. on my local hard drive folder.
I take it that all i need is to change from DataFile="c:\asp\trx_DB.mdb"
to DataFile="http\\:www.mysite.com\DB\trx_DB.mdb" ... ?

( i didn't get a chance to test it yet since my webserver is in the office )

ii.
My IIS on my webserver already have mysite.com (url for that matter) and I have
most of the website running via HTML and old classic asp pages.
I've added (installed) the .NET 2.0x on the webserver as well.

other than just copying the directory to my webserver application folder, do i need specifically to "tell" iis that this .aspx is a new application?
I also tried to publish my .aspx from my local pc to the webserver but ms IDE (visual studio 2005) only let me publish it to my local hard drive and if I select ftp location it fails... not sure why..

any ideas will be appreciated.

TIA
May 21 '08 #4
Plater
7,872 Expert 4TB
I PUBLISH to an HTTP location on my server. (Had to turn on frontpage extensions for my server)
Yes, I think you need to tell IIS that it's an ASP.NET application so that the ASPNET side of stuff loads up.
May 21 '08 #5
Curtis Rutland
3,256 Expert 2GB
Hi and thank you both for the info and comments.

i.
I believe I'm using the AccessDataSource and currently that was pointing to my local access d.b. on my local hard drive folder.
I take it that all i need is to change from DataFile="c:\asp\trx_DB.mdb"
to DataFile="http\\:www.mysite.com\DB\trx_DB.mdb" ... ?

( i didn't get a chance to test it yet since my webserver is in the office )
I've never tried a web url to my db before. If you know what the absolute path is, I'd use that. If you don't, you can figure it out by
Expand|Select|Wrap|Line Numbers
  1. Response.Write(Server.MapPath("/DB/"));
or whatever path you want. It'll return the absolute path on the server. But try it with the web url, and let us know if it works.

ii.
My IIS on my webserver already have mysite.com (url for that matter) and I have
most of the website running via HTML and old classic asp pages.
I've added (installed) the .NET 2.0x on the webserver as well.

other than just copying the directory to my webserver application folder, do i need specifically to "tell" iis that this .aspx is a new application?
I also tried to publish my .aspx from my local pc to the webserver but ms IDE (visual studio 2005) only let me publish it to my local hard drive and if I select ftp location it fails... not sure why..

any ideas will be appreciated.

TIA
In IIS, if you look at the properties for a website or directory/virtual directory, you should see an ASP.NET tab. Make sure to set it to the proper framework. (If you are using 3.5, there won't be an entry for that, it is still 2). If you don't see that tab, you need to "register" the correct version of the framework with IIS. Google for: "aspnet_regiis"
May 21 '08 #6
vstud
17
I've never tried a web url to my db before. If you know what the absolute path is, I'd use that. If you don't, you can figure it out by
Expand|Select|Wrap|Line Numbers
  1. Response.Write(Server.MapPath("/DB/"));
or whatever path you want. It'll return the absolute path on the server. But try it with the web url, and let us know if it works.



In IIS, if you look at the properties for a website or directory/virtual directory, you should see an ASP.NET tab. Make sure to set it to the proper framework. (If you are using 3.5, there won't be an entry for that, it is still 2). If you don't see that tab, you need to "register" the correct version of the framework with IIS. Google for: "aspnet_regiis"

Hi,

you were correct my IIS was pointing to the previous version, so I've change it to reflect ASP 2.05. Thanks.

as for the Server.Mappath it's not working for me, here is a snip of it:

DataFile= server.mappath("db\EPE_DB.mdb")

however if i use the full physical location it's working:
DataFile= "E:\myapplication\host\db\EPE_DB.mdb")


I'm not sure what I'm missing with the server.mappath command..
let me know if you see anything.

Thanks
May 22 '08 #7
Curtis Rutland
3,256 Expert 2GB
as for the Server.Mappath it's not working for me, here is a snip of it:

DataFile= server.mappath("db\EPE_DB.mdb")

however if i use the full physical location it's working:
DataFile= "E:\myapplication\host\db\EPE_DB.mdb")


I'm not sure what I'm missing with the server.mappath command..
let me know if you see anything.

Thanks
The Server.MapPath command is actually part of the Codebehind. I was just suggesting that you should use it to discover your physical path in case you didn't know it, like if you were on a shared server or something where you wouldn't have access to the directory structure.

Anyway, glad it's working for you.
May 22 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: ll | last post by:
Hi, I have some ASP pages(called dlls) running well on Win2000, but not Win2003. Got "Permission deny" when called Server.CreateObject("xx.xx"). Any ideas? Thanks...
0
by: Scott Townsend | last post by:
We are trying to get the Microsoft ASPFileUpload to work on both Win2003 and Win2000 http://support.microsoft.com/default.aspx?scid=kb;en-us;q299692 We can now get large and small files on our...
9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
1
by: seed | last post by:
Hi, I have deployed my asp.net application on a webserver. The funny thing is that when I try to run the program from the webserver.. I receive a runtime error.. but when I run the application...
2
by: Kevin | last post by:
Hi, Hope someone can help us with this problem. This is our first endeavour into .NET 2.0 :-) BACKGROUD INFO: ---------------------- We've built a website using .NET 2.0 and deployed onto...
10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
0
by: geek-y-guy | last post by:
I have a "newbie" deployment question. I want to confirm what's involved in deploying a web created with Visual Web Developer Express Edition to a production Server2003/IIS 6 server. The...
7
by: harry | last post by:
I've set my database connection as an Application.Setting using the designer. Since Application.Settings are read only, how do I change the connection properties when deploying to another...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.