Jun 15th, 2010 by ocvirek.com
When trying to build your ASP.NET project targeting .NET Framework 3.5, you receive following error: The report definition is not valid. Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition’ which cannot be upgraded. After some investigation I decided to create new empty project from the scratch and then compare two web.config files to find the differences. To make a long story short, make sure that you web.config contains following settings and you should be good to go!
…
<compilation debug=”true”>
<assemblies>
….
<add assembly=”Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A” />
<add assembly=”Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A” />
….
</assemblies>
<buildProviders>
<add extension=”.rdlc” type=”Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />
</buildProviders>
</compilation>
…
<httpHandlers>
…
<add path=”Reserved.ReportViewerWebControl.axd” verb=”*” type=”Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
validate=”false” />
…
</httpHandlers>
…
<system.webServer>
…
<handlers>
…
<add name=”ReportViewerWebControlHandler” preCondition=”integratedMode” verb=”*” path=”Reserved.ReportViewerWebControl.axd” type=”Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” />
…
</handlers>
</system.webServer>
Posted in ASP.NET, Visual Studio, Tips'n'Tricks
No Comments »
Jun 5th, 2010 by ocvirek.com
- Click the Tools menu.
- Select Options.
- Click the Under the Hood tab.
- Click Change font and language settings .
- Click the Languages tab.
- Select the “Check spelling” checkbox if you want Google Chrome to automatically check your spelling.
- Select the language you want to use in the “Spell-checker language” menu.
- Click OK to save your settings.
More info: http://www.google.com/support/chrome/bin/answer.py?hl=en&answer=95604
Posted in Tips'n'Tricks, News
No Comments »
Apr 28th, 2010 by ocvirek.com
If you expirience that Google Chrome works very slowly on localhost while debugging in Visual Studio, all you have to do is to alter the C:\Windows\System32\drivers\etc\hosts file and add a record 127.0.0.1 localhost. That will instruct Google Chrome not to use IPV6 lookup. This is also applicable to FireFox browser as well. For more details please take a look at http://jhovgaard.net/posts/google-chrome-slow-on-localhost.
Posted in ASP.NET, Visual Studio, Tips'n'Tricks
No Comments »
Nov 28th, 2009 by ocvirek.com
I’m working on Windows Forms C# app and I come across this error when starting up application and trying to read some information from app.config file. After a lot o research I came a conclusion that this error is caused by generating a malformed config file (according to schema in c:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd) by putting configSections after appSettings. Once I put the configSections element back to the top of the config file, everything worked as expected. Thanks to Dan for pointing this out on his blog: http://www.distribucon.com/blog/ConfigurationSystemFailedToInitialize.aspx.
Posted in C#, Visual Studio, Tips'n'Tricks
No Comments »
Nov 1st, 2009 by ocvirek.com
When you open a photo in Windows Photo Gallery, it looks too yellowish (or too redish or too greenihs or too blueish), but when you open it in another picture viewer such as IrfanView or XnView, it looks quite normal and all colors are well balanced. It’s especially noticable when opening scanned documents and the paper doesn’t look white. The thing is that Windows Color Management Profile affects how photos look when viewed in Windows Photo Gallery and probably there is some specific profile associated with your current display (monitor). In order to fix this you need to do this:
1. Open Control Panel and choose Personalization
2. Choose Display Settings
3. Click the button Advanced Settings
4. Go to tab Color Management
5. Click the button Color Management
6. In Device drop down listr choose Display
7. Make sure that checkbox Use my settings for this device is checked
8. Choose and remove your currently associated profile by clicking on the Remove button
9. Click the Add button and add sRGB IEC61966-2.1 Color Space Profile
10. Apply the changes and restart your computer.
Now photos and scans should look fine.

Posted in Windows Vista, Tips'n'Tricks
No Comments »
Oct 28th, 2009 by ocvirek.com

” Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own monitor(s).
Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen. Synergy also merges the clipboards of all the systems into one, allowing cut-and-paste between systems. Furthermore, it synchronizes screen savers so they all start and stop together and, if screen locking is enabled, only one screen requires a password to unlock them all. Learn more about how it works. Synergy is open source and released under the GNU Public License (GPL). ”. Introduction from official SourceForge site http://synergy2.sourceforge.net .
Tutorial:
BMHO, Synergy is not new kid on the block, but it’s still a great open source tool and I’ve been using it for few months now. Since I had to upgrade my laptop to Windows 7, I’ve wrote this little tutorial to make sure that I wouldn’t forget something 
I will assume that you have a desktop on the right side (which will play a server role) and a laptop computer on the left side (which will play a client role) and that they are both connected to the same LAN.
So, let’s do it. Here’s quick tutorial with few simple steps:
1. Install Synergy on Server and Client computer (e.g. deskop and laptop).
2. Configure Client - open Synergy and choose option Use Another Computer’s Shared Keyboard and Mouse (client), and enter other computer’s Host name (Server’s Network name e.g. computer1.domain.net). Now click Advanced and give your client computer apropriate screen name (e.g. laptop)
3. Configure Server - open Synergy and choose option Share this computer’s keyboard and mouse (server). Now click Advanced and give your server a screen name (e.g. master).
4. Now comes the tricky part. Click the Screens & Links Configure button on the Server. Under Screens Add both laptop and master screens and leave all the options in their default values. Under Links add two links:
a) “master is right of laptop” - 0 to 100% of the right of laptop goes to 0 to 100% of master.
b) “laptop is left of master” - 0 to 100% of the left of master goes to 0 to 100% of laptop.
5. Configuration is finsihed. Now click the Start button on the server and then click it on the client computer. You should be able to use mouse and keyboard on both computers just like when working on extended desktop. Enjoy!
Posted in Networking, Tips'n'Tricks, Open Source, Articles, Software
1 Comment »
Oct 25th, 2009 by ocvirek.com
When trying to download Microsoft Security Essentials you got this message: Not available in your country or region ? Don’t worry, just point your browser to this address and you’ll get your download: http://www.microsoft.com/security_essentials/?mkt=en-us. I’ve been using AVG, Avast, Antivir and others for ages, but since there was lot of positive feedback on the net I’ve decided to give this all round Microsoft antivirus/antispyware/antimalware a chance. So far I like it. Small memory footprint, barely noticable. According to my expirience with this piece of software, I would recommend it as an healthy alternative to other free antivirus/antispyware combos. And yes, MSE replaces Windows Defender in Windows Vista and Windows 7.
Posted in Windows Vista, Tips'n'Tricks, Software
No Comments »
Oct 18th, 2009 by ocvirek.com
When trying to connect to SQL Server instance using SQL Server Management Studio 2008 (Express), you might stumble upon this error: Failed to retrieve data for this request. (Microsoft.sqlserver.management.sdk.sfc). Databases will not be enlisted in the Object Explorer and that’s really bad. Luckly there’s a solution for that.
- Close the error message
- Press F7 to open the Object Explorer Details pane. Right-click the column headers, and make sure that only the following columns are selected: Name, Date Created, Owner
- Right-click the Databases node, and then click Refresh. Voila!
More info: http://support.microsoft.com/default.aspx?scid=kb;EN-US;956179
Posted in SQL Server
No Comments »
May 30th, 2009 by ocvirek.com
Jamendo.com is a winner in the music category of the CNET’s Webware global contest among other sites such as last.fm, itunes.com, amazon mp3 and pandora: http://www.cnet.com/html/ww/100/2009/winners.html. I’m very happy to be part of Jamendo’s efforts as one of the many indy artists contributing to free culture. I’m especially happy about the facts that there’s been more 60.000 plays, 6.500 album downloads and 60 user reviews of my albums “Ephemeris”, “Fortadelis” and “Convergence” on Jamedno alone!
Posted in Music Production
No Comments »
Apr 28th, 2009 by ocvirek.com
I’m very pleased to announce that my composition “Infinitive Sight” from album “Ephemeris” is on #97 in Jamendo’s TOP 100 list this week which I consider a major success and recognition since there’s probably more than 20.000 albums and 200.000 individual songs published on Jamendo. Ephemeris in TOP 100
Posted in Music Production, News
No Comments »