'/'应用程序中的服务器错误。分析器错误 [英] Server Error in '/' Application. Parser Error

查看:370
本文介绍了'/'应用程序中的服务器错误。分析器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有



我已将应用程序从框架1.1迁移到框架4.5。一切顺利,但是出现了错误,我无法解决。



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







请回复解决方案



Bellow是我的WS_GF.asmx.vb代码






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()
        'This call is required by the Web Services Designer.
        InitializeComponent()
        loadFile = CType(configReader.GetValue("DATABASE", GetType(System.String)), String)

        'Load the Assembly from a file according to the given
        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
        'Add your own initialization code after the InitializeComponent() call

    End Sub

    'Required by the Web Services Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Web Services Designer
    'It can be modified using the Web Services Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        components = New System.ComponentModel.Container
    End Sub
    

    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        'CODEGEN: This procedure is required by the Web Services Designer
        'Do not modify it using the code editor.
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

End Class





贝娄是我的WS_GF.asmx代码





bellow is my WS_GF.asmx code

<%@ WebService Language="vb" Codebehind="WS_GF.asmx.vb" Class="WS_GF.WS_GF" %>





请用解决方案回复。



Please reply with solution.

推荐答案

首先查看你的asmx文件和fin在WS_GF类中:它的名称空间是什么?它包含在任何其他类中吗?可能需要将asmx文件中的WS_GF.WS_GF引用更改为WS_GF - 但是看起来我们无法分辨!



这不是什么我们可以直接解决:我们无法访问您的源文件,所以我们甚至可以找你!
Start by looking at your asmx file and finding the WS_GF class: what namespace is it in? Is it contained in any other classes? It may be that you need to change the WS_GF.WS_GF reference in the asmx file to just WS_GF - but without looking we can't tell!

This is not something we can directly solve: we don't have access to your source files, so we can;t even look for you!


Line 1:  <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/BGT/UI/PreJoining/PreJoiningMasterPage.Master" CodeBehind="ResumeUpload.aspx.vb" Inherits="ARMS.ResumeUpload" %>
Line 2:  <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
Line 3:  <title>Resume Upload</title>


这篇关于'/'应用程序中的服务器错误。分析器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆