UnauthorisedAccessException for thread

A

Avadhoot

hi,

I am writing a new asp.net program. Here in, the user has to click on a
button on a web page, and a new excel sheet should open up.

I could do it successfully using Office 2k3 PIA's for the click event
handler for the button.
Then I decided to create a new thread and complete the process of creating
an excel sheet in the new thread itself.

But I am getting the following error.

An unhandled exception of type 'System.UnauthorizedAccessException' occurred
in Unknown Module.

Additional information: Access is denied

But, the code executes successfully when i remove the thread and directly
code it in the click event handler for the asp button.

What might be the problem?? How can I give access permission to the thread??
Should set some permission in the Internet Information Services Manager.

OS: Win2k3 server
IIS 6.0 version

thanks in advance.
 
B

Bob Barrows [MVP]

Avadhoot said:
hi,

I am writing a new asp.net program.

There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic asp newsgroup. ASP.Net bears
very little resemblance to classic ASP so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
 
A

Avadhoot

HI,

Thanks for the advice. Point noted. I posted my question over there. Since I
posted the question in a haste, I did not go through earlier questions. But
none the less it was a mistake on my part.

Anyway thanks.

Avadhoot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top