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

5 posts, 0 answers
  1. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 25 Aug 2009 Link to this post

    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.
  2. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 26 Aug 2009 Link to this post

    No Answer Yet?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mojtaba
    Mojtaba avatar
    32 posts
    Member since:
    Feb 2009

    Posted 27 Aug 2009 Link to this post

    I have same problem. any idea?
  5. Vesko
    Vesko avatar
    122 posts
    Member since:
    Mar 2009

    Posted 27 Aug 2009 Link to this post

    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.
  6. Mahdi
    Mahdi avatar
    30 posts
    Member since:
    Oct 2006

    Posted 29 Aug 2009 Link to this post

    Thank you for reply
    I read somewhere that this problem solved in Microsoft Ajax 3.5.
    doesn't it?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017