Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default UnauthorisedAccessException

Hi,

I have created a project in ASP.Net. An excel sheet should open when an user
clicks on a button. Although, i could successfully do that, i decided to
create a new thread for it.

So I created a new thread, and wrote the code to interact with Excel PIA's
inside the new thread.

But I get the UnauthorisedAccessException when a new Excel.Application
object is instantiated.

Is there a method to provide authorisation to a new thread.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default UnauthorisedAccessException

Everyone trying to use .Net with Excel and multi-threading, seems to causes
difficulties for themselves.
The easier way is stick with all the Excel code in a single thread.
Otherwise maybe microsoft.public.excel.sdk or an Interop NG can help you.

NickHK

"Avadhoot" ...
Hi,

I have created a project in ASP.Net. An excel sheet should open when an
user
clicks on a button. Although, i could successfully do that, i decided to
create a new thread for it.

So I created a new thread, and wrote the code to interact with Excel PIA's
inside the new thread.

But I get the UnauthorisedAccessException when a new Excel.Application
object is instantiated.

Is there a method to provide authorisation to a new thread.

Thanks in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"