Archive for September, 2009
If you get the ‘The Silverlight project you are about to debug users RIA services. RIA services will fail unless the Silverlight project is hosted in and launched from the same web project that contains the RIA services’
Posted by Michal Pisarek in SilverLight on September 28, 2009
I sometimes get this, especially when checking out the latest version from my subversion repository but its easy to fix.
The actual error will look like this:
So to fix it you need to do a couple of things:
- Set the start up project to the Web project by clicking on the Project and choosing ‘Set as Start Up Project’
- Not necessary but set a start up page as well, in RIA this will be called “ApplicationName.aspx”
Thats it, you should now be ready to go!!
Adding the contains option to the Advanced Search Box
Posted by Michal Pisarek in Search on September 9, 2009
Many people dont know but in the advanced search box there is a couple more options than simply Equals or Does Not Equal.
Another option that you can specify is the Contains or Does Not Contain option which used to be there by default by for some reason is disabled with the infrastructure update.
With this option the user has the option of getting some more leverage in their results when using advanced search, always a good thing!
To do this simply go to the Properties section of the Advanced Search Box configuration, click on the Builder dialog box as seen below and then in the Properties xml add the following:
<Option Name=”AllowOpContains” Value=”True”/>
See below for the builder area:
Click on OK and now you should see the advanced search box has the Contains and Does Not Contain option.
How to view the GAC
Posted by Michal Pisarek in Tips and Tricks on September 2, 2009
When viewing the GAC,especially in SharePoint development, is pretty annyoing that you can actually interact with thing and you dont get the nice windows thing that allows you to say drag and drop things in there.
What you do actually see is an composite view of the different files and folders that are stored within the GAC but its kind of annoying since you cant do anything with it and when developing for SharePoint you really like to see what is going on in there.
Fortunately there is a really,simple cool way to map the GAC to a drive number. Open up a DOS prompt an type in:
SUBST L: C:\Windows\assembly
The “L:” is the drive that you want to map the GAC to so it can be anything that is not currently taken up.
Then you get a normal view that looks like below where you can delete and simply drag and drop contents into (although obviously not in production!!)







