Home All Groups Group Topic Archive Search About

Move C# web app to another machine

Author
23 Jun 2009 9:06 PM
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?

Author
23 Jun 2009 9:34 PM
Jeff Johnson
"Dave" <D***@noWeb.com> wrote in message
news:1470A24E-73B5-4169-B279-F6AA57530A06@microsoft.com...

>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?
Are all your drivers up to date? click for free checkup

Author
23 Jun 2009 10:11 PM
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

*** Sent via Developersdex http://www.developersdex.com ***
Author
24 Jun 2009 1:26 PM
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
on another machine I don't think that matters.

Show quoteHide quote
"Rich P" wrote:

> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***
>
Author
24 Jun 2009 4:40 PM
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

*** Sent via Developersdex http://www.developersdex.com ***
Author
30 Jun 2009 7:41 PM
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.



Show quoteHide quote
"Rich P" wrote:

> 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
>
> *** Sent via Developersdex http://www.developersdex.com ***
>

Bookmark and Share