473,385 Members | 2,005 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,385 software developers and data experts.

Outlook web service fails!

Hello All!

I've been trying to come up with a web service which enables me to use
outlook remotly with a machine which only has a web browser. I've tried
this with windows forms and it worked without any problem, but the same
thing fails miserably when used as a web service and gives the
exception

<?xml version="1.0" encoding="utf-8" ?>
<string
xmlns="http://tempuri.org/">System.Runtime.InteropServices.COMException
(0x80080005): Server execution failed at NetForms.OutlookMail..ctor()
in c:\inetpub\wwwroot\newtest\codefile1.cs:line 25</string>

*** In IIS i've chosen the annonymous access.
in web.config uses windows authentication and impersonation is true to
my local network login.
Also i've set all the priviledges for my account and the asp.net
account., still nothing works :-(

I've added the office outlook object 11. I've looked for this matter in
vain on the web and tried out several suggestions without any luck.
My machine runs on Win XP and the outlook is connected via an Exchange
server.

Also please let me know whether there any way to connect to exchange
server directly and then get the necessary info without invoking an
outlook app in the local machine, then i hope i'll be able to overcome
this issue.

Thanks in advance for your support!

Jun 9 '06 #1
1 1246
web services like any asp.net app runs as an NT service. a service does not
have a user profile, which outlook and many other application use to find
setup info. look at the exchange sdk for an api to exchange.

-- bruce (sqlwork.com)
<is****@gmail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hello All!

I've been trying to come up with a web service which enables me to use
outlook remotly with a machine which only has a web browser. I've tried
this with windows forms and it worked without any problem, but the same
thing fails miserably when used as a web service and gives the
exception

<?xml version="1.0" encoding="utf-8" ?>
<string
xmlns="http://tempuri.org/">System.Runtime.InteropServices.COMException
(0x80080005): Server execution failed at NetForms.OutlookMail..ctor()
in c:\inetpub\wwwroot\newtest\codefile1.cs:line 25</string>

*** In IIS i've chosen the annonymous access.
in web.config uses windows authentication and impersonation is true to
my local network login.
Also i've set all the priviledges for my account and the asp.net
account., still nothing works :-(

I've added the office outlook object 11. I've looked for this matter in
vain on the web and tried out several suggestions without any luck.
My machine runs on Win XP and the outlook is connected via an Exchange
server.

Also please let me know whether there any way to connect to exchange
server directly and then get the necessary info without invoking an
outlook app in the local machine, then i hope i'll be able to overcome
this issue.

Thanks in advance for your support!

Jun 9 '06 #2

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

Similar topics

1
by: Eric Nelson | last post by:
Experienced, but first time outlook programmer asks... Each day I get an e-mail containing a gzipped tar archive as an attachment. I'd like an automated way to (1) save the archive as-is in a...
1
by: Paul | last post by:
I am using a windows service which accesses Microsoft Outlook. Outlook is supposed to send an email. This works fine when not run in a windows service. I am running the service under my user...
2
by: lauren quantrell | last post by:
Ok, so maybe this is way off the wall...and I realize this is more of a MS Windows question than an Access question, but here goes... Is there a way to grant an Access application itself admin...
1
by: Nagina Eliav | last post by:
Hello I have problem to connect to Outlook from Nt Service i am using following code in c# Outlook.Application oApp=new Outlook.ApplicationClass(); Outlook._NameSpace oNameSpace = ...
0
by: W Akthar | last post by:
Hi All, I have created a simple Windows Service which needs to be able to send appointments to Outlook. I have no problem makeing a reference to Microsoft Outlook 11.0 Object Library and...
5
by: Greg Robinson | last post by:
Not sure where to post this. At runtime, we need to be able to make sure a user is running Outlook (at least 98 or higher) in order to send an email. So, if a condition is met, we need to...
4
by: Tarren | last post by:
Hi, All: I am tasked with the following. I need to write a service to monitor an Exchange mailbox and take action when an email is received, put it in a db, etc. I do not need to send emails...
6
by: AMP | last post by:
I am trying to write a windows sevice that will send emails. The data is stored in a database and the service scans the database for new entries It work well as a stardard windows app, but when...
2
by: Ryan H | last post by:
I made a program that reads emails from an Outlook mailbox and does some stuff and the program works fine. However, my boss now tells me that the program is to be executed from a remote computer....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.