Link to home
Start Free TrialLog in
Avatar of saniya_ikram
saniya_ikram

asked on

Error:Request timed out

Hi guys
when i try to run a wml page in a openwave(mobile simulator)
I am getting an error request timed out

my code is as follows

<% Response.contentType="text/vnd.wap.wml" %>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<%
Dim h
Set h=Server.CreateObject("onoffmpr.onoffmcls")


 h.matlab
response.redirect("On.asp")


set h = nothing
%>

can anyone guide me what is the problem
Thanx
Saniya
Avatar of jawahar_prasad
jawahar_prasad

put this line at the top of the asp page...
It is because the asp script is taking more time to execute that the one set in IIS

<% server.ScriptTimeout="600" %>
the 600 is in seconds...

You can actually try to increase and see till your page woks fine..
First, you can not do a response.redirect after you've written to the body.  Second you can not dispose of h after you redirect.  So I'm not certain what you hope to accomplish by creating h then redirecting because h will be lost.

So

<%
Dim h
Set h=Server.CreateObject("onoffmpr.onoffmcls")

h.matlab
set h = nothing

response.redirect("On.asp")
%>

Is all I can see executing....

Also here:

<%
Dim h
Set h=Server.CreateObject("onoffmpr.onoffmcls")

Add:

<%
Dim h
on error resume next
Set h=Server.CreateObject("onoffmpr.onoffmcls")
if err then
    response.write err.number & " " & err.description & " " & err.source
    response.end
end if

To see if you are throwing an error attempting to create your object.

What are you wanting to do?
Avatar of saniya_ikram

ASKER

Hi there GUys,
I have tried all the ways but it is still not working. none of the code is taking its effect it is getting timed out in 30 sec
>What are you wanting to do?

Why are you creating an object then wanting to redirect to another page?

What is onoffmpr.onoffmcls?

Are you throwing an error or timing out when you create that object?
Hi there rdivilbiss
actually I am running matlab's Real time workshop via a wml page , first I am calling matlab in VB onoffmpr is actually a dll in vb whose class is onoffmcls, then I am calling this class in ASP , the thing is that when i try to run this application via browser it is running successfully there is no error at all , but when i try to run it from wml page this request timed out error is shown . and sometimes internal server error , i don know what exactlly is going on .
Thanx
Saniya
Try running this only, just to see if the object is being created successfully.

<%
Response.contentType="text/vnd.wap.wml"
%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<%
Dim h
on error resume next
Set h=Server.CreateObject("onoffmpr.onoffmcls")
if err then
    response.write err.number & " " & err.description & " " & err.source
    response.end
else
    response.write "Object Created"
end if
Set h=nothing
%>
Thanx rdivilbiss,
I will get back to you on monday coz my uni is now closed and I will be able to access to lab on Monday, thanx for your support.
Thanx
Saniya
'till then....
Hi rdivilbiss
I am sorry for all this actually the thing that I am trying to do something that consist of quite a huge hybrid model i just cant test it on normal system all the systems are engaged and that comand can only be tested when all the applications are involved.
Thanx
Saniya
Hi rdivilbiss
It is creating an object. but regarding to my prob it is giving the same eroor.
Thanx
Saniya
Why do you transfer to another page after creating the object?
its is to display that specific task has been performed,or do u think there is any settings problem. beside this when i try to access a normal asp page by entering the system ip address it is asking me for username and password, I havent configured any but when i try to access via localhost it is not asking anthing user name or password and performing the desired action do u have what settings do i have to do  
ASKER CERTIFIED SOLUTION
Avatar of rdivilbiss
rdivilbiss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HI there
By doing so it allowing me to have an access to that website but not executing the following lines.
Set h=Server.CreateObject("onoffmpr.onoffmcls")
h.matlab
 and immediately directing me to on.asp page
:-S
HI there rdivilbiss;
Its working now via browser not asking anything and performing functions well.thanx for that , now can u plz tell me any alternative to that wml page thing
Thanx alot
Saniya
The dll will also need permissions for IUSR_machine name to read and execute it.
>now can u plz tell me any alternative to that wml page thing

I don't understand.  Do you want to use a normal DTD or are you developing for a mobile device?
I am so sorry,I am developing for a mobile device, I asked you for previous solution inorder to get the access via browser as well, I am actually making it for mobile device. now rather giving me the error of request timed out it is giving error of internal server error.
HI there
thanx alot for your support , its working now , just giving the error of request timed out, but performing the required operation which it wasnt performing b4, the reason was in the directory settings the integrated windows authentication box was checked.
Thanx alot for your support
Saniya
You're Welcome