Results 1 to 9 of 9

Thread: [RESOLVED] Import system.data

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Resolved [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

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    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

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  5. #5

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: Import system.data

    Hi gary, project originally built in vs 2008, wheras now im using visual web developer 2008

  6. #6

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    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

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  8. #8

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    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

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width