+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Search index question

Search index question

5 posts, 0 answered
  1. Vyacheslav
    Vyacheslav avatar
    11 posts
    Registered:
    18 Nov 2010
    18 Nov 2010
    Link to this post
    Hi,
    I've got a problem. When I'm trying to index my pages for search, I've got this error at sitefinity.log file:
    18.11.2010 16:08:01 [UNKNOWN]
    ************************************************************************************
    ID: bc1c29cc-b5ef-4e56-9867-fd82a7471948; Code: 3005; Occurrence: 1; Sequence: 10
    ------------------------------------------------------------------------------------
     
    Application information:
        Machine name: ***
        OS Version: Microsoft Windows NT 6.1.7600.0
        Product Version: 3.7.2022.2
        Application Path: ***
        Debug: True
     
    Process information:
        Process ID: 6032
        Process Name: w3wp
     
    Request information:
        Request URL: //dummy.context
        Rewrite URL: http://127.0.0.1/dummy.context
        Url Referrer:   Is Authenticated: False
        Authentication Type:    User:   User Agent:
        User Address: 127.0.0.1
     
    Variables:
     
    - L0 -------------------------------------------------------------------------------
     
    Exception Type: System.Web.HttpException
     
    Message: Request is not available in this context
     
    Source: System.Web
     
    Stack Trace:
       at System.Web.HttpContext.get_Request()
       at Spring.Util.VirtualEnvironment.HttpRuntimeEnvironment.RewriteContext..ctor(String virtualDirectory, Boolean rebaseClientPath) in l:\projects\spring-net\trunk\src\Spring\Spring.Web\Util\VirtualEnvironment.cs:line 266
       at Spring.Util.VirtualEnvironment.HttpRuntimeEnvironment.RewritePath(String virtualDirectory, Boolean rebaseClientPath) in l:\projects\spring-net\trunk\src\Spring\Spring.Web\Util\VirtualEnvironment.cs:line 362
       at Spring.Util.HttpContextSwitch..ctor(String virtualDirectory) in l:\projects\spring-net\trunk\src\Spring\Spring.Web\Util\HttpContextSwitch.cs:line 87
       at Spring.Context.Support.WebApplicationContext.GetContextInternal(String virtualPath) in l:\projects\spring-net\trunk\src\Spring\Spring.Web\Context\Support\WebApplicationContext.cs:line 342
       at Spring.Context.Support.WebSupportModule.Init(HttpApplication app) in l:\projects\spring-net\trunk\src\Spring\Spring.Web\Context\Support\WebSupportModule.cs:line 161
       at System.Web.HttpApplication.InitModulesCommon()
       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
    ------------------------------------------------------------------------------------
    This exception is raised only when search index is creating. All the pages work correctly. The website is running on IIS 7.5
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    18 Nov 2010
    Link to this post
    Hi Vyacheslav,

    If you check the stack you will see that the problem is somewhere in VirtualEnvironment.cs custom class you have  - line 266. Since you have the source code of this class you can run the project in Visual Studio and add a break point somewhere near by line 266.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Vyacheslav
    Vyacheslav avatar
    11 posts
    Registered:
    18 Nov 2010
    18 Nov 2010
    Link to this post
    Hi, Ivan
    Thank you for your quick answer.
  4. Vyacheslav
    Vyacheslav avatar
    11 posts
    Registered:
    18 Nov 2010
    19 Nov 2010
    Link to this post
    Hi again. I've fixed errors and so search indexing passes without any errors at sitefinity.log. But when I try to edit, delete or re-index search index just created, I receive redirection to ~/currentcontext.dummy url. It doesn't happen if I refresh tool page after search index having been created.
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    19 Nov 2010
    Link to this post
    Hi Vyacheslav,

    When you update, create or delete a page the index is internally triggered. This happens when "Index Page" page property is set to true and "Auto Index" checkbox is checked for the Page Index you have created.  In this case the crawler tries to read the page HTML, but you have some code that make the redirect to the dummy url or you are making some rewriting that breaks the original url of the page.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
5 posts, 0 answered