here's the script on main page:
----
<script runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim myCalc As New Calculator
Label1.Text = myCalc.Add(12, 3)
Label2.Text = myCalc.Subtract(34, 67)
End Sub
</script>
----
The html just displays labels. the Calculator is defined in the code folder -- for testing I did the Add as
VB and the Substract as CS :
--------
VB
Imports Microsoft.VisualBasic
Public Class Calculator
Public Function Add(ByVal a As Integer, ByVal b As Integer) As Integer
Return (a + b)
End Function
End Class
--------
-------- CS
using System;
public class Calculator
{
public int Subtract(int a, int b)
{
return (a - b);
}
}
--------
webconfig file:
.
.
<system.web>
<compilation debug="true">
<codeSubDirectories>
<add directoryName="
VB"></add>
<add directoryName="CS"></add>
</codeSubDirectories>
</compilation >
</system.web>
.
.
-------
It runs fine out of the IDE (visual web developer express - part of visual stdio 2005) but gives error when I run the same program in IE (whichs runs other examples fine)
Thanks for any help you can give.
JAB