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
saniya_ikramAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jawahar_prasadCommented:
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" %>
0
jawahar_prasadCommented:
the 600 is in seconds...

You can actually try to increase and see till your page woks fine..
0
rdivilbissCommented:
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?
0
Top Threats of Q1 & How to Defend Against Them

WEBINAR: Join WatchGuard CTO and our Threat Research Team on Aug. 2nd to hear the findings from our Q1 Internet Security Report! Learn more about the top threats detected in the first quarter and how you can defend your business against them!

saniya_ikramAuthor Commented:
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
0
rdivilbissCommented:
>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?
0
saniya_ikramAuthor Commented:
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
0
rdivilbissCommented:
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
%>
0
saniya_ikramAuthor Commented:
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
0
rdivilbissCommented:
'till then....
0
saniya_ikramAuthor Commented:
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
0
saniya_ikramAuthor Commented:
Hi rdivilbiss
It is creating an object. but regarding to my prob it is giving the same eroor.
Thanx
Saniya
0
rdivilbissCommented:
Why do you transfer to another page after creating the object?
0
saniya_ikramAuthor Commented:
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  
0
rdivilbissCommented:
Yes, your server sounds like it is set up for Windows Authentication and it need to have anonymous access enabled as well.

Control Panel, Administrative Tools, IIS Manager, (Navigate the tree to the root of your web) right click, properties, directory security tab, Edit button.  Enable anonymous access and make sure the Allow IIS to manage password is checked.

Restart IIS.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
saniya_ikramAuthor Commented:
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
0
saniya_ikramAuthor Commented:
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
0
rdivilbissCommented:
The dll will also need permissions for IUSR_machine name to read and execute it.
0
rdivilbissCommented:
>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?
0
saniya_ikramAuthor Commented:
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.
0
saniya_ikramAuthor Commented:
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
0
rdivilbissCommented:
You're Welcome
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Wireless Networking

From novice to tech pro — start learning today.