Skip to Content
Former Member
Aug 02, 2006 at 06:54 AM

Hi here is my first Di-server application


My code is as follows ==>>

file - webform1.aspx

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'Put user code to initialize the page here


Dim requestStr

Dim outStr

Dim obj

requestStr = Request.Form.Item("HTTP_SOAPACTION")

obj = Session("SBODI_Server")

outStr = obj.Interact(requestStr)



Catch mx As Exception

Dim str As String = mx.Message

End Try

End Sub

file - global.aspx

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)

' Fires when the session is started


Session.Timeout = 1

Session("SBODI_Server") = Server.CreateObject("SBODI_Server.Node")

Catch mx As Exception


End Try

End Sub

Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)

' Fires when the session ends

Session("SBODI_Server") = Nothing

End Sub

file webform1.aspx ==>> client script i.e html code

<body MS_POSITIONING="GridLayout">

<!-- <form id="Form1" method="post" runat="server"> -->

<form method="post" action="WebSAPManageSoap.asp">

<INPUT id="button1" style="WIDTH: 84px; HEIGHT: 24px" type="submit" size="36" value="Submit"

name="button1"> <TEXTAREA id="HTTP_SOAPACTION" style="WIDTH: 800px; HEIGHT: 393px" name="HTTP_SOAPACTION"

rows="5" cols="46">Put soap request here</TEXTAREA>


following code in written in in ASP.NET

AND i have SAP B1 installed and SAP Service manager started on my machin too.

I have even added refrence of DI_Service.

But Still i am getting this error =>

<i>Server Error in '/TestDIApplication1.0.2' Application.


Access is denied.

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: Access is denied.

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 \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 <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write 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.

Source Error:

Line 37: 'Try

Line 38: Session.Timeout = 1

Line 39: Session("SBODI_Server") = Server.CreateObject("SBODI_Server.Node")

Line 40: 'Catch mx As Exception

Line 41: ' Response.Write(mx.Message)

Source File: c:\inetpub\wwwroot\TestDIApplication1.0.2\Global.asax.vb Line: 39


Have any one recieved same error. Plz provede me a way out of it.

Regards ,