Thursday, February 09, 2012
Google Custom Search

ClearCanvas Highlights

Download our Open Source software
Watch some Videos
Get the Source
Check out our Licensing
Join our  Forums
Some Research: OICR IPP-Trials

Our Community

Membership Membership:
Latest New User Latest: tchlee
New Today New Today: 16
New Yesterday New Yesterday: 26
User Count Overall: 20579

People Online People Online:
Visitors Visitors: 18
Members Members: 7
Total Total: 25

Online Now Online Now:
01: jbluks
02: chafey
03: Queenie
04: ShaffstallK706
05: rlake
06: she
07: tchlee

ClearCanvas Community Forums

trying to get up and flying
Last Post 2010-05-13 12:25 PM by stewart. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ilantal
Veteran Member
Veteran Member
Posts:65

--
2010-05-12 09:34 AM  

 

[script removed]
 

I have the 2.0 SDK and am trying to get sample web browser going. I can compile but get an error at

        ///


        /// Checks to see if there is at least one object in and returns
        /// the first one, otherwise an exception is thrown.
        ///

        /// Thrown if is empty.
        protected object AtLeastOne(object[] objs, Type extensionPointType)
        {
            if (objs.Length > 0)
            {
                return objs[0];
            }
            else
            {
                throw new NotSupportedException(
                    string.Format(SR.ExceptionNoExtensionsCreated, extensionPointType.FullName));
            }
        }
 

when I press the icon. I can see that my objs is of zero length, so the error makes sense. It isn't clear to me that what I'm doing makes sense. I compiled it in WebBrowser\bin\Debug and then copied over the dll into the plugins directory. I tried making a shortcut inside the plugins directory, but that didn't work.

It isn't at all clear that if I put a break point on my code it will affect the copy in the plugins directory - it would seem to me to be on the copy in the Debug directory. In any case, it never got the module itself as it isn't being launched correctly.

Another thing which looks strange is in the ImageViewer properties the target framework is set to NET 2.0 and it says in the documentation that 3.0 is necessary. Should I change that to 3.0 or 3.5? (I have VS 2008).

Thanks,

Ilan

ilantal
Veteran Member
Veteran Member
Posts:65

--
2010-05-13 01:50 AM  
I found the problem. I did a minimalistic build of \Desktop\Applets\WebBrowser
instead of ImageViewerSamples.sln. Then I copied ClearCanvas.Desktop.Applets.WebBrowser.dll into the plugins directory. It turns out there is an additional ClearCanvas.Desktop.Applets.WebBrowser.View.WinForms.dll which is built somewhere else and that wasn't included.

My question about NET 2.0 still stands. In all the project properties I see it is set at NET 2.0 when the documentation says that 3.0 is necessary.
stewart
Senior Member
Senior Member
Posts:2032

--
2010-05-13 12:25 PM  
Hi, glad you figured it out.

.NET 3.0 is really just an add-on to .NET 2.0. We use WCF in a lot of our components, which wasn't introduced until .NET 3.0.
Real-time support available to Clinical Edition and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2011 ClearCanvas Inc.