no the ClientScript in folder and the assembly in other folder
Thanks for replies , I did the following steps which solved my problem:
1. Generate a key (sn -k mykey.key)
2. then link the key path in the assembly
3. register the assembly with GAC ( gacutil -i assemblypath)
4. register the assembly in registery using (regasm assemname
/tlb:assembname/codebase
then try the clientscript and it is done
"Willy Denoyette [MVP]" wrote:
And this assembly is in the same directory as the client script?
Willy.
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:27**********************************@microsof t.com... GetDesktopImage is in other assembly(CaptureScreen.dll) and all others in
same assembly
"Willy Denoyette [MVP]" wrote:
"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
>I created ActiveX as following:
>
>
> namespace BmpActiveXNET
> {
> public interface DesktopScreen
> {
> string getDesktopScreen();
> }
> [ClassInterface(ClassInterfaceType.AutoDual)]
> public class BmpActiveX:DesktopScreen
> {
> public string getDesktopScreen()
> {
> //Capture the client screen
> Bitmap bmp = BmpActiveXNET.CaptureScreen.GetDesktopImage();
> //Get the Image Bytes
> byte []BitmapBytes = GetBitmapBytes(bmp);
> //Return Bytes as String
> return GetBytesAsString(BitmapBytes);
> }
> }
> }
>
> and register it using
> regasm BmpActiveXNET.dll /tlb:CompNet.dll /codebase
>
> when try to create object from javascript
> var o = new ActiveXObject("BmpActiveXNET.BmpActiveX");
>
> error generated (automation server can't create object )
> why this happened? whats wrong with what I did?
Where are these :
GetDesktopImage, GetBitmapBytes, GetBytesAsString ...methods stored? Same
or
another assembly?
Willy.