Showing posts with label word. Show all posts
Showing posts with label word. Show all posts

Tuesday, March 13, 2012

System.Runtime.InteropServices.COMException (0x800A1066)

I m using Office 10.0 Com library for power point and for word application in
my Web application but when i run it through web server of web hosting site
that time it is throwing exception like following

System.Runtime.InteropServices.COMException (0x800A1066)

can any one help me regarding this."akshar108" <u37462@.uwewrote in message news:783f955f1cd23@.uwe...

Quote:

Originally Posted by

>I m using Office 10.0 Com library for power point and for word application
>in
my Web application but when i run it through web server of web hosting
site
that time it is throwing exception like following
>
System.Runtime.InteropServices.COMException (0x800A1066)
>
can any one help me regarding this.


Server-side Office automation isn't supported by Microsoft because, as you
have discovered, it doesn't work:
http://support.microsoft.com/defaul...-US;q257757#kb2
Depending on what your exact requirements are, this will be your only
option:
http://www.aspose.com/Products/Aspo...ds/Default.aspx
http://www.aspose.com/Products/Aspo...es/Default.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
but if i want to use free component then how can i count word of doc, ppt
files and do u know any technique for count word of pdf file in .net then
please say me

Mark Rae [MVP] wrote:

Quote:

Originally Posted by

Quote:

Originally Posted by

>>I m using Office 10.0 Com library for power point and for word application
>>in


>[quoted text clipped - 5 lines]

Quote:

Originally Posted by

>>
>can any one help me regarding this.


>
>Server-side Office automation isn't supported by Microsoft because, as you
>have discovered, it doesn't work:
>http://support.microsoft.com/defaul...-US;q257757#kb2
>
>Depending on what your exact requirements are, this will be your only
>option:
>http://www.aspose.com/Products/Aspo...ds/Default.aspx
>http://www.aspose.com/Products/Aspo...es/Default.aspx
>


"akshar108" <u37462@.uwewrote in message news:7840ea68455d9@.uwe...

Quote:

Originally Posted by

Quote:

Originally Posted by

>>Server-side Office automation isn't supported by Microsoft because, as you
>>have discovered, it doesn't work:
>>http://support.microsoft.com/defaul...-US;q257757#kb2
>>
>>Depending on what your exact requirements are, this will be your only
>>option:
>>http://www.aspose.com/Products/Aspo...ds/Default.aspx
>>http://www.aspose.com/Products/Aspo...es/Default.aspx


Quote:

Originally Posted by

but if i want to use free component then how can i count word of doc, ppt
files and do u know any technique for count word of pdf file in .net then


You'll have to look for a free component to do this - I don't know of one...

However, Aspose will do everything you require...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net

System.Runtime.InteropServices.COMException: Word could not fire t

You need to post the code you are using plus the full error message. I
received this type of error while trying to use query AD using
DirectoryServices and the authentication/impersonation settings in my
web.config were set to a system account that didn't have rights.
"Microsoft NEws" wrote:

> i am getting this error when creating a new document using asp.net
> your thoughts
>
>i solved it
i just added ASPNET user to Microsoft Word Document DCOM
properties/security using dcomcfg.exe
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

System.Security.SecurityException: That assembly does not allow

I have created an ActiveX control that does word automation. Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.
I am using .net 2. I have a key and use the regasm tool after it the
dll is compiled
I am really lost on how to make this work any help will be appreciated
JohnDid this work for you?
I have a .NET class that i have made com visible and the client is
trying to access it using Visual Objects over a network shar and is
getting the same exception.
i have added the AllowPartiallyTusterCallers attribute to my
assemblyinfo.cs but is hasnt fixed it.
i have ben trying to test using something non .NET (VB 6.0) but i cant
even reference the tlb or dll but i think that is a VB 6.0 issue.
if anyone has any suggestions pleae let me know.
the Client has advised that the dll works if it is copied locally.
thanks

System.Security.SecurityException: That assembly does not allowpartially trusted callers.

I have created an ActiveX control that does word automation. Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.

I am using .net 2. I have a key and use the regasm tool after it the
dll is compiled

I am really lost on how to make this work any help will be appreciated

Johnyou prolly have to add this to your code:

[assembly: AllowPartiallyTrustedCallers]

--
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Quote:

Originally Posted by

I have created an ActiveX control that does word automation. Once I
creat an instance of work I get the following message
System.Security.SecurityException: That assembly does not allow
partially trusted callers.
>
I am using .net 2. I have a key and use the regasm tool after it the
dll is compiled
>
I am really lost on how to make this work any help will be appreciated
>
John
>