Move C# web app to another machine

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?
 
J

Jeff Johnson

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?
 
R

Rich P

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
 
D

Dave

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
 
R

Rich P

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
 
D

Dave

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top