473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client Side, User Control "Object Doesn't support this property or method"

Hi all. I inherited this code from a contractor. It is a .NET user
control that runs on the client side (ie) on machines with the
framework installed. I have been mucking around to get it work for a
couple of days now, and am growign really frustrated. I need to
expose an Import method on the ImportControl and have it accesible to
javascrip in the browser.

If I remove the InterfaceType and ClassInterface attributes, compile
and then view the typelib created by tlbexp, it does not show any
methods on the class. If I add the attributes, the methods are
listed... ...but when I invoke throuhg the web nothing works. The err
is: "Object doesn't support method or porperty"

....PLEASE HELP ME... Thank you -- code posted below

[InterfaceType(C omInterfaceType .InterfaceIsDua l)]
public interface IImportControl
{
string Import(string workingDirPath, string fileName, string
fileType) ;
}

[ClassInterface( ClassInterfaceT ype.None)]
public class ImportControl : System.Windows. Forms.Control,
IImportControl
{
private System.Componen tModel.Containe r components = null;
public ImportControl()
{
InitializeCompo nent();
}

public string Import(string workingDirPath, string fileName, string
fileType)
{
return "" ;
}
}

CLIENT SIDE

<OBJECT id="ExportObjec t"
data="data:appl ication/x-oleobject;base6 4,IGkzJfkDzxGP0 ACqAGhvEzwhRE9D VFlQRSBIVE1MIFB VQkxJQyAiLS8vVz NDLy9EVEQgSFRNT CA0LjAgVHJhbnNp dGlvbmFsLy9FTiI +DQo8SFRNTD48SE VBRD4NCjxNRVRBI Gh0dHAtZXF1aXY9 Q29udGVudC1UeXB lIGNvbnRlbnQ9In RleHQvaHRtbDsgY 2hhcnNldD13aW5k b3dzLTEyNTIiPg0 KPE1FVEEgY29udG VudD0iTVNIVE1MI DYuMDAuMjgwMC4x MjI2IiBuYW1lPUd FTkVSQVRPUj48L0 hFQUQ+DQo8Qk9EW T4NCjxQPiZuYnNw OzwvUD48L0JPRFk +PC9IVE1MPg0K"
classid="clah.d ll#clah.ImportC ontrol" VIEWASTEXT>
</OBJECT>

parent.document .getElementById ("ImportObject" );
ImportObject.Im port("","","")
Nov 17 '05 #1
3 2958
Does the client side have the correct permissions ?
I had the same problem and had to give full trust on intranet to make it
work
To make this check .Net Wizards on Adjust .net Security choose "Make changes
to this computer" and give full trust to Local Intranet.

I think this is your problem ;)

Best Regards Rodrigo
"todd" <tb**********@h otmail.com> wrote in message
news:66******** *************** **@posting.goog le.com...
Hi all. I inherited this code from a contractor. It is a .NET user
control that runs on the client side (ie) on machines with the
framework installed. I have been mucking around to get it work for a
couple of days now, and am growign really frustrated. I need to
expose an Import method on the ImportControl and have it accesible to
javascrip in the browser.

If I remove the InterfaceType and ClassInterface attributes, compile
and then view the typelib created by tlbexp, it does not show any
methods on the class. If I add the attributes, the methods are
listed... ...but when I invoke throuhg the web nothing works. The err
is: "Object doesn't support method or porperty"

...PLEASE HELP ME... Thank you -- code posted below

[InterfaceType(C omInterfaceType .InterfaceIsDua l)]
public interface IImportControl
{
string Import(string workingDirPath, string fileName, string
fileType) ;
}

[ClassInterface( ClassInterfaceT ype.None)]
public class ImportControl : System.Windows. Forms.Control,
IImportControl
{
private System.Componen tModel.Containe r components = null;
public ImportControl()
{
InitializeCompo nent();
}

public string Import(string workingDirPath, string fileName, string
fileType)
{
return "" ;
}
}

CLIENT SIDE

<OBJECT id="ExportObjec t"
data="data:appl ication/x-oleobject;base6 4,IGkzJfkDzxGP0 ACqAGhvEzwhRE9D VFlQRS
BIVE1MIFBVQkxJQ yAiLS8vVzNDLy9E VEQgSFRNTCA0LjA gVHJhbnNpdGlvbm FsLy9FTiI+DQo8S F
RNTD48SEVBRD4NC jxNRVRBIGh0dHAt ZXF1aXY9Q29udGV udC1UeXBlIGNvbn RlbnQ9InRleHQva H
RtbDsgY2hhcnNld D13aW5kb3dzLTEy NTIiPg0KPE1FVEE gY29udGVudD0iTV NIVE1MIDYuMDAuM j
gwMC4xMjI2IiBuY W1lPUdFTkVSQVRP Uj48L0hFQUQ+DQo 8Qk9EWT4NCjxQPi ZuYnNwOzwvUD48L 0
JPRFk+PC9IVE1MP g0K" classid="clah.d ll#clah.ImportC ontrol" VIEWASTEXT>
</OBJECT>

parent.document .getElementById ("ImportObject" );
ImportObject.Im port("","","")

Nov 17 '05 #2
-----Original Message-----
Hi all. I inherited this code from a contractor. It is a .NET usercontrol that runs on the client side (ie) on machines with theframework installed. I have been mucking around to get it work for acouple of days now, and am growign really frustrated. I need toexpose an Import method on the ImportControl and have it accesible tojavascrip in the browser.

If I remove the InterfaceType and ClassInterface attributes, compileand then view the typelib created by tlbexp, it does not show anymethods on the class. If I add the attributes, the methods arelisted... ...but when I invoke throuhg the web nothing works. The erris: "Object doesn't support method or porperty"

....PLEASE HELP ME... Thank you -- code posted below

[InterfaceType(C omInterfaceType .InterfaceIsDua l)]
public interface IImportControl
{
string Import(string workingDirPath, string fileName, stringfileType) ;
}

[ClassInterface( ClassInterfaceT ype.None)]
public class ImportControl : System.Windows. Forms.Control,
IImportContr ol
{
private System.Componen tModel.Containe r components = null; public ImportControl()
{
InitializeCompo nent();
}

public string Import(string workingDirPath, string fileName, stringfileType)
{
return "" ;
}
}

CLIENT SIDE

<OBJECT id="ExportObjec t"
data="data:app lication/x- oleobject;base6 4,IGkzJfkDzxGP0 ACqAGhvEzwhRE9D VFlQRSBIVE1MIF
BVQkxJQyAiLS8vV zNDLy9EVEQgSFRN TCA0LjAgVHJhbnN pdGlvbmFsLy9FT
iI+DQo8SFRNTD48 SEVBRD4NCjxNRVR BIGh0dHAtZXF1aX Y9Q29udGVudC1U
eXBlIGNvbnRlbnQ 9InRleHQvaHRtbD sgY2hhcnNldD13a W5kb3dzLTEyNTI
iPg0KPE1FVEEgY2 9udGVudD0iTVNIV E1MIDYuMDAuMjgw MC4xMjI2IiBuYW
1lPUdFTkVSQVRPU j48L0hFQUQ+DQo8 Qk9EWT4NCjxQPiZ uYnNwOzwvUD48L
0JPRFk+PC9IVE1M Pg0K" classid="clah.d ll#clah.ImportC ontrol" VIEWASTEXT>
</OBJECT>

parent.documen t.getElementByI d("ImportObject ");
ImportObject.I mport("","","")
.

Nov 17 '05 #3
Yes it was permissioned correctly on the client side. The issue was
the server Execute permissions were set to scripts and executables.
As a result IIS was trying to run the dll request as an ISAPI
extension, rather than just serve the binary to the client.

Thank you though

"Rodrigo" <em*******@hotm ail.com> wrote in message news:<OI******* *******@TK2MSFT NGP11.phx.gbl>. ..
Does the client side have the correct permissions ?
I had the same problem and had to give full trust on intranet to make it
work
To make this check .Net Wizards on Adjust .net Security choose "Make changes
to this computer" and give full trust to Local Intranet.

I think this is your problem ;)

Best Regards Rodrigo
"todd" <tb**********@h otmail.com> wrote in message
news:66******** *************** **@posting.goog le.com...
Hi all. I inherited this code from a contractor. It is a .NET user
control that runs on the client side (ie) on machines with the
framework installed. I have been mucking around to get it work for a
couple of days now, and am growign really frustrated. I need to
expose an Import method on the ImportControl and have it accesible to
javascrip in the browser.

If I remove the InterfaceType and ClassInterface attributes, compile
and then view the typelib created by tlbexp, it does not show any
methods on the class. If I add the attributes, the methods are
listed... ...but when I invoke throuhg the web nothing works. The err
is: "Object doesn't support method or porperty"

...PLEASE HELP ME... Thank you -- code posted below

[InterfaceType(C omInterfaceType .InterfaceIsDua l)]
public interface IImportControl
{
string Import(string workingDirPath, string fileName, string
fileType) ;
}

[ClassInterface( ClassInterfaceT ype.None)]
public class ImportControl : System.Windows. Forms.Control,
IImportControl
{
private System.Componen tModel.Containe r components = null;
public ImportControl()
{
InitializeCompo nent();
}

public string Import(string workingDirPath, string fileName, string
fileType)
{
return "" ;
}
}

CLIENT SIDE

<OBJECT id="ExportObjec t"

data="data:appl ication/x-oleobject;base6 4,IGkzJfkDzxGP0 ACqAGhvEzwhRE9D VFlQRS
BIVE1MIFBVQkxJQ yAiLS8vVzNDLy9E VEQgSFRNTCA0LjA gVHJhbnNpdGlvbm FsLy9FTiI+DQo8S F
RNTD48SEVBRD4NC jxNRVRBIGh0dHAt ZXF1aXY9Q29udGV udC1UeXBlIGNvbn RlbnQ9InRleHQva H
RtbDsgY2hhcnNld D13aW5kb3dzLTEy NTIiPg0KPE1FVEE gY29udGVudD0iTV NIVE1MIDYuMDAuM j
gwMC4xMjI2IiBuY W1lPUdFTkVSQVRP Uj48L0hFQUQ+DQo 8Qk9EWT4NCjxQPi ZuYnNwOzwvUD48L 0
JPRFk+PC9IVE1MP g0K"
classid="clah.d ll#clah.ImportC ontrol" VIEWASTEXT>
</OBJECT>

parent.document .getElementById ("ImportObject" );
ImportObject.Im port("","","")

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
22739
by: Ryan Park | last post by:
Hi, //SITUATION I got a panel control that hold a certain position on a form. Every controls or UIs are on this panel. At certain situation, I called dispose() method of this panel control and change it with other panel which contains other business logic and UI controls.
2
8921
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input onclick="javaScript:alert('document.forms(0)='+document.forms(0)); parent.myFunc(document.forms(0));" type="button" value="Open" name="Button" ID="Button"> The strange part is that the debug alert says that the document.forms(0) is an object sĺ all seem to be well. But...
2
3795
by: SmittyBroham | last post by:
Hello, I have a function that loops through 2 select lists and records the values of any hi-lighted options a user would have selected. It then sets 2 corresponding "hidden" form elements to the values and submits the form data to the server. I was error free until I added the following line: document.myform.submit();
4
14151
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring on the "With Me.OLEObject" line (By the way, I haven't found documentation which explains what the "With" clause is suppose to do?). I am trying to extract a Word document(OLE object) from an Access database, for each record in the table, and...
3
19707
by: Steve Lutz | last post by:
Hi All, I have a Windows Service that runs well. The service hosts a remote object. The purpose of the object is so that I can "peak" into the service to see what it's doing. I wrote a small Windows Application that connects to the remote object and prints out status information. Everything works fine when I first start the service. However, after some period, when I attempt to connect to the remote object, I get "Requested Service not...
2
631
by: todd | last post by:
Hi all. I inherited this code from a contractor. It is a .NET user control that runs on the client side (ie) on machines with the framework installed. I have been mucking around to get it work for a couple of days now, and am growign really frustrated. I need to expose an Import method on the ImportControl and have it accesible to javascrip in the browser. If I remove the InterfaceType and ClassInterface attributes, compile and then...
35
3218
by: Chris | last post by:
Hi, I tried to create a class which must change the propety 'visible' of a <linktag in the masterpage into 'false' when the user is logged. But i get the error: "Object reference not set to an instance of an object" for the line 'If mpg.FindControl("lkred").Visible = True Then'. I couldn't find sofar the solution. Any help would be appreciated ... Thanks
1
7106
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down so if you want to start by reading that, search for +++ Also note that I am unable to reproduce...
1
2072
by: hhackwell | last post by:
Hi guys, I'm running a simple piece of Javascript on my website to allow users to make an object appear when they want to use it. It works fine but I keep getting this error on IE and although it still works I'd like to figure out what it's referring to so I can get rid of it: "Object doesn't support this property or method" Here is my code:
0
9173
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6533
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.