473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.Reflection.Missing.Value;
if (this.axWebBrowser1.LocationURL.Equals(String.Empt y))
{
axWebBrowser1.CtlRefresh();
//axWebBrowser1.Refresh();

}
else
{
this.axWebBrowser1.Navigate(oURL,ref oEmpty,ref oEmpty,ref
oEmpty,ref oEmpty);
} }
I've tried with axWebBrowser1.CtlRefresh() and axWebBrowser1.Refresh()
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 3075

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

Similar topics

6
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...
14
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". ...
2
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",...
5
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...
0
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...
2
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...
3
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...
0
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 ...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.