A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

New Outlook.Application throws FileNotFoundException



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 5th 06, 05:01 AM posted to microsoft.public.outlook.program_vba
Sue
external usenet poster
 
Posts: 5
Default New Outlook.Application throws FileNotFoundException

ASP.NET 2003, web application (VB), XP, Outlook 2002 - wrote short app to
loop through outlook folder, parse mail item body for http URLs to image
files, use system.net.webclient downloadfile to grab the image and save to
folder on PC. No exchange server. App was working fine. Added additional
items to parse in the mail item body. From one compile/run to the next,
started getting a FileNotFoundException error on the MyApp = new
Outlook.Application line. I've checked what security settings I can find in
MSDN, google that seem to apply, verified the outlook.dll is in the bin file,
cleaned out the vb web cache in the framework 1.1 folder. I'm at a loss as to
what to try next. I really need to automate this since upwards of 100 images
each day need to be saved to disk and doing this manually is too time
consuming. Any ideas or suggestions?

tia,
Sue
Ads
  #2  
Old April 5th 06, 05:53 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default New Outlook.Application throws FileNotFoundException

Outlook, just like any other Office app, cannot and should not be used from
a service (such as IIS).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Sue" wrote in message
...
ASP.NET 2003, web application (VB), XP, Outlook 2002 - wrote short app to
loop through outlook folder, parse mail item body for http URLs to image
files, use system.net.webclient downloadfile to grab the image and save to
folder on PC. No exchange server. App was working fine. Added additional
items to parse in the mail item body. From one compile/run to the next,
started getting a FileNotFoundException error on the MyApp = new
Outlook.Application line. I've checked what security settings I can find
in
MSDN, google that seem to apply, verified the outlook.dll is in the bin
file,
cleaned out the vb web cache in the framework 1.1 folder. I'm at a loss as
to
what to try next. I really need to automate this since upwards of 100
images
each day need to be saved to disk and doing this manually is too time
consuming. Any ideas or suggestions?

tia,
Sue



  #3  
Old April 5th 06, 06:01 AM posted to microsoft.public.outlook.program_vba
Sue
external usenet poster
 
Posts: 5
Default New Outlook.Application throws FileNotFoundException

Thank you for the info. Doesn't help me solve this problem though.

Sue

"Dmitry Streblechenko" wrote:

Outlook, just like any other Office app, cannot and should not be used from
a service (such as IIS).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Sue" wrote in message
...
ASP.NET 2003, web application (VB), XP, Outlook 2002 - wrote short app to
loop through outlook folder, parse mail item body for http URLs to image
files, use system.net.webclient downloadfile to grab the image and save to
folder on PC. No exchange server. App was working fine. Added additional
items to parse in the mail item body. From one compile/run to the next,
started getting a FileNotFoundException error on the MyApp = new
Outlook.Application line. I've checked what security settings I can find
in
MSDN, google that seem to apply, verified the outlook.dll is in the bin
file,
cleaned out the vb web cache in the framework 1.1 folder. I'm at a loss as
to
what to try next. I really need to automate this since upwards of 100
images
each day need to be saved to disk and doing this manually is too time
consuming. Any ideas or suggestions?

tia,
Sue




  #4  
Old April 5th 06, 12:38 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default New Outlook.Application throws FileNotFoundException

To ask directly the question that Dmitry's response implies, why would you use a web application to extract data from a local Outlook user's folders?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Sue" wrote in message ...
ASP.NET 2003, web application (VB), XP, Outlook 2002 - wrote short app to
loop through outlook folder, parse mail item body for http URLs to image
files, use system.net.webclient downloadfile to grab the image and save to
folder on PC. No exchange server. App was working fine. Added additional
items to parse in the mail item body. From one compile/run to the next,
started getting a FileNotFoundException error on the MyApp = new
Outlook.Application line. I've checked what security settings I can find in
MSDN, google that seem to apply, verified the outlook.dll is in the bin file,
cleaned out the vb web cache in the framework 1.1 folder. I'm at a loss as to
what to try next. I really need to automate this since upwards of 100 images
each day need to be saved to disk and doing this manually is too time
consuming. Any ideas or suggestions?

tia,
Sue

  #5  
Old April 5th 06, 02:04 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default New Outlook.Application throws FileNotFoundException

I've had to do similar things from Web apps for a few projects for clients.
In those cases if I wanted to use Outlook code I wrote a DLL using the
Outlook object model, marked it safe for scripting and safe for
initialization and had the DLL downloaded to the client machine. Then the
Web code could automate the DLL and get the data back that way.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" wrote in message
...
To ask directly the question that Dmitry's response implies, why would you
use a web application to extract data from a local Outlook user's folders?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


  #6  
Old April 5th 06, 02:18 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default New Outlook.Application throws FileNotFoundException

That makes more sense than trying to do it directly with ASP.NET code.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ken Slovak - [MVP - Outlook]" wrote in message ...
I've had to do similar things from Web apps for a few projects for clients.
In those cases if I wanted to use Outlook code I wrote a DLL using the
Outlook object model, marked it safe for scripting and safe for
initialization and had the DLL downloaded to the client machine. Then the
Web code could automate the DLL and get the data back that way.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" wrote in message
...
To ask directly the question that Dmitry's response implies, why would you
use a web application to extract data from a local Outlook user's folders?



  #7  
Old April 5th 06, 04:31 PM posted to microsoft.public.outlook.program_vba
Sue
external usenet poster
 
Posts: 5
Default New Outlook.Application throws FileNotFoundException

To ask directly the question that Dmitry's response implies, why would you
use a web application to extract data from a local Outlook user's folders?

At the moment, I need a stopgap solution and I'm most familiar with asp.net
in a web application. Ultimately (as in within the next 4-5 weeks), I plan on
moving it to a vba "macro" - which I have to figure out first since I'm
barely familiar with the Office programming environment. I recognize the
risks, doing what I can to minimize them. Just need to buy some time to
finish off two other applications first. Does this help?

Sue, juggling too much work with too little resources as usual
  #8  
Old April 5th 06, 04:33 PM posted to microsoft.public.outlook.program_vba
Sue
external usenet poster
 
Posts: 5
Default New Outlook.Application throws FileNotFoundException

p.s. I'm receptive to alternatives if they can get this up and running in the
next day or two without using more than an hour or two of time!

tia,
Sue
  #9  
Old April 5th 06, 04:53 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default New Outlook.Application throws FileNotFoundException

So, you have to figure out the Outlook code first and doing that in VBA is the easiest way, right? If you're in Outlook VBA, you use its intrinsic Application object instead of New Outlook.Application.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Sue" wrote in message news
To ask directly the question that Dmitry's response implies, why would you

use a web application to extract data from a local Outlook user's folders?

At the moment, I need a stopgap solution and I'm most familiar with asp.net
in a web application. Ultimately (as in within the next 4-5 weeks), I plan on
moving it to a vba "macro" - which I have to figure out first since I'm
barely familiar with the Office programming environment. I recognize the
risks, doing what I can to minimize them. Just need to buy some time to
finish off two other applications first. Does this help?

Sue, juggling too much work with too little resources as usual

  #10  
Old April 5th 06, 06:58 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default New Outlook.Application throws FileNotFoundException

If you need your solution to run in a service (IIS), switching to CDO 1.21
or a custom library that uses Extended MAPI (such as Redemption or write
your own) is the only solution. Even if you make OOM work in a service, it
will break at the worst moment
If you do need to use OOM in your code, do not run it as a service :-)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Sue" wrote in message
...
Thank you for the info. Doesn't help me solve this problem though.

Sue

"Dmitry Streblechenko" wrote:

Outlook, just like any other Office app, cannot and should not be used
from
a service (such as IIS).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Sue" wrote in message
...
ASP.NET 2003, web application (VB), XP, Outlook 2002 - wrote short app
to
loop through outlook folder, parse mail item body for http URLs to
image
files, use system.net.webclient downloadfile to grab the image and save
to
folder on PC. No exchange server. App was working fine. Added
additional
items to parse in the mail item body. From one compile/run to the next,
started getting a FileNotFoundException error on the MyApp = new
Outlook.Application line. I've checked what security settings I can
find
in
MSDN, google that seem to apply, verified the outlook.dll is in the bin
file,
cleaned out the vb web cache in the framework 1.1 folder. I'm at a loss
as
to
what to try next. I really need to automate this since upwards of 100
images
each day need to be saved to disk and doing this manually is too time
consuming. Any ideas or suggestions?

tia,
Sue






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook.exe-application error ramosp1 Outlook - Using Contacts 0 March 10th 06 09:38 PM
getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp [email protected] Add-ins for Outlook 2 February 17th 06 05:18 PM
Outlook.Application handles Quit donald Add-ins for Outlook 3 February 16th 06 02:45 PM
Outlook Application variable problem Ram Add-ins for Outlook 0 February 12th 06 02:25 PM
Outlook 2003 throws an unhandled exception when I save a new item Engineer Rick Outlook - Calandaring 0 January 30th 06 05:57 AM


All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.