Hi,
My Server platform is "Windows Server 2003/IIS 6.0/.Net 2003".
I developed a WebApplication that include 4 forms(.htm), each one has
two frames: top and bottom. The top is for getting message from server
by ajaxPro, and the bottom is a general webform. They were opened and
ran at the same time. Each ajaxPro form(.aspx) ask a request from it's
own procedure(in .aspx.vb) by javascript:settimeout for each 3 seconds.
I use AjaxPro.dll(5.11.4.2), and they ran smoothly. But something
happened...
(1) Session_End event triggered not in normal way. Sometimes, I recevie
that event, but i just refresh a form maybe 1~10 minutes ago, and my AP
timeout is 20 minutes.
(2) Suddenly error occurs about one time in 1-3 day. When form excute a
request to ajaxPro, message like 'miWeb undefined ' or something else.
'miWeb' is my sln(.DLL) name. I need to restart W3SRV service and it
would be run ok again.
(3) I try use the lastest version, like 6.6.5.2. But with 4 form opened
together, I found they excuted like in a sequence, they were slowly,
and maybe 1 or 2 form would stop ajaxPro.proc call. But I need they ran
like 5.11.4.2 done, so I give up try with new version.
Thx for any comment.
Simply source with one form is as below:
-------------
002.htm
-------------
<frameset rows="55,*" border="0" frameSpacing="0" frameBorder="0">
<frame name="top" src="R002.aspx">
<frame name="bottom" src="002.aspx">
<noframes>
-------------
R002.aspx
-------------
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="R002.aspx.vb" Inherits="miWeb.R002" %>
var gMQName = "002" + "<% = Session.SessionID %>";
function Login()
{
miWeb.R002.Login(gMQName,GetMsg_CallBack);
}
function GetMsg_CallBack(response)
{
var result=response.value
if(result != "")
{
if (result.substr(0,1).toUpperCase() == "R")
{
parent.frames("bottom").location.replace('002.aspx');
}
else
{
document.Form1.txt.value=result;
}
}
setTimeout("miWeb.R002.GetMsg(gMQName,GetMsg_CallBack)",3000);
}
<body MS_POSITIONING="GridLayout" onload="Login();">
-------------
R002.aspx.vb
-------------
Imports System.Messaging
Public Class R002
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Handles MyBase.Load
AjaxPro.Utility.RegisterTypeForAjax(GetType(R002))
End Sub
<AjaxPro.AjaxMethod()> _
Public Function Login(ByVal sMQName As String) As String
Dim shareTemp As MessageQueue
If (MessageQueue.Exists(".\Private$\sheartemp")) Then
shareTemp = New MessageQueue(".\Private$\sheartemp")
shareTemp.Send("I" + sMQName)
Return "Ask 4 Connect..."
else
Return "Server not ready..."
End If
End Function
<AjaxPro.AjaxMethod()> _
Public Function GetMsg(ByVal sMQName As String) As String
Dim mq As MessageQueue
If (MessageQueue.Exists(".\Private$\" + sMQName)) Then
mq = New MessageQueue(".\Private$\" + sMQName)
Else
Return "Not connect..."
End If
Dim mes As System.Messaging.Message
Dim m As String = ""
Try
mes = mq.Receive(New TimeSpan(0, 0, 3))
mes.Formatter = New XmlMessageFormatter(New String()
{"System.String,mscorlib"})
m = mes.Body.ToString()
Catch ex As Exception
End Try
Return m
End Function
End Class
-------------
Web.config
-------------
<configSections>
<sectionGroup name="ajaxNet">
<section name="ajaxSettings"
type="AjaxPro.AjaxSettingsSectionHandler, AjaxPro"/>
</sectionGroup>
</configSections>
<ajaxNet>
<ajaxSettings>
<urlNamespaceMappings>
</urlNamespaceMappings>
<jsonConverters>
<add
type="AJAXDemo.Examples.Classes.PersonConverter,AJAXDemo"/>
</jsonConverters>
</ajaxSettings>
</ajaxNet>
<system.web>
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
<system.web>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---