473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

writing to an outlook folder

I have an application that needs to write tasks into an outlook task folder.
I keep getting the "Access is Denied" error

ASP.NET is not authorized to access the requested resource.

Which resource do I need to give the asp.net account access to. I have ran
dcomcnfg.exe and given the asp.net account access to all the resources.
This doesn't change anything.

Any ideas are appreciated.

Thanks,
BTB
Nov 18 '05 #1
10 1382
You trying to write to outlook's PST or to the Exchange server?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:Og**************@TK2MSFTNGP11.phx.gbl...
I have an application that needs to write tasks into an outlook task
folder.
I keep getting the "Access is Denied" error

ASP.NET is not authorized to access the requested resource.

Which resource do I need to give the asp.net account access to. I have
ran
dcomcnfg.exe and given the asp.net account access to all the resources.
This doesn't change anything.

Any ideas are appreciated.

Thanks,
BTB

Nov 18 '05 #2
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.

Thanks for your reply

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
You trying to write to outlook's PST or to the Exchange server?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:Og**************@TK2MSFTNGP11.phx.gbl...
I have an application that needs to write tasks into an outlook task
folder.
I keep getting the "Access is Denied" error

ASP.NET is not authorized to access the requested resource.

Which resource do I need to give the asp.net account access to. I have
ran
dcomcnfg.exe and given the asp.net account access to all the resources.
This doesn't change anything.

Any ideas are appreciated.

Thanks,
BTB


Nov 18 '05 #3
You realize you are firing Outlook on the server right?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.

Thanks for your reply

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
You trying to write to outlook's PST or to the Exchange server?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:Og**************@TK2MSFTNGP11.phx.gbl...
>I have an application that needs to write tasks into an outlook task
>folder.
> I keep getting the "Access is Denied" error
>
> ASP.NET is not authorized to access the requested resource.
>
> Which resource do I need to give the asp.net account access to. I have
> ran
> dcomcnfg.exe and given the asp.net account access to all the resources.
> This doesn't change anything.
>
> Any ideas are appreciated.
>
> Thanks,
> BTB
>
>



Nov 18 '05 #4
Yeah, I am currently developing this on a local machine and I knew I would
have to tackle this later. Is there an easier way to get data into a shared
tasks folder?

Thanks,
Brent
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
You realize you are firing Outlook on the server right?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.

Thanks for your reply

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
You trying to write to outlook's PST or to the Exchange server?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:Og**************@TK2MSFTNGP11.phx.gbl...
>I have an application that needs to write tasks into an outlook task
>folder.
> I keep getting the "Access is Denied" error
>
> ASP.NET is not authorized to access the requested resource.
>
> Which resource do I need to give the asp.net account access to. I have > ran
> dcomcnfg.exe and given the asp.net account access to all the resources. > This doesn't change anything.
>
> Any ideas are appreciated.
>
> Thanks,
> BTB
>
>



Nov 18 '05 #5
"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.


Is Outlook actually installed on your server, not your client?
Nov 18 '05 #6
Hi,
I have the same problem, I have made an assembly that access to Outlook 2003
through
Microsoft.Interop.Office.Outlook assembly. My library works fine with
Windows applications. However, when I try to use it with ASP.NET
applications, I have this error :

Access is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

I have tried <identity impersonate="true" userName="MyMachine\MyUser"
password="p@Ssword"/> but I have still the same error.
Can anybody help me please ?

"Brent Burkart" <br****@wvmb.com> wrote in message
news:Og**************@TK2MSFTNGP11.phx.gbl...
I have an application that needs to write tasks into an outlook task
folder.
I keep getting the "Access is Denied" error

ASP.NET is not authorized to access the requested resource.

Which resource do I need to give the asp.net account access to. I have
ran
dcomcnfg.exe and given the asp.net account access to all the resources.
This doesn't change anything.

Any ideas are appreciated.

Thanks,
BTB

Nov 18 '05 #7
Write to Exchange, not outlook, that's where I would start looking.

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
Yeah, I am currently developing this on a local machine and I knew I would
have to tackle this later. Is there an easier way to get data into a
shared
tasks folder?

Thanks,
Brent
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
You realize you are firing Outlook on the server right?

Curt

"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
>I am getting stuck when I try to instantiate an instance of Outlook
>
> Dim ol As New Outlook.Application()
>
> This is triggering my error.
>
> Thanks for your reply
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:uV**************@TK2MSFTNGP10.phx.gbl...
>> You trying to write to outlook's PST or to the Exchange server?
>>
>> Curt
>>
>> "Brent Burkart" <br****@wvmb.com> wrote in message
>> news:Og**************@TK2MSFTNGP11.phx.gbl...
>> >I have an application that needs to write tasks into an outlook task
>> >folder.
>> > I keep getting the "Access is Denied" error
>> >
>> > ASP.NET is not authorized to access the requested resource.
>> >
>> > Which resource do I need to give the asp.net account access to. I have >> > ran
>> > dcomcnfg.exe and given the asp.net account access to all the resources. >> > This doesn't change anything.
>> >
>> > Any ideas are appreciated.
>> >
>> > Thanks,
>> > BTB
>> >
>> >
>>
>>
>
>



Nov 18 '05 #8
It can be installed, I just haven't gotten to that point yet.

Thanks
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.


Is Outlook actually installed on your server, not your client?

Nov 18 '05 #9
"Brent Burkart" <br****@wvmb.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Er, I'm obviously missing something here - are you saying that you're
getting an error when you try to instantiate an instance of Outlook, and you
haven't actually *installed* Outlook...?

Also, what are you trying to do here? Is the code snippet you posted
supposed to be client-side VBScript instantiating Outlook on the client's
PC, or server-side VB.NET instantiating Outlook on the webserver?
It can be installed, I just haven't gotten to that point yet.

Thanks
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I am getting stuck when I try to instantiate an instance of Outlook

Dim ol As New Outlook.Application()

This is triggering my error.


Is Outlook actually installed on your server, not your client?


Nov 18 '05 #10
the only thing you are missing is that I am developing this on a development
box that does have outlook. As soon as its complete, I will be moving it to
a production box.

The code is supposed to be server side.

Thanks
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"Brent Burkart" <br****@wvmb.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Er, I'm obviously missing something here - are you saying that you're
getting an error when you try to instantiate an instance of Outlook, and you haven't actually *installed* Outlook...?

Also, what are you trying to do here? Is the code snippet you posted
supposed to be client-side VBScript instantiating Outlook on the client's
PC, or server-side VB.NET instantiating Outlook on the webserver?
It can be installed, I just haven't gotten to that point yet.

Thanks
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
"Brent Burkart" <br****@wvmb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...

> I am getting stuck when I try to instantiate an instance of Outlook
>
> Dim ol As New Outlook.Application()
>
> This is triggering my error.

Is Outlook actually installed on your server, not your client?



Nov 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work...
4
by: lauren quantrell | last post by:
Is there a way to open the MS Outlook address book using VBA and then be able to do something with the return value? I want users to click an icon to open the Outlook address book then when an...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
4
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
0
by: Sanjay | last post by:
ho to all i am using this code Dim OuApp = New Outlook.ApplicationClass() Dim NSpace As Outlook.NameSpace Dim Fldrs As Outlook.Folders Dim subFldr As Outlook.MAPIFolder
1
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files...
1
by: Phil Stanton | last post by:
I have a Yacht Club Db with names addresse phone nos, emails etc. I want to export them to Outlook. No problem in getting them into the contact folder. My problem is I have a folder within the...
4
prabunewindia
by: prabunewindia | last post by:
Hello everybody, here i am going to explain, how to get mails from Outlook express database and store in our own database(local) Initially you have to add the refference Outlook library10.0 or...
0
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.