(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Forums

Search in:

Go

URGENT! Bookshelf silverlight control

  • spleenie
    spleenie
    18 points
    9 posts
    Jan 8, 2012, 04:48 PM
        Report Abuse

    Hi,

    I am a beginner in silverlight. I have just installed silverlight 5. I wanted to utilise the bookshelf silverlight control but when i open it with my visual studio, it says that two of the files are not downloaded properly. So, i downloaded several times but still the same outcome. I would like to know why and help me solve this problem. This silverlight bookshelf control is downloaded from http://classifiedcabinet.codeplex.com/ . I went to the "sample" section of the particular page that you are navigated to when click on the above link and download the source.

    with regards

    Reply

All Posts


  • Georgi Stoyanov
    47 points
    9 posts
    Jan 9, 2012, 11:37 AM
            Report Abuse

    Hi spleenie, 

    I just tested and I was able to download, open and build the samples on two separate machines, so I don't know what might be causing the problem for you. Are you sure you are extracting the archive to a separate folder and then opening the file Samples.sln? If so, could you provide more details on the specific error you are getting when you open the solution, since I'm unable to reproduce this issue.

    Regards,

    Georgi


    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 9, 2012, 04:45 PM
            Report Abuse

    Hi,

    When there is the popup saying "one of more project in the solution were not loaded properly. Please see the output wikndow for details."

    The following is the copy of the details in the output window:

    C:\Users\Laptop\Desktop\Samples\BookshelfSample\Bookshelf\Bookshelf.csproj : error : Unable to read the project file 'Bookshelf.csproj'.

    C:\Users\Laptop\Desktop\Samples\BookshelfSample\Bookshelf\Bookshelf.csproj(174,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    C:\Users\Laptop\Desktop\Samples\BookshelfSample\Bookshelf.Admin\Bookshelf.Admin.csproj : error : Unable to read the project file 'Bookshelf.Admin.csproj'.

    C:\Users\Laptop\Desktop\Samples\BookshelfSample\Bookshelf.Admin\Bookshelf.Admin.csproj(261,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 9, 2012, 05:38 PM
            Report Abuse

    Hi,

    The problem seems to be that you have only Silverlight 5, but the project was written for Silverlight 4 and Visual Studio is unable to open it. Since I currently don't have access to a machine that doesn't have SL4 I can't test it, but here's what you can try.

    First, when you open the solution, if Visual Studio asks you to convert the project to a newer version of Silverlight or something similar, say yes and it should do it automatically. However, since you are asking this question, there is probably no such message. You can still try to do it manually. 

    After the solution opens and you see the error, the two Silverlight projects should appear gray and have "(unavailable)" next to the name of the project. Right-click the name of the project in Solution explorer and select "Edit Bookshelf.csproj". An xml file should open in Visual Studio. On line 15 or somewhere around that you should see the TargetFrameworkVersion element and it should have value of v4.0. Change that to v5.0, save and close the file and then right-click on the project again and select "Reload Project". If everything went ok, you should see no errors this time and the project should load correctly. Now you just have to do the same for the other Silverlight project - Bookshlef.Admin. Let me know if that works for you!

    Also, keep in mind that the control is not really tested with SL5, so there might be unexpected build errors and/or bugs that you would have to fix yourself. Have fun J

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 13, 2012, 04:33 PM
            Report Abuse

    Hi,

    I am able to solve the problem already.

    However, there are still some problems which i am confused about it.

    Error 10 Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'Samples.Bookshelf.Admin' that is not included in the assembly. 

    Error 11 The type 'local:ViewModelLocator' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. 

    Warning 2 The referenced component 'Microsoft.Expression.Interactions' could not be found.  

    Warning 3 The referenced component 'System.Windows.Controls.Data.DataForm.Toolkit' could not be found.  

    Warning 4 The referenced component 'System.Windows.Controls.Data.Toolkit' could not be found.  

    Warning 5 The referenced component 'System.Windows.Controls.DataVisualization.Toolkit' could not be found.  

    Warning 6 The referenced component 'System.Windows.Controls.Input.Toolkit' could not be found.  

    Warning 7 The referenced component 'System.Windows.Controls.Layout.Toolkit' could not be found.  

    Warning 1 The referenced component 'System.Windows.Controls.Toolkit' could not be found.  

    Warning 8 The referenced component 'System.Windows.Controls.Toolkit' could not be found.  

    Warning 9 The referenced component 'System.Windows.Interactivity' could not be found.  

     

    Does it mean that i have to download something that is not downloaded previously?

    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 17, 2012, 02:22 PM
            Report Abuse

    Hi and sorry for the late reply!

    Yes, it looks like you are missing some assemblies. You need to install the Silverlight Toolkit and the Expression Blend SDK for Silverlight.

    Here's a link to the toolkit http://silverlight.codeplex.com/releases. I see they have SL5 version, however I don't know if it's backward compatible, so you might have additional problems.

    For the Expression Blend SDK it's a bit more complicated, because they have only a preview release. You can get it here http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=9503, but I haven't tried it yet, so good luck! Alternatively you can try using the previous version, but I don't know how that will work out either.

    As I told you before, this project has never really been tested with Silverlight 5, so that's the reason it’s so difficult to get it running. You might also have additional problems (such as bugs), once you have it all set up. If you only want to play around with the control, or if it is not critical for your project to use SL5, it would be easier if you just use SL4.

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 18, 2012, 11:27 AM
            Report Abuse

    Hi,

    In the database there is a "creationDate" , "isPublished", "titleURL" and "tags" columns in the book table right?

    what is the purpose of it?

     

     

    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 18, 2012, 11:46 AM
            Report Abuse

    Well, this is just sample data about the books. Some of the fields (like tags) are shown in the UI - this is just an example, of course, you can have different fields. Some of them aren't used in this demo, because it was actually part of a more complicated project, so don' worry about them.

    By the way, were you able to build and run the project? It's useful to share how you solved your problems, so other readers of this thread could benefit of your experience as well. 

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 18, 2012, 02:02 PM
            Report Abuse

    I am still trying to solve a certain problem... i tried putting buy links but it does not display any of it.. May i know how to display it ?

    Also, there are "Links" and " Tags" header displayed but i tried to remove it and have no idea where to remove it

     

    Reply
  • spleenie
    spleenie
    18 points
    9 posts
    Jan 18, 2012, 02:15 PM
            Report Abuse

    Well there is also one part where i am still unable to solve too. As you said that some fields are not used in this sample, but I delete some of such fields. When opened in browser, it does not stop loading and does not proceed to the bookshelf page.

     

    Reply

  • Georgi Stoyanov
    47 points
    9 posts
    Jan 18, 2012, 02:20 PM
            Report Abuse

    It probably throws an exception. If you delete the columns from the database, you've to update the DataModel, because it's probably still looking for them. Try updating the model and deleting them manually from it if you have to. Then, of course, you also have to update the data service that uses the data model and finally the client that uses the data service.

    Reply
Page  

To reply to this thread you must Log In to your account


Thread


Tags: 
  • Asked
    180 days ago
  • Viewed
    653
  • Last Activity

Related Threads


Shortcuts