473,653 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS2005/VB:Weird problem with WebRequest.GetR esponse method

Hi,

I'm porting my App from .NET 1.1 to .NET 2.0, and I encountered a really
weird problem. I hope some of you could help...

I have a function that downloads an XML file from a web server to check
version information etc. It has not been touched in anyway.

Up until now I had the whole app as a single EXE, I now started to split it
into EXE and DLL that would contain shared classes and functions (I'm
planning to later add yet another projects that would be using them as well).
So far I only added the new class library project, and moved one function to
a public module there. Everything compiles just fine, but when I run it my
CheckLatestVers ion function (which is untouched) hangs on this (the last line
of source quoted)

Dim myRequest As WebRequest =
WebRequest.Crea te("http://www.site.com/download/version.xml")
' Return the response.
Dim myResponse As WebResponse = myRequest.GetRe sponse()

If I step through line by line, the myRequest seems just fine, but when the
GetResponse is reached the program hangs, and If I then break it most members
of MyRequest have a value of "error:cann ot obtain value" in the Autos window
or Immediate window if queried, eg ?myrequest.time out returns that.

If comment out the call to CheckLatestVers ion function, the program seems to
work just fine, including the function I moved to the new Class Library.

Like I said everything worked just fine before I introduced the Class
Library, which has nothing to do woth this function.

Any Ideas ?
Oct 12 '06 #1
0 1247

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
293
by: Michael Morse | last post by:
In vb.net they use a With End With statement to short cut access to an objects properite and methods. Is there something like this is CSharp.
4
4565
by: Nicole | last post by:
I found this code below to use to send emails using VB with Outlook. However, it gives these errors. 'Send' is ambiguous across the inherited interfaces 'Outlook._MailItem' and 'Outlook.ItemEvents_Event'. Name 'olByReference' is not declared. Name 'olMailItem' is not declared. Name 'olTo' is not declared. How could i edit this code to get it to work?
1
1278
by: bibinmcp | last post by:
how can we connect vb with mysql via internet
0
984
by: tom | last post by:
I am working in VS2005 with the DataGridView. When I click on a cell and move on by clicking on another cell all the data is removed from the first cell. Is there a way to prevent this from happing? I have the DataGridView.EditMode set to “EditOnEnter”.
7
1463
by: Bruce | last post by:
I have a DotNet C++ class that I would like to fire an event to then be used by VB.Net using the With Events keyword. I have experience creating connection point events for ActiveX controls, it is actually very easy with the ATL wizard but I am lost when it comes to C++ .Net's events. Can anyone please point me to an example in VC++ .Net that allows me to then use the component in VB with the With Events keyword?
5
1572
by: mse07 | last post by:
hi for every one i have SQL Server database and i want to connect with visual basic forms because i want to query about specific data from some tables and i want to use the forms to do that 1- how can i connect vb with SQL Server? 2- how can i show records for some tables? for exampl: i use Data component when i connecting with access and i can see any records from any table in database .
2
935
by: virendrakt | last post by:
How to connect VB With Oracle through ODBC pls provide me full coding
2
1843
by: nibedita jherait | last post by:
how can you connect vb with a data base?explain with example.
1
1267
by: =?Utf-8?B?Umljaw==?= | last post by:
The following code in VS2005 with MS Access 2003 gives me an error : “No Value given for one or more required parameters” What am I doing wrong? string sconnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; User Id=; Password=; Data Source=C:\\Mydatabase.mdb"; string squeryString = "UPDATE MyTable SET Col1 = ?,Col2 = ? WHERE ColId = ?"; int num = 19;
0
8370
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8283
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8704
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4147
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.