|
-
Aug 11th, 2011, 10:27 AM
#1
Thread Starter
Fanatic Member
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
-
Aug 12th, 2011, 01:52 AM
#2
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
-
Aug 12th, 2011, 03:30 AM
#3
Thread Starter
Fanatic Member
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.
-
Aug 12th, 2011, 07:13 AM
#4
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...
-
Aug 12th, 2011, 10:15 AM
#5
Thread Starter
Fanatic Member
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?
-
Aug 12th, 2011, 10:53 AM
#6
Thread Starter
Fanatic Member
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.
-
Aug 12th, 2011, 11:17 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|