Results 1 to 7 of 7

Thread: visual web developer 2010 build errors

  1. #1

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

    visual web developer 2010 build errors

    Hi,

    My 'puter got a virus so i reinstalled windows, and rather than install the full visual studio 2008 that I had before I went for visual web developer 2010.

    I opened a solution and tried to debug and got loads of build errors, the most numerous being:

    Error 155 'HttpContext' is not declared. It may be inaccessible due to its protection level.

    It recommends importing system.web, I currently import

    Code:
    Imports Microsoft.VisualBasic
    Imports System
    Imports System.Data
    Imports System.Data.SqlClient
    Can anyone tell me whats changed as this site ahs been running fine for a couple of years now?

    Thanks

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

    Re: visual web developer 2010 build errors

    Hello,

    It could be that your full version of Visual Studio was including a Default Import for System.Web, which is not being done by Visual Web Developer. I am not a big user of VB.Net, but I seem to remember that this is a function that it can do for you.

    If you put in Imports System.Web, does it begin to work? There may be some other that you also need to include.

    Gary

  3. #3

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

    Re: visual web developer 2010 build errors

    Thats interesting (Between 9 - 5 anyway!), thanks Gary I'll take a look into this. Hope it is something simple like this.

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

    Re: visual web developer 2010 build errors

    Like I said, this is a half remembered something, and I might be leading you up the garden path, but...


  5. #5

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

    Re: visual web developer 2010 build errors

    Cheers Gary, Someone on another forum said they both do this as default so was probably a build error. After repairing didnt work I uninstalled and put visual web developer 8 on. Thought this may be better as same framework.

    I then relaised my solution wouldn't open as it was now a newer version, so I spent some time recreating.

    I now have the soltuion with 3 websites inside, and a data access layer.

    I get all the same erros, but now i relaise they are all coming from just one of the projects and only in three classes in the app_code folder.

    Does this mean anyhting?

  6. #6

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

    Re: visual web developer 2010 build errors

    Ive got rid of all build errors, I re-imported a missing reference and auto corrected some errors. Now my problem is with debugging:

    Previously I ran two projects when debugging and when the code redirected from one project to the other it was fine, now i get

    Firefox can't establish a connection to the server at localhost:3360.

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

    Re: visual web developer 2010 build errors

    Hmmm, nothing is immediately springing to mind, sorry.

    Without "playing" with the code, I am not sure what else to suggest

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