Re: Converting a VB.Net Console Application to a Web Service
From: Manohar Kamath (mkamath_at_TAKETHISOUTkamath.com)
Date: 03/16/05
- Next message: Henk Verhoeven: "Re: Converting a VB.Net Console Application to a Web Service"
- Previous message: kls_kumar: "Converting a VB.Net Console Application to a Web Service"
- In reply to: kls_kumar: "Converting a VB.Net Console Application to a Web Service"
- Next in thread: Henk Verhoeven: "Re: Converting a VB.Net Console Application to a Web Service"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Mar 2005 15:44:16 -0600
Error 500 is an "internal error" -- which could mean anything. Chances are,
the getNameSpaces method will not work with the ASP.NET's worker process
security. Have you tried running the web service in a user security context?
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"kls_kumar" <klskumar@discussions.microsoft.com> wrote in message
news:E021A99F-3B3F-40BD-8CF0-F66CB17795ED@microsoft.com...
> Hi All,
>
> I wrote a sample application to extract the messages and attachments
from
> a .pst file using VB.Net which is working fine. Now i am trying to web
> service enable this and when i added an operation in .asmx File
>
> <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _
> Public Function extractPST(ByVal fileName As String) As String
> Dim readPST As ReadPST
> readPST = New ReadPST
> readPST.readPST(fileName)
> Return "success"
> End Function
>
> And i have a class ReadPST.vb which has the code
>
> Sub readPST(ByVal fileName As String)
> Dim i As Integer
> Dim objOutlook As New Outlook.Application
> ' Dim objNS As Outlook.NameSpace = objOutlook.Session
> Dim myNameSpace As Outlook.NameSpace =
objOutlook.GetNamespace("MAPI")
> 'Dim file As New System.IO.StreamWriter("c:\test.html")
> ' Add the .pst File to the Name Space
> myNameSpace.AddStore(fileName)
> ...........
>
> And when i tried to debug the code i am getting a 500 Error at the Line
> Dim myNameSpace As Outlook.NameSpace = objOutlook.GetNamespace("MAPI")
>
> How can i resolve this..
>
> Thanks a lot
> Sateesh
>
>
>
>
- Next message: Henk Verhoeven: "Re: Converting a VB.Net Console Application to a Web Service"
- Previous message: kls_kumar: "Converting a VB.Net Console Application to a Web Service"
- In reply to: kls_kumar: "Converting a VB.Net Console Application to a Web Service"
- Next in thread: Henk Verhoeven: "Re: Converting a VB.Net Console Application to a Web Service"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|