Dear All
I have migrated am application from framework 1.1 to framework 4.5. Every thing is going well, but a got an error and I am not able to resolve it.
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'WS_GF.WS_GF'.
Source Error:
Line 1: <%@ WebService Language="vb" Codebehind="WS_GF.asmx.vb" Class="WS_GF.WS_GF" %>
Source File: /WS_GF.asmx Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447
Please reply with solution
Bellow is my WS_GF.asmx.vb code
Imports System.Web.Services
Imports System.Reflection
Imports System.Configuration
Imports System.Web.Security
<System.Web.Services.WebService(Namespace:="http://tempuri.org/WS_GF/WS_GF")> _
Public Class WS_GF
Inherits System.Web.Services.WebService
Public configReader As AppSettingsReader = New AppSettingsReader
Public Obj As Object = Nothing
Public sResult As Object
Public MyAssembly As [Assembly] = Nothing
Public typs As Type() = Nothing
Public arrObj(30) As Object
Public myFile, loadFile, AsmbString, AblyModule As String
Public fetcherMethod As MethodInfo
Public MyType, objType As Type
Public Sub New()
MyBase.New()
InitializeComponent()
loadFile = CType(configReader.GetValue("DATABASE", GetType(System.String)), String)
Try
Select Case UCase(loadFile)
Case "ORACLE"
MyAssembly = [Assembly].LoadFrom("CIMS_ORA_AsmGF.dll")
Case "SQL"
MyAssembly = [Assembly].LoadFrom("CIMS_SQL_AsmGF.dll")
Case "DB2"
MyAssembly = [Assembly].LoadFrom("CIMS_DB2_AsmGF.dll")
End Select
Catch ex As Exception
Dim EEx As String
EEx = ex.Message
End Try
End Sub
Private components As System.ComponentModel.IContainer
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
components = New System.ComponentModel.Container
End Sub
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
End Class
bellow is my WS_GF.asmx code
<%@ WebService Language="vb" Codebehind="WS_GF.asmx.vb" Class="WS_GF.WS_GF" %>
Please reply with solution.