• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

Reference.vb Missing

Hello, I need to modify  Reference.vb but the file is nowhere to be found in my project or even on my PC. How can this be? I'm using VS 2005 version 8.0.50727.363
0
gogetsome
Asked:
gogetsome
  • 6
  • 4
1 Solution
 
Ashish PatelCommented:
Try searching in My Documents\Visual Studio 2005\Projects and within you project name
0
 
gogetsomeAuthor Commented:
Thanks for your reply. No, it is not in that folder. I searched my whole computer as well and none of my projects have Reference.vb. Is this a known bug?
0
 
Bob LearnedCommented:
The file is usually not shown, unless you turn on 'Show all files' in the Solution Explorer.

Bob
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
gogetsomeAuthor Commented:
Thank Bob for your comment. I do have show all files on in Solution Explorer. The file does not exists on my computer. How is that posible?
0
 
gogetsomeAuthor Commented:
Bob, my last post might not be acurate. The showallfiles icon is greyed out in solution explorer. how do you turn it on?
0
 
Bob LearnedCommented:
Ok, here are some questions and musings:

1) Is everything working with the web service calls?

2) I don't know what would grey out the 'Show All Files' icon.  Maybe it is a function of a read-only project file (who knows).

3) The auto-generated reference map should be there for the web service calls to function correctly.

Bob
0
 
gogetsomeAuthor Commented:
Yes, the web service functions correctly when the page loads. The data expected is there, yet sometime I get this error:
The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

From what I've read and been told I need to modify Reference.vb with the following (I would have to convert to vb of course)

protected override WebRequest GetWebRequest(Uri uri)
{
HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}

Ive looked all over VS for a way to turn the button on to no avail. I will look into read-only project file.
0
 
Bob LearnedCommented:
Missing information:
1) Application type (ASP.NET, WinForms, Console, etc.)

Bob
0
 
gogetsomeAuthor Commented:
Sorry Bob,
ASP.Net, VB
0
 
Bob LearnedCommented:
WinForms applications create the Reference map proxy class--ASP.NET does not use that file.

Bob
0
 
gogetsomeAuthor Commented:
Thanks Bob. That answers my question on the reference.vb file. I suppose my advisors where wrong in how to fix my issue.

This is my other post if you are inclined to help:
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_22887880.html
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now