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

Forums / Bugs & Issues / News item bug & how to setup search

News item bug & how to setup search

4 posts, 0 answered
  1. Alex
    Alex avatar
    10 posts
    Registered:
    21 Nov 2007
    22 Feb 2008
    Link to this post
    Hi,
    I am new to this product so please bear with me as I am sure these have simple fixes!

    When I add a news module it has a more link which doesnt seem to do anything, the cursor doesnt change when I hover over it.

    When I click Administration when logged in to the admin bit it says:

    Could not find file 'D:\wwwroot\test\App_Data\Search\Default-Search\Index\segments'.

    How do I set up this?

    Thanks,

    Alex
  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    22 Feb 2008
    Link to this post
    Hello Alex,

    To enable news on your web site, both News List and Single News controls should be used.
    When you insert the first control, a list of news appears, each article displays its title and a short summary. The ‘more>>’ link directs the request to the page where the Single News control is placed.
    If you have not configured the Single news location property of the News List control, the link will stay inactive.
    To set this property, please follow these instructions:
    1. Place both controls (probably on different pages) and edit the News List.
    2. Find the Single News Location field and specify the path to the page where the Single News control is placed, e.g. ~/Homepage.aspx;
    3. Save the settings and go to the Live Site to test the implementation.

    The error message which you receive is not a common issue for us and we will highly appreciate if you can send us more details about it. Reproducing steps or useful tips for testing the scenario locally would be very helpful.

    Please send us the information at your earliest convenience so we can work for resolving the issue.

    Best wishes,
    Nikifor Hristov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Alex
    Alex avatar
    10 posts
    Registered:
    21 Nov 2007
    23 Feb 2008
    Link to this post
    Thanks Nikifor,
    That sorted the news problem.

    I sorted the search problem by copying the index files from the sample site into the directory not sure why there wasnt anything there.

    I now get a new error when I try and approve a page sometimes.
    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

    I am not using any web farm so not sure what this is about. If I go back and click approve again it lets me.

    The other problem is with the blogs module. I added this to a page, when the user clicks comments it tries to redirect to 

    http://www.mywebsite.com/biztrain/home/08-02-23/tuesday.aspx#comments

    This doesnt exist any ideas?

    Thanks,

    Alex
  4. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    25 Feb 2008
    Link to this post
    Hello Alex,

    This error usually occurs if you force postback before waiting for the whole page to load. This is so due to the fact that ASP.NET event validation is enabled and the corresponding JavaScript code is located at the end of the page. If an attempt for postback is called before the page load, this script is not loaded yet and an error is thrown. 
    In a nutshell, event validation is a technique used by ASP.NET 2.0 to ensure that the data being sent back to the server on postback is an expected value and is designed to help prevent injection attacks.
     
    Fortunately, there is an option to disable the event validation from the application web.config. Add a page element to the <system.web> section and set the EnableEventValidation attribute to false.


    The second question you have is connected most likely with the understanding of the blogs module. The URL which was generated is automatically created and contains some published information about the blog.
    Here is the way it should be read:
    http://www.mywebsite.com/biztrain/home/08-02-23/tuesday.aspx#comments

    biztrain – the name of your project;
    home – page where the blog is placed;
    08-02-23 – the date on which the post was created;
    Tuesday.aspx – post name.

    Hope the provided information is helpful. Please do not hesitate to contact us for any other questions.

    Regards,
    Nikifor Hristov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered