I created a .NET component.
I tried to use this component in .aspx page.
But somehow the runtime is not able to find the Namespace I created.
I created a bin directory in the virtual directory and put the .aspx file.
I also tried to create a web.config file with add assembly element,
but still the assembly is not loaded.
Can somebody help me out to deploy a aspx application in IIS using .NET component.I
would
love if someone specifies it with the code.
***************** .NET Compoennt ASPTest2.dll ********************
Imports System
Imports System.Text
Imports Microsoft.VisualBasic
Imports System.Reflection
Namespace ASPTest2
Public Class HelloObjVB
Private _name As String
Public Sub New()
MyBase.New()
_name = ""
End Sub
Public Property FirstName() As String
Get
Return _name
End Get
Set(ByVal Value As String)
_name = Value
End Set
End Property
Public Function SayHello() As String
Dim SB As StringBuilder
SB = New StringBuilder("Hello ")
If Not (_name = "") Then
SB.Append(_name)
Else
SB.Append("World")
End If
SB.Append("!")
Return SB.ToString()
End Function
End Class
End Namespace
Thanks
Dinesh
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.