简体   繁体   English

网站在迁移期间使用氟FX失败

[英]website using fluorine fx borken during migration

we have asp.net website that has started giving following error after migration from win2k3 to win2k8r2 我们的asp.net网站从win2k3迁移到win2k8r2后,开始出现以下错误

(mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = "4D9A6C96-03CB-3175-FFB4-2CF0D4C4D6FE" destination = "" extendedData = (null) faultCode = "Client.Error.MessageSend" faultDetail = "Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://subdomain.domain.org/fluorinefx/gateway.aspx'" faultString = "Send failed" headers = (Object)#2 messageId = "90010FA4-E69E-3705-8D29-2CF0D65E957B" rootCause = (mx.messaging.events::ChannelFaultEvent)#3 bubbles = false cancelable = false channel = (mx.messaging.channels::AMFChannel)#4 authenticated = false channelSets = (Array)#5 [0] (mx.messaging::ChannelSet)#6 authenticated = false channelIds = (Array)#7 [0] "my-amf" channels = (Array)#8 [0] (mx.messaging.channels::AMFChannel)#4 clustered = false connected = false currentChannel = (mx.messaging.channels::AMFChannel)#4 initialDestinationId = (null) messageAgents = (Array)#9 [0] (mx.rpc::AsyncRequest)#10 authenticated = false autoConnect = tru (mx.messaging.messages :: ErrorMessage)#0 body =(Object)#1 clientId =(null)relatedId =“ 4D9A6C96-03CB-3175-FFB4-2CF0D4C4D6FE” destination =“” extendedData =(null)faultCode =“客户端.Error.MessageSend“ faultDetail =” Channel.Connect.Failed错误NetConnection.Call.BadVersion::url:'http://subdomain.domain.org/fluorinefx/gateway.aspx'“ faultString =”发送失败“标头=(对象)#2 messageId =“ 90010FA4-E69E-3705-8D29-2CF0D65E957B” rootCause =(mx.messaging.events::ChannelFaultEvent)#3气泡=假可取消=假通道=(mx.messaging.channels :: AMFChannel)# 4个已验证=假channelSets =(Array)#5 [0](mx.messaging :: ChannelSet)#6已被验证=假channelIds =(Array)#7 [0]“ my-amf”通道=(Array)#8 [ 0](mx.messaging.channels :: AMFChannel)#4群集=错误已连接=错误currentChannel =(mx.messaging.channels :: AMFChannel)#4 initialDestinationId =(null)messageAgents =(Array)#9 [0]( mx.rpc :: AsyncRequest)#10已验证=假autoConnect = tru e channelSet = (mx.messaging::ChannelSet)#6 clientId = (null) connected = false defaultHeaders = (null) destination = "fluorine" id = "D967EE11-9117-DE39-E544-2CEF7130B37A" reconnectAttempts = 0 reconnectInterval = 0 requestTimeout = -1 subtopic = "" [1] (mx.rpc::AsyncRequest)#11 authenticated = false autoConnect = true channelSet = (mx.messaging::ChannelSet)#6 clientId = (null) connected = false defaultHeaders = (null) destination = "fluorine" id = "B1282969-F54C-B538-E4B1-2CF0D4C3CB73" reconnectAttempts = 0 reconnectInterval = 0 requestTimeout = -1 subtopic = "" connected = false connectTimeout = -1 enableSmallMessages = true endpoint = "http://subdomain.domain.org/fluorinefx/gateway.aspx" failoverURIs = (Array)#12 id = "my-amf" mpiEnabled = false netConnection = (flash.net::NetConnection)#13 client = (mx.messaging.channels::AMFChannel)#4 connected = false objectEncoding = 3 proxyType = "none" uri = "http://subdomain.domain.org/fluorinefx/gateway.aspx" piggybackingEnabled = false pol e channelSet =(mx.messaging :: ChannelSet)#6 clientId =(null)已连接=假defaultHeaders =(null)目标=“氟” id =“ D967EE11-9117-DE39-E544-2CEF7130B37A” reconnectAttempts = 0 reconnectInterval = 0 requestTimeout = -1子主题=“” [1](mx.rpc :: AsyncRequest)#11已认证=假autoConnect =真channelSet =(mx.messaging :: ChannelSet)#6 clientId =(null)已连接=假defaultHeaders =( null)destination =“ fluorine” id =“ B1282969-F54C-B538-E4B1-2CF0D4C3CB73” reconnectAttempts = 0 reconnectInterval = 0 requestTimeout = -1子主题=“” connected = false connectTimeout = -1 enableSmallMessages = true端点=“ http:/ /subdomain.domain.org/fluorinefx/gateway.aspx“ failoverURIs =(Array)#12 id =” my-amf“ mpiEnabled = false netConnection =(flash.net::NetConnection)#13 client =(mx.messaging.channels ::: AMFChannel)#4已连接=否objectEncoding = 3 proxyType =“ none” uri =“ http://subdomain.domain.org/fluorinefx/gateway.aspx"ggybackingEnabled =否pol ling = false pollingEnabled = true pollingInterval = 3000 protocol = "http" reconnecting = false recordMessageSizes = false recordMessageTimes = false requestTimeout = -1 uri = "http://subdomain.domain.org/fluorinefx/gateway.aspx" url = "http://subdomain.domain.org/fluorinefx/gateway.aspx" useSmallMessages = false channelId = "my-amf" connected = false currentTarget = (mx.messaging.channels::AMFChannel)#4 eventPhase = 2 faultCode = "Channel.Connect.Failed" faultDetail = "NetConnection.Call.BadVersion: : url: 'http://subdomain.domain.org/fluorinefx/gateway.aspx'" faultString = "error" reconnecting = false rejected = false rootCause = (Object)#14 code = "NetConnection.Call.BadVersion" description = "" details = "" level = "error" target = (mx.messaging.channels::AMFChannel)#4 type = "channelFault" timestamp = 0 timeToLive = 0 ling = false pollingEnabled = true pollingInterval = 3000协议=“ http”重新连接= false recordMessageSizes =错误recordMessageTimes =错误requestTimeout = -1 uri =“ http://subdomain.domain.org/fluorinefx/gateway.aspx” url =“ http ://subdomain.domain.org/fluorinefx/gateway.aspx“ useSmallMessages = false channelId =” my-amf“已连接= false currentTarget =(mx.messaging.channels :: AMFChannel)#4 eventPhase = 2 faultCode =”通道。 Connect.Failed“ faultDetail =” NetConnection.Call.BadVersion::url:'http://subdomain.domain.org/fluorinefx/gateway.aspx'“ faultString =”错误“重新连接=否决=否rootCause =(对象) #14代码=“ NetConnection.Call.BadVersion”描述=“”详细信息=“”级别=“错误”目标=(mx.messaging.channels :: AMFChannel)#4 type =“ channelFault”时间戳= 0 timeToLive = 0

Following is the configuration information of the old server 以下是旧服务器的配置信息

win2k3r2 64 bit iis6 Fluroine fx(1.0.0.15) as shown in add remove programs Fluroine fx windows service not installed. win2k3r2 64位iis6 Fluroine fx(1.0.0.15),如添加删除程序所示,未安装Fluroine fx Windows服务。 FluorineFx.dll 1.0.0.15(present inside bin folder of my website) FluorineFx.ServiceBrowser.dll 1.0.0.15 (present inside bin folder of my website) FluorineFx.dll 1.0.0.15(位于我网站的bin文件夹中)FluorineFx.ServiceBrowser.dll 1.0.0.15(位于我网站的bin文件夹中)

Following is the configuration information of the old server 以下是旧服务器的配置信息

win2k8r2 64 bit iis7.5 Fluroine fx(1.0.0.15) as shown in add remove programs Fluroine fx windows service installed(fluorinefx.exe (1.0.0.13)). win2k8r2 64位iis7.5 Fluroine fx(1.0.0.15),如添加删除程序所示Fluluine fx Windows服务已安装(fluorinefx.exe(1.0.0.13))。 FluorineFx.dll 1.0.0.15 (present inside bin folder of my website) FluorineFx.ServiceBrowser.dll 1.0.0.15 (present inside bin folder of my website) Site has its own app pool. FluorineFx.dll 1.0.0.15(位于我网站的bin文件夹中)FluorineFx.ServiceBrowser.dll 1.0.0.15(位于我网站的bin文件夹中)网站具有自己的应用程序池。 App pool is allowing 32 bit applications. 应用程序池允许32位应用程序。 idle timeout is 0 空闲超时为0

There is a "fluorinefx" folder inside the directory both on old and new servers which has gateway.aspx and console.aspx file. 在新旧服务器上的目录中都有一个“ fluorinefx”文件夹,其中包含gateway.aspx和console.aspx文件。

This is the content of console.aspx.cs file 这是console.aspx.cs文件的内容

using System; 使用系统; using System.Data; 使用System.Data; using System.Configuration; 使用System.Configuration; using System.Collections; 使用System.Collections; using System.Web; 使用System.Web; using System.Web.Security; 使用System.Web.Security; using System.Web.UI; 使用System.Web.UI; using System.Web.UI.WebControls; 使用System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; 使用System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; 使用System.Web.UI.HtmlControls;

public partial class Console : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Redirect("Fluorine.aspx"); 公共局部类Console:System.Web.UI.Page {受保护的无效Page_Load(对象发送者,EventArgs e){Response.Redirect(“ Fluorine.aspx”); } }

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
    //
    // CODEGEN: This call is required by the ASP.NET Web Form Designer.
    //
    InitializeComponent();
    base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{    
    this.Load += new System.EventHandler(this.Page_Load);

}
#endregion

} }

This is the content of "gateway.aspx.cs" file 这是“ gateway.aspx.cs”文件的内容

using System; 使用系统; using System.Data; 使用System.Data; using System.Configuration; 使用System.Configuration; using System.Collections; 使用System.Collections; using System.Web; 使用System.Web; using System.Web.Security; 使用System.Web.Security; using System.Web.UI; 使用System.Web.UI; using System.Web.UI.WebControls; 使用System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; 使用System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; 使用System.Web.UI.HtmlControls;

public partial class Gateway : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { 公共局部类Gateway:System.Web.UI.Page {受保护的无效Page_Load(对象发送者,EventArgs e){

}

} This is my crossdomain.xml file 这是我的crossdomain.xml文件

<cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*"/> </cross-domain-policy>

Any help would be greatly appreciated 任何帮助将不胜感激

Fixed it. 修复。 Turns out all i had to do was to make the app pool run in classic mode instead of integrated mode. 原来我要做的就是使应用程序池以经典模式而不是集成模式运行。 the issue was fixed. 该问题已解决。

this is the content of service-config.xml file inside |c:\\websites\\subdomain.domain.org\\websiteroot\\web-inf\\flex" folder --> --> 这是| c:\\ websites \\ subdomain.domain.org \\ websiteroot \\ web-inf \\ flex“文件夹中的service-config.xml文件的内容->->

<!-- Custom authentication -->
<security>
    <!-- A security constraint requires that a user is authorized before accessing a destination.
    Here you can declare security constraints globally. When several destinations 
    use the same security settings, you should define one security constraint in the 
    security section of the services configuration file and refer to it in each destination.                
    -->
    <!-- 
    <security-constraint id="privileged-users">
        <auth-method>Custom</auth-method>
        <roles>
            <role>admin</role>
            <role>privilegeduser</role>
        </roles>
    </security-constraint>    
     -->

    <!--    
    Custom login command, to check a user's credentials and log a principal into the application server
    A login command must implement the com.TheSilentGroup.Fluorine.Messaging.Security.ILoginCommand interface
    or inherit from com.TheSilentGroup.Fluorine.Messaging.Security.GenericLoginCommand.

    You can use a login command without security constraints defined.
    -->
    <!-- 
    <login-command class="FluorineFx.Security.GenericLoginCommand" server="asp.net"/>
     -->
</security>

<channels>
    <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
        <endpoint uri="http://{server.name}:{server.port}/{context.root}/fluorinefx/Gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/>
        <properties>
            <!-- <legacy-collection>true</legacy-collection> -->
        </properties>
    </channel-definition>
    <!--
    <channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
        <endpoint uri="rtmp://{server.name}:2037" class="flex.messaging.endpoints.RTMPEndpoint"/>
        <properties>
            <idle-timeout-minutes>20</idle-timeout-minutes>
        </properties>
    </channel-definition>
    -->
</channels>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM