We help IT Professionals succeed at work.

Reference.vb Missing

gogetsome
gogetsome asked
on
210 Views
Last Modified: 2013-11-26
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
Comment
Watch Question

Try searching in My Documents\Visual Studio 2005\Projects and within you project name

Author

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?
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
The file is usually not shown, unless you turn on 'Show all files' in the Solution Explorer.

Bob

Author

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?

Author

Commented:
Bob, my last post might not be acurate. The showallfiles icon is greyed out in solution explorer. how do you turn it on?
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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

Author

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.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
Missing information:
1) Application type (ASP.NET, WinForms, Console, etc.)

Bob

Author

Commented:
Sorry Bob,
ASP.Net, VB
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

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:
https://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_22887880.html

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.