Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move Site to another web server

Status
Not open for further replies.

ascotta

Vendor
Sep 15, 2003
7,394
AU
Hello all,

Just looking for a few pointers here.

I developed a Web site in ASP.NET v2 on my laptop. Fairly Basic stuff masterpage a few pages and some database reads and displays, so nothing really fancy.

I now want to port this site to my "real" web site, so I thought rather than break the brochure ware that is already there I would port it to another laptop to test the port process.

I Installed IIS & asp V2 on new laptop and basically copied the files across, and hey presto it didn't work, cant say I was terribly surprised, but there you go. So here are the questions :-

1) I know the web.config file will have references to the old laptop sql stuff, and I can change that to the new one without too much difficulty, however is there a better way to do it rather than to hack about with config files ? I should explain I developed using Visual express & SQL express.

2) Even though the web.config is not right, I don't understand why my first page wont load becuase it doesnt have any db access on it it is straight HTML stuff masterpage etc. I did the aspiisreg thing and that has not fised it. Any other pointers ?

2) This feels awfully clumsy way of doing things and I want to put it live as smoothly as possible given the web server "lives" 2 hours away. What could I do better ?

[blue] A perspective from the other side!![/blue]

Cheers
Scott
 
>> I know the web.config file will have references to the old laptop sql stuff, and I can change that to the new one without too much difficulty, however is there a better way to do it rather than to hack about with config files ? I should explain I developed using Visual express & SQL express.

hard luck there, i dont think that can be overcome. The maximum is that you can provide an application for the users to edit the entries rather than opening the file physically.

>>Even though the web.config is not right, I don't understand why my first page wont load becuase it doesnt have any db access on it it is straight HTML stuff masterpage etc. I did the aspiisreg thing and that has not fised it. Any other pointers ?

what error do you get???

>>What could I do better ?

dont see the need for improvement here cause a simple XCOPY must do...

Known is handfull, Unknown is worldfull
 
>> I know the web.config file will have references to the old laptop sql stuff, and I can change that to the new one without too much difficulty, however is there a better way to do it rather than to hack about with config files ? I should explain I developed using Visual express & SQL express.

hard luck there, i dont think that can be overcome. The maximum is that you can provide an application for the users to edit the entries rather than opening the file physically.
Actually, it can be done fairly easily although you wll have to change your deployment method and install the Web Deployment Project add on. For more info, see:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
How you moved it should be fine (unless you want to precompile it first - which in the express editions must be done via command line). It is probably a problem with IIS. Open your website in IIS Manager and make sure that you have the correct version of the framework selected for the virtual directory. Also make sure to set the default page in the virtual directory (unless you are typing the page directly). It also needs to have an Application Name, execute permissions set to Scripts Only, and an Application Pool selected. Also check out the web service extensions folder in the IIS tree and make sure that asp.net 2.0.xxx's status is allowed.

BTW, "hacking" web.config files is a very common thing. There are lots of things in there that you might need to change and it's really not a big deal.
 
Thank you very much people, I had kind of decided that it must be IIS setup, unfortunately I only get my hands on this second machine at lunchtimes, so it may be a long process. I am pretty sure I had setup IIS the same, but hey what do I know.

Users will not be able to do anything, this is more brochureware than anything else. It is my first dabble into this, so if I am in the dark how do you think the users would be!! [wink]

When I find the reason I will post.



[blue] A perspective from the other side!![/blue]

Cheers
Scott
 
>>Actually, it can be done fairly easily although you wll have to change your deployment method and install the Web Deployment Project add on. For more info, see:

i faced one problem when using web deployment wizards. everytime i have to push an incremental build (where in i will be adding / removing values from by config files every build). everytime i had to reconfigure the web.config file.

so i dropped that approach. for the first deployment of a build yes, a web deployment package will come handy.

another thing, i have worked vastly in third party hosting environments only. there i dont have an option to use any kind of a setup. but then the poster has to make a call on this...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top