Move C# web app to another machine

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I have a web app that was developed on a old development machine. I've
replaced my development machine with a new machine. When I try to access the
web app on the new development machine, the app won't compile and can't see
any of the DataTableAdapters. They all reside in a folder called App_Code.
How do I get the app to see the datasets on my new machine?
 
I have a web app that was developed on a old development machine. I've
replaced my development machine with a new machine. When I try to access
the
web app on the new development machine, the app won't compile and can't
see
any of the DataTableAdapters. They all reside in a folder called App_Code.
How do I get the app to see the datasets on my new machine?

Not enough information. Things rarely "won't compile" quietly. If the
compiler is throwing errors, tell us what they are. Also, does the new dev
box have the same machine name as the old dev box?
 
Just a thought, but do the connection strings reside in web.config? If
not, that would be a source of trouble when you move your app. The idea
with web.config is that you can move an app and just change
connectionString params in web.config - I believe -- (assuming you have
the same .Net framework and the same server type -- sqlsrv2005 for
example)

Rich
 
The app hits a sqlserver, that's also new because the old one died, on
another machine. I've moved the old database over to it, and it has the same
machine name. I wrote a short new app to prove that sqlserver on the new
machine is working. I've checked the web.config file and the conection string
apears to be alright.

Oh the development machine has a new machine name, but since the database is
 
assuming you are using .Net 2.0 framework, did you check the asp.net tab
on your web virtual dir/properties dialog (in IIS) to make sure you are
using the correct framework?
(I always forget that one).

Rich
 
I decided to start over and "Add Exisiting Item" to bring in the program on
the new machine. I've only brought in a few items and am getting the same
errors,
"The type or namespace name 'XTableAdapter' doew not exist in the namespadce
'Receivers.XTableAdapters' (are you missing an assembley reference?)

Where X is the name of the dataset. I receve this error multiple time. How
do I handle this problem. I've verified that the Web.config is the same.
 
Back
Top