This is a migrated thread and some comments may be shown as answers.

Access denied on this._xmlHttpRequest.open(verb, this._webRequest.getResolvedUrl(), true ); using WCF Service

4 Answers 130 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mahdi
Top achievements
Rank 1
Mahdi asked on 25 Aug 2009, 09:40 AM
Hi
I'm using RadComboBox but it alert "access denied" error.
I debug it and the error is on "this._xmlHttpRequest.open(verb, this._webRequest.getResolvedUrl(), true );" function in script resource.
My website is on localhost:12 and the WCF Service is on localhost:11.
And I haven't  any iframe on the page.
And this is page's code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" 
    MasterPageFile="~/UI/Masters/Content.master" %> 
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server"
    <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px"  
            EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" 
            EmptyMessage="Type here ..." dir="rtl"
            <WebServiceSettings Path="http://localhost:11/Items/ClientSidePersonManager.svc" Method="GetAllPrsForRadCombo" /> 
        </telerik:RadComboBox> 
</asp:Content> 
 
And this is web.config configurations:
  <system.serviceModel> 
    <behaviors> 
      <serviceBehaviors> 
        <behavior name="WcfService.Items.ClientSidePersonManagerBehavior"
          <serviceMetadata httpGetEnabled="true" /> 
          <serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="100" 
              maxConcurrentInstances="100" /> 
        </behavior> 
      </serviceBehaviors> 
      <endpointBehaviors> 
        <behavior name="MyTestServiceBehavior"
          <enableWebScript /> 
        </behavior> 
      </endpointBehaviors> 
    </behaviors> 
    <services> 
      <service behaviorConfiguration="WcfService.Items.ClientSidePersonManagerBehavior" 
        name="WcfService.Items.ClientSidePersonManager"
        <endpoint address="" binding="webHttpBinding" contract="WcfService.Items.IClientSidePersonManager" 
                  behaviorConfiguration="MyTestServiceBehavior"
          <identity> 
            <dns value="localhost" /> 
          </identity> 
        </endpoint> 
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
      </service> 
    </services> 
  </system.serviceModel> 
 

Thanks in advance.

4 Answers, 1 is accepted

Sort by
0
Mahdi
Top achievements
Rank 1
answered on 26 Aug 2009, 12:04 PM
No Answer Yet?
0
Mojtaba
Top achievements
Rank 1
answered on 27 Aug 2009, 07:34 AM
I have same problem. any idea?
0
Vesko
Top achievements
Rank 2
answered on 27 Aug 2009, 12:43 PM
I think when the applications are on different ports they are treated as on different domains hence the security error.

Try on the same port as the application is.
0
Mahdi
Top achievements
Rank 1
answered on 29 Aug 2009, 11:37 AM
Thank you for reply
I read somewhere that this problem solved in Microsoft Ajax 3.5.
doesn't it?
Tags
ComboBox
Asked by
Mahdi
Top achievements
Rank 1
Answers by
Mahdi
Top achievements
Rank 1
Mojtaba
Top achievements
Rank 1
Vesko
Top achievements
Rank 2
Share this question
or