|
-
Sep 16th, 2011, 08:43 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Import system.data
Hola!
I have just created a new empty solution, then copied all the source files from an existing solution into it.
The existing solution (website) runs fine and has been for a year, but when I build the new one it gets lots of errors.
Mainly that system.data needs importing.
Why would this be? As the original is working fine. Also i fix all the errors in my project and rebuild and i just get more errors on different pages, why doesnt it list them all at once?
Thanks
-
Sep 16th, 2011, 09:26 AM
#2
Re: Import system.data
because it may not know that there are errors on those pages until the first ones get fixed.
If I put sugar in to the gas tank, the engine doesn't know there's a problem until it starts sucking up the sugar and it tries to use it as a fuel.
When you created the new solution, how did you create it? Did you select the "Empty Solution" template? The Web Application template, or the Website template?
-tg
-
Sep 19th, 2011, 05:17 AM
#3
Thread Starter
Fanatic Member
Re: Import system.data
Thanks for your reply techgnome, this makes sense and I always love a good car analogy 
I created using a website template
Thanks Dave
-
Sep 19th, 2011, 02:11 PM
#4
Re: Import system.data
Hello,
Are you using the same version of Visual Studio when you create the new project compared to Visual Studio that created the original project?
Are you using VB.Net or C#?
Gary
-
Sep 20th, 2011, 03:36 AM
#5
Thread Starter
Fanatic Member
Re: Import system.data
Hi gary, project originally built in vs 2008, wheras now im using visual web developer 2008
-
Sep 20th, 2011, 07:40 AM
#6
Thread Starter
Fanatic Member
Re: Import system.data
Ive just gone through matching the live site to the source files and the errors are bcause there has been a lot of crap added to the solution, and no version control. All the erroring files are not used in the site.
Thanks Anyway
-
Sep 21st, 2011, 02:23 PM
#7
Re: [RESOLVED] Import system.data
Hello,
What sort of "crap" are we referring to here?
How did you check the files? Did you use something like kDiff?
Gary
-
Sep 23rd, 2011, 04:03 AM
#8
Thread Starter
Fanatic Member
Re: [RESOLVED] Import system.data
Hi Gary, all the errors were found in an admin system we did, it had been copied into a new solution and about 10% of the files here were not required.
Previous developer here before me didnt use debug to check code they uploaded to server and checked it that way by just using the site.
They didnt encounter any errors because they never hit the afected pages. As I always debug and build solutions I found these errors.
I checked them manually, basically just loking at the menu of the admin system and seeing what files were linked to and what wasn't, excluding files and re-buildign as I went.
Not the best I know but its working now and i was able to get all the errors out (mainly by deleting stuff that shoudl never have been there.
It was quite satidfying acvtually as I noticed the main images folder had been copied and pasted into loads of sub folders, whole thing was a mess.
Its about half the size now 
Thanks Dave
-
Sep 26th, 2011, 01:13 AM
#9
Re: [RESOLVED] Import system.data
Hello there,
Sounds like quite a manual process, but it worked, so that's all that matters.
If you are not familiar with kDiff I would recommend that you take a look. It can compare individual files, but more importantly entire folders, i.e. it would let you know that things like the stray Images folder existed in one location, but not in the other.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|