设为首页 收藏本站
查看: 696|回复: 0

[经验分享] Outlook tasks

[复制链接]

尚未签到

发表于 2015-9-13 09:03:51 | 显示全部楼层 |阅读模式
  来源:http://www.imcoder.org/enterprise-service/190579.htm
  
  

Q:I am not a newbie to asp.net, but I am new to the integration to outlook. I have an app that creates jobs for computer technitians to complete (go and fix a clients computer, install network cards, etc...) so there are alot of jobs for a technitian to complete in one day.

I would like to be able to create a task in outlook upon the click of a button in the app. I have researched a bit on it and I can really find anything that will help me.

this link:
http://www.codeproject.com/csharp/SendTasksPgmticly.asp

is the best one I have found, but im getting errors, "CDO not accessible" so I dont know whats going on there...

Any ideas or code samples will be greatly appreciated.

Kram

A:Ok, so after a bit of research I have found that I am going to use the WebDAV and HttpRequest classes to publish the request to an exchange server.

Its bascially setting up some XML to pass to the exchange server.Then set up a NetworkCredential class.

After the setup of the HttpRequest object is done, I run the .GetRequest() method. Then I get the error:

Invalid URI: The format of the URI could not be determined

Any Ideas?

A:Ok i solved it, the issue was with my proxy, I had to add valid proxy credentials to the httpwebrequest!

Ok,for all you youngesters, he's a tip: LOOK AT THE INNER EXCEPTION! manthat would have made my life easier if I had read it earlier.

here is how to add a proxy credential:

WebProxy proxy = new WebProxy(System.Configuration.ConfigurationSettings.AppSettings["Proxy"]);
proxy.Credentials = new NetworkCredential("username", "password", "domain");
PROPPATCHRequest.Proxy = proxy;

where PROPPATCHRequest is my instance of the HttpWebRequest class,

and

System.Configuration.ConfigurationSettings.AppSettings["Proxy"]is a app setting in my web.config file (this can be replaced with anyold string of a proxy server, i.e. http://192.168.0.1:8080)
A:I know that I seem to be the only one on this thread. But I wondering if someone could help me understand the webdav side of what I've done.
I need someone to point me in the direction of the documentation behind submitting a http request to exchange in order to get my deisred appointment in outlook. Like I said, I got it working, but Im not really sure about what it is im doing.

Any help would be apprecitated

(I.e. a link to the syntax of the webdav stuff, examples, some sort of API of the xml behind the calendar features of exchange)

Cheers

A:  hi kram,
  I appreciate your effort for publishing the solution and following the thread...:). Here I have a case with outlook.
  I am developing a ASP.Net application where mails have to be send to users. The E-Mail address of the user should be accessed from the microsoft outlook global address book.
  Is there any .Net classes, which shall perform this fuunctionality. I feel the Microsoft Exchange server has to be contacted for this and access the public folder where, the address will be stored.
  How to access it?
  Thanks in advance

A:There are certainly ways to do this, just off a bit of reearch there is a page that has exactly what you want.

http://www.metaprosystems.com/NetTipsTricks.aspx

scroll down to the section:

MetaPro Systems Inc. Visual Studio Dot Net Tips & Tricks #3 - Direct Access to
Your Outlook Address Book

This should get you on your way. I should also tell you of the reference that you can add to your project to make outlook classes available to you. its a COM reference called "Microsoft Outlook 11.0 Object Library"



A:  Thank You !
  We are yet to start our application. I hope it will work well.
  Well what about the issue you had. As per your thread, were you able to find the activities behind the scene.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-112876-1-1.html 上篇帖子: How do I access my Outlook contacts from my web application? 下篇帖子: office outlook开机自启动并最小化到系统托盘
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表