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(ComInterfaceType.InterfaceIsDual)]
public interface IImportControl
{
string Import(string workingDirPath, string fileName, string
fileType) ;
}
[ClassInterface(ClassInterfaceType.None)]
public class ImportControl : System.Windows.Forms.Control,
IImportControl
{
private System.ComponentModel.Container components = null;
public ImportControl()
{
InitializeComponent();
}
public string Import(string workingDirPath, string fileName, string
fileType)
{
return "" ;
}
}
CLIENT SIDE
<OBJECT id="ExportObject"
data="data:application/x-oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzwhRE9DVFlQR SBIVE1MIFBVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJ hbnNpdGlvbmFsLy9FTiI+DQo8SFRNTD48SEVBRD4NCjxNRVRBI Gh0dHAtZXF1aXY9Q29udGVudC1UeXBlIGNvbnRlbnQ9InRleHQ vaHRtbDsgY2hhcnNldD13aW5kb3dzLTEyNTIiPg0KPE1FVEEgY 29udGVudD0iTVNIVE1MIDYuMDAuMjgwMC4xMjI2IiBuYW1lPUd FTkVSQVRPUj48L0hFQUQ+DQo8Qk9EWT4NCjxQPiZuYnNwOzwvU D48L0JPRFk+PC9IVE1MPg0K"
classid="clah.dll#clah.ImportControl" VIEWASTEXT>
</OBJECT>
parent.document.getElementById("ImportObject");
ImportObject.Import("","","") 3 2867
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**********@hotmail.com> wrote in message
news:66*************************@posting.google.co m... 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(ComInterfaceType.InterfaceIsDual)] public interface IImportControl { string Import(string workingDirPath, string fileName, string fileType) ; }
[ClassInterface(ClassInterfaceType.None)] public class ImportControl : System.Windows.Forms.Control, IImportControl { private System.ComponentModel.Container components = null; public ImportControl() { InitializeComponent(); }
public string Import(string workingDirPath, string fileName, string fileType) { return "" ; } }
CLIENT SIDE
<OBJECT id="ExportObject"
data="data:application/x-oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzwhRE9DVFlQR S
BIVE1MIFBVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJh bnNpdGlvbmFsLy9FTiI+DQo8SF
RNTD48SEVBRD4NCjxNRVRBIGh0dHAtZXF1aXY9Q29udGVudC1U eXBlIGNvbnRlbnQ9InRleHQvaH
RtbDsgY2hhcnNldD13aW5kb3dzLTEyNTIiPg0KPE1FVEEgY29u dGVudD0iTVNIVE1MIDYuMDAuMj
gwMC4xMjI2IiBuYW1lPUdFTkVSQVRPUj48L0hFQUQ+DQo8Qk9E WT4NCjxQPiZuYnNwOzwvUD48L0
JPRFk+PC9IVE1MPg0K" classid="clah.dll#clah.ImportControl" VIEWASTEXT> </OBJECT>
parent.document.getElementById("ImportObject"); ImportObject.Import("","","") -----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(ComInterfaceType.InterfaceIsDual)] public interface IImportControl { string Import(string workingDirPath, string
fileName, stringfileType) ; }
[ClassInterface(ClassInterfaceType.None)] public class ImportControl : System.Windows.Forms.Control, IImportControl { private System.ComponentModel.Container components
= null; public ImportControl() { InitializeComponent(); }
public string Import(string workingDirPath, string
fileName, stringfileType) { return "" ; } }
CLIENT SIDE
<OBJECT id="ExportObject" data="data:application/x-
oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzwhRE9DVFlQR SBIVE1MIF
BVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJhbnNpdGlv bmFsLy9FT
iI+DQo8SFRNTD48SEVBRD4NCjxNRVRBIGh0dHAtZXF1aXY9Q29 udGVudC1U
eXBlIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD13aW5kb3 dzLTEyNTI
iPg0KPE1FVEEgY29udGVudD0iTVNIVE1MIDYuMDAuMjgwMC4xM jI2IiBuYW
1lPUdFTkVSQVRPUj48L0hFQUQ+DQo8Qk9EWT4NCjxQPiZuYnNw OzwvUD48L
0JPRFk+PC9IVE1MPg0K" classid="clah.dll#clah.ImportControl" VIEWASTEXT> </OBJECT>
parent.document.getElementById("ImportObject"); ImportObject.Import("","","") .
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*******@hotmail.com> wrote in message news:<OI**************@TK2MSFTNGP11.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**********@hotmail.com> wrote in message news:66*************************@posting.google.co m... 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(ComInterfaceType.InterfaceIsDual)] public interface IImportControl { string Import(string workingDirPath, string fileName, string fileType) ; }
[ClassInterface(ClassInterfaceType.None)] public class ImportControl : System.Windows.Forms.Control, IImportControl { private System.ComponentModel.Container components = null; public ImportControl() { InitializeComponent(); }
public string Import(string workingDirPath, string fileName, string fileType) { return "" ; } }
CLIENT SIDE
<OBJECT id="ExportObject" data="data:application/x-oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzwhRE9DVFlQR S BIVE1MIFBVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJh bnNpdGlvbmFsLy9FTiI+DQo8SF RNTD48SEVBRD4NCjxNRVRBIGh0dHAtZXF1aXY9Q29udGVudC1U eXBlIGNvbnRlbnQ9InRleHQvaH RtbDsgY2hhcnNldD13aW5kb3dzLTEyNTIiPg0KPE1FVEEgY29u dGVudD0iTVNIVE1MIDYuMDAuMj gwMC4xMjI2IiBuYW1lPUdFTkVSQVRPUj48L0hFQUQ+DQo8Qk9E WT4NCjxQPiZuYnNwOzwvUD48L0 JPRFk+PC9IVE1MPg0K" classid="clah.dll#clah.ImportControl" VIEWASTEXT> </OBJECT>
parent.document.getElementById("ImportObject"); ImportObject.Import("","","") This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
| | |