Questions tagged [comobject]
200 questions
2
votes
1 answer
"You cannot call a method on a null-valued expression." when trying to receive Result of update Searcher running in Background Job
I need to List all updates on Windows that are not installed and write them to a file. But if it takes too long there must be a timeout.
I tried to run a search with a Update Searcher Object as a Job and then continue either when it's completed or…

Boomyeah
- 23
- 1
- 5
2
votes
1 answer
How to get the IPreviewHandler of a file type in the latest version of .Net
Recently at work I received a project that requires me to get a preview of a specific file type and display it in a preview pane (similar to the preview pane found in windows file explorer). After 3 or 4 days of extensive study on how to achieve…

Täuscherpferd
- 41
- 6
2
votes
0 answers
Memory leak C# RuntimeBinder (dynamic keyword ?)
I'm currently working on a huge C# project interacting with Excel. We have detected that with some excel files memory resources grow exponentially. After 2 or 3 hours Excel crashes.
I installed ANT memory Profiler which seemed pretty good to analyze…

Lozah
- 71
- 1
- 7
2
votes
2 answers
IE9 RC crashes when calling IDispatch::Invoke
I have a working code that is working on IE6,7,8 & 9 Beta but crashes on IE9 RC.
I can see that the web page is using the ActiveX's interface successfully but when I try to call IDispatch::Invoke from the ActiveX , the ActiveX crashes.
My…

ManicQin
- 159
- 1
- 8
2
votes
0 answers
COM Object created in C# return "Access to the path is denied." in Windows Authentication" mode
I have a problem with configuration IIS 10. I have site running on VBScript installed in the default wwwroot folder (C:\inetpub\wwwroot).
The site uses external COM Object created in C#, which tried to use one folder to read/write file…

AP Andrew
- 21
- 1
2
votes
1 answer
Get Invokable Method from __ComObject
I'm optimizing some code we use to query Active Directory. One of the methods fetches all of the AD users who have changed since a particular update, determined by the uSNCreated property of the Directory Entry. Essentially it's doing the C#…

Pete
- 1,807
- 1
- 16
- 32
2
votes
1 answer
Creating a scheduled task that runs on 6 days a week
I'm trying to create a few scheduled tasks using PowerShell prior to the TaskScheduler module, which is not an option as this will be used to run a process on external client machines. Therefore I can't use cmd as I need to specify the credentials…

Dewi Jones
- 785
- 1
- 6
- 18
2
votes
0 answers
Windows10 script pin app to start menu
I have a Universal App that I'm sideloading in Windows10. I would like to create a script (Powershell, VBS, batch, etc) to pin it to the Start Menu.
I have found many examples of how to write a script that pins a desktop application (like this…

spikeynick
- 499
- 6
- 12
2
votes
1 answer
How to get a System.__ComObject value from Active Directory in C#
After a long period of search I decide to ask my own question about my problem.
I try to get the value of a Property in Active Directory, but I always get a System.__ComObject.
correspondance += compte.Properties["ENTPersonDateNaissance"][0];
I…

MeTaLiKiD
- 395
- 3
- 11
2
votes
2 answers
Issue interacting with Internet Explorer ComObject on Server 2008 R2
Ok, so I have written a pretty intense PowerShell script that installs and configures SharePoint 2007 and SQL 2008. That is what it is, please don't judge me. After finishing all of that up, because the script is supposed to be user friendly, I…

user2780314
- 21
- 3
2
votes
1 answer
How to disable automatic registering of com-object in VS2010
When I build the solution in the project, VS2010 registers the com-object automatically on the development PC.
Is there way to disable it?

user1807338
- 195
- 1
- 1
- 9
2
votes
1 answer
Invoking method from the System.__ComObject base type
I'm trying to get some information from an msi file
I used:
Type installerType = Type.GetTypeFromProgID("WindowsInstaller.Installer");
object installerInstance = installerType.CreateInstance(installerType);
i'm well aware of the option to add…

Nissim
- 6,395
- 5
- 49
- 74
2
votes
1 answer
MS Access trying to set ADODB recordset to return from com object
I have written a Shared Add In using VS 2008 which contains a public method that returns an ADO Recordset. In MS Access I would like to set a ADO Recordset to the return of the function call. The function call executes fine when calling the COM…

user1738628
- 51
- 1
2
votes
5 answers
Forcing 32bit internet explorer ComObject
I'm working on a script that is supposed to install some software from a link within internet explorer and unfortunately the site requires 32bit internet explorer to work. Is there a way to force a 32bit internet explorer window to open on 64bit…

jhoward
- 404
- 1
- 6
- 16
1
vote
1 answer
how to cast COM object type to Excel.Checkbox type
I am adding a checkbox to excel and i have issue casting a COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.CheckBox', any help would be appreciated! I am working on web app using visual studio 2008 and…

Romio Jonson
- 33
- 1
- 7