Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 147123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:43:33+00:00 2026-05-11T08:43:33+00:00

I’m doing a home project that started off really easy (doesn’t that always happen?)

  • 0

I’m doing a home project that started off really easy (doesn’t that always happen?) and then took a nasty permissions turn.

Basically, I have a home intranet and my PC is doing double-duty as the home web server. I’m running Vista, so we’re talking IIS 7.

In Visual Studio, this works perfectly. I have my homepage query Outlook (2007) and display the next couple appointments. I do this as so,

using Microsoft.Office.Interop.Outlook;  //Be kind -- this is a work in progress public static string nextAppointment() {     System.Text.StringBuilder returnString = new System.Text.StringBuilder();          try         {             Application outlookApp = new ApplicationClass();             NameSpace outlookNamespace = outlookApp.GetNamespace('MAPI');             MAPIFolder theAppts = outlookNamespace.GetDefaultFolder(OlDefaultFolders.olFolderCalendar);              List<AppointmentItem> todaysAppointments = new List<AppointmentItem>();             TimeSpan oneday = new TimeSpan(24, 0, 0);             DateTime today = DateTime.Today;             DateTime yesterday = today.Subtract(oneday);             DateTime tomorrow = today.Add(oneday);              foreach (AppointmentItem someAppt in theAppts.Items)             {                 if (someAppt.Start > yesterday && someAppt.Start < tomorrow)                 {                     todaysAppointments.Add(someAppt);                 }             }              foreach (AppointmentItem todayAppts in todaysAppointments)             {                 returnString.Append(todayAppts.Start.ToShortTimeString() + ' -- ' + todayAppts.Subject + '<br />');             }         }         catch (System.Exception ex)         {             //TO-DO: Add some real handling             returnString.Append('Cannot access calendar');         }           return returnString.ToString(); } 

This code snippet is just a work in progress, but you get the idea. It looks to see what kind of calendar events I have within a 24 hr period and then adds them to a string that I eventually write-out on the webpage. When I debug this in Visual Studio, it runs great through the ASP.NET Development Studio. Feeling confident, I take the same code and run it on IIS for all at home to enjoy, and I get the error (when I don’t catch my exception),

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.

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: Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.

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 , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET 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’ve tried altering permissions through Explorer on the site but no luck.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:43:34+00:00Added an answer on May 11, 2026 at 8:43 am

    Ended up being something else entirely:

    2 fold step — (1) Enter identity credentials to impersonate either in web.config or through iis and (2) give write access to that same user in Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

    Editing pool settings has no effect as it turns out. I can go back and put the pool under NetworkService and it doesn’t matter.

    Thanks for your help! Much appreciated!! It definitely put me on the right track

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 128k
  • Answers 128k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A private method is (unit) private. What you need is… May 12, 2026 at 5:42 am
  • Editorial Team
    Editorial Team added an answer Python standard library offers a method for it: heapq.merge. As… May 12, 2026 at 5:42 am
  • Editorial Team
    Editorial Team added an answer You could make the objects Static, then you have access… May 12, 2026 at 5:42 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.