|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Move C# web app to another machineI 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? "Dave" <D***@noWeb.com> wrote in message Not enough information. Things rarely "won't compile" quietly. If the 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? 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 *** Sent via Developersdex http://www.developersdex.com *** 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 *** > 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 *** 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 *** >
Other interesting topics
C# representation of VB.net "OrElse" operator?
How does managed code work? Future of CSharp vs future of VB Unique GUID for an asynchronous task webservice MD5 hashes always unique? MSN Display Picture in C# LINQ - retrieve differences between two generic Lists SqlDependency - MySQL equivalent Register for COM interop 64 bit problem |
|||||||||||||||||||||||