Skip to Content
author's profile photo Former Member
Former Member

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 ,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 02:40 PM

    Hi Ganesh,

    I think your post is in the wrong forum. DI Server falls under the standard SBO SDK functionality and you should post your post on the other forum.

    SAP Business One SDK

    Hope it helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.