473,586 Members | 2,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxWebbrowser Exception: "The requested resource is in use"

Hi, I need some help with this control.

There's a windows form with a axwebbrowser control inside, so users can
navigate to a page and it's necessary to keep the session, because,
users will access many times to this site and don't want to log in each
time. The process is the following: the form is shown and user
navigate through the webbrowser control, the form can be closed and
opened many times but the session of the page referenced needs being
mantained.

That is why the form is static, the problem becomes whit the Navigate
method. The first time it works well and gets the site referenced, but
if this method is invoked again then an exception is thrown: "The
requested resource is in use".

If I detect that Navigate method was invoked (viewing the value
retrieved by the LocationURL property of the axwebbrowser control), I
can put a condition and then not to call this method, but then nothing
is shown in the browser.

the code is like this:

oURL="http://localhost/Default.aspx"; /* any valid URL */
object oEmpty = System.Reflecti on.Missing.Valu e;
if (this.axWebBrow ser1.LocationUR L.Equals(String .Empty))
{
axWebBrowser1.C tlRefresh();
//axWebBrowser1.R efresh();

}
else
{
this.axWebBrows er1.Navigate(oU RL,ref oEmpty,ref oEmpty,ref
oEmpty,ref oEmpty);
} }
I've tried with axWebBrowser1.C tlRefresh() and axWebBrowser1.R efresh()
methods but nothing is viewed in the control.
The form is shown by a ShowDialog() or by a Show(), in the second case
it's necesary to Hide the form before.

any help will be appreciate.

Thanks in advance.

Oct 18 '06 #1
0 3091

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

Similar topics

6
7832
by: Aaron | last post by:
IIS 5.0 is throwing out "The requested resource is in use." for any site that uses ASP - HTML is executing fine. I have tried re-installing scripting, latest MDAC, and all my hotfixes are up to date. I have also tried re-syncing the IWAM account but that didn't work either... Running the webs in HIGH (isolated) did not help either. I disabled...
14
2663
by: David B. Held | last post by:
I wanted to post this proposal on c.l.c++.m, but my news server apparently does not support that group any more. I propose a new class of exception safety known as the "smart guarantee". Essentially, the smart guarantee promises to clean up resources whose ownership is passed into the function, for whatever defintion of "clean up" is most...
2
55554
by: Eirik M. | last post by:
Hi, I've got the following piece of code that's causing me a bit of a problem XmlDocument doc = new XmlDocument (); XmlNode rootNode = doc.CreateNode (XmlNodeType.Element, "usersettings", null); User user = new User (userid); XmlNode rolesNode = user.GetRoles (); rootNode.AppendChild (rolesNode);
5
72207
by: Horst Walter | last post by:
What is wrong here? IPAddress ipAddress = IPAddress.Parse("10.10.20.1"); IPEndPoint ipEndPoint = new IPEndPoint(ipAddress, this.port); this.tcpClient = new TcpClient(ipEndPoint); // PROBLEM HERE => Exception: "The requested address is not valid in its context" This works:
0
1326
by: gg | last post by:
Hello, who can tell me how to use the Resource Assembly File (*.resx) in a project. For example: I define a item Name :"TestString" Vale "1234567890" in a Resource Assembly File(test.resx). How to load the string vale? Thanks
2
15472
by: Steve M | last post by:
I am having a really strange problem. I have a site setup in a virtual directory that fails with the error below. It works on other web servers that are network load balanced with this server. I can go right to the default.aspx right in the ISS Manager and right-click browse and the error still comes up. I re-copied the folder over from a...
3
2496
by: bfprog | last post by:
Using IBM iSeries client access OLEDB provider to connect to DB2 on AS/400, but cannot create connection using .NET web app. Using following code: Dim cnTest As New OleDbConnection("Provider=IBMDA400; Data Source=S10324NM; User ID=THEUSER; Password=THESECRET") Works fine in console app, but fails in web app with: ...
0
1820
by: swatitalati | last post by:
Hello when i invoke a method of web service i m getting error like Server was unable to process request. --> Requested registry access is not allowed. syntex for invoking method is as below object results = this.Invoke("authenticate", new object { strUserName, strPassword}); Pls help me...
3
5657
maliksleo
by: maliksleo | last post by:
hi all i m having this "The resource cannot be found." error. I applied the url rewriting on my project every page is being browsed very well but i am getting the above error an some pages i dont know why? can any one suggest some solution. When i click on the button on that page i got this error with something like this "Description:...
0
7908
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...
0
7836
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...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
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...
0
8212
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...
0
6606
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...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1175
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...

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.