Load Test – Plug-In class not found

I wanted to change a load test so that it works similar to what Gabriel Szlechtman described in his blog. Additionally, I followed MSDN instruction on how to create a Load Test Plug-In.

So I created a new project with a plug-in class, added a reference to it from load test project and wanted to hook the plug-in with the test. However, when I was doing the last step I was getting the following error:

pluginclassnotfound Load Test   Plug In class not found

Solution

The fix is quite simple. When I added a new class for the plug-in, it was defined without the access modifier (and therefore it was internal), which made the class accessible from other classes only in the same assembly. Adding public access modifier for the plug-in class solved the problem.

Could not access the result repository: Invalid object name ‘LoadTestRun’

When I ran a load test on my environment (Visual Studio TS 2008) for the first time I got the following error:

Error occurred running test. XXX could not access the result repository: Invalid object name ‘LoadTestRun’

Solution

The reason for that was I hadn’t had created a database schema for load tests. In order to do it I executed <VS location>\Common7\IDE\loadtestresultsrepository.sql which did all the job.

Please refer to msdn for more information.

Initializer list and initializing derived class members

Initializer list in C++ looks like in the example below (see constructor od D class):

class B {
  public:
    B() { }
};

class D : public B {
  public:
    int x;
    int y;

    D(int _x , int _y) : x(_x) , y(_y +1) { }
};

Continue reading ‘Initializer list and initializing derived class members’

C++: The Complete Reference

After several years of working with Java, C#, SQL and web technologies in general, there’s some time to use the other languages. Among others I’ll be writing some C++ code from time to time now.

I used C (and alittle bit of C++) when I was a student but that were all small projects and it was years ago. Now, it’s obvious I need to catch up with C/C++. I happened to get C++: The Complete Reference by Herbert Schildt. The word reference implies there’s probably no point in reading this book from title-page to colophon; there’s a lot of reference data like the standard function library. However, what I really liked about this book is it gives a quick introduction to most important aspects of C/C++ (e.g. pointers, classes, references, overloading, templates), of course with obvious and numerous code examples.

Recommended. It’s worth keeping this book nearby while working with C++.

 C++: The Complete Reference

Beginning SQL Server 2005 Programming

After a while (busy days…) I’ve got a new book: Beginning SQL Server 2005 Programming by Robert Vieira.

I’m not considering myslef a SQL Server expert but to be honest I was afraid of this beginning word in the title. Yet I’ve been using SQL Server for a couple of years (apart from Java, C#, etc. – so not full time SQL developing). Also I attended a few SQL related courses when I was at the university. So I should have quite solid theoretical and pratctical background. However, as I was not working with SQL Server full time I decided to give that book a bash. You can always stop reading if you don’t like the book icon smile Beginning SQL Server 2005 Programming

Continue reading ‘Beginning SQL Server 2005 Programming’

Microsoft Technology Summit 2009

I’m going to Microsoft Technology Summit (MTS) 2009 which takes place in Warsaw, Poland on September 29th-30th. This is the biggest Microsoft (.NET, SQL Server, Windows platform) related conference that takes place in Poland.

This will be the first time for me. I’ve never been to this conference but heard it’s decent – good speakers, lots of information is passed, highly developing. We’ll see how it will be but I expect to get back home overwhelmed with new knowledge, both theoretical and practical.

Is anyone of you, readers of this blog, attending this conference too?

 Microsoft Technology Summit 2009

How to motivate oneself to take short breaks at work?

Workrave1.8.5customsettings xfce4therapy How to motivate oneself to take short breaks at work?
Image via Wikipedia

If you are reading this post or my blog in general, you probably are a software enginner, programmer, designer – a person who spends considerable amount of time at their desk, similar to me.

Continue reading ‘How to motivate oneself to take short breaks at work?’

AddThis and HTTPS / SSL support – ‘Do you want to view only the webpage content that was delivered securely?’

29612v1 max 250x250 AddThis and HTTPS / SSL support   Do you want to view only the webpage content that was delivered securely?
Image via CrunchBase

Yesterday I wrote about a problem I came across using AddThis service. Today I had a new issue.

This is an example of the code generated by AddThis:


| More

It’s said what you need to do is to include it in your page and AddThis will do all the work for you. Now, it didn’t in my case…

Continue reading ‘AddThis and HTTPS / SSL support – ‘Do you want to view only the webpage content that was delivered securely?’’

AddThis on IE – Object doesn’t support this property or method

29612v1 max 250x250 AddThis on IE   Object doesnt support this property or method
Image via CrunchBase

AddThis is a great service – it allows robust integration with online services, e.g. Facebook, Twitter, LinkedIn, del.icio.us. What you need to do is to get your button’s code on AddThis homepage and use it in your project. Additionally you can configure the widget; you can refer to AddThis API, where you can find needed information and examples.

I created a component which I included on a couple of pages. I was very happy to use it until I started testing my pages on different browsers. It turned out there was a problem on IE (only; why didn’t that surprise me…); in two of three places it worked just fine but in one place I was getting JavaScript error:

jserror 350x234 AddThis on IE   Object doesnt support this property or method

As usual JavaScript error message on IE gave little (if not zero) information on the error. The only statement to give was the problem was on AddThis side. Unfortunately debugging their code was not the best case because the referenced library was obfuscated and (rather not) dedicated to a human being.

Continue reading ‘AddThis on IE – Object doesn’t support this property or method’

Reporting Services – how to change font style in the toolbar of ReportViewer?

I created a report with SQL Server Reporting Services. It displayed some data and the toolbar with list of checkboxes that defined which columns should be displayed on the report (see the screenshot below). The problem was the font on the toolbar didn’t match the font on the report, i.e. it was huge in comparison to the report. In short it needed resizing…

toolbar 350x65 Reporting Services   how to change font style in the toolbar of ReportViewer?

Continue reading ‘Reporting Services – how to change font style in the toolbar of ReportViewer?’