HttpParseException - Parser error - could not create type - my ASMX webservice
something has gone wrong asmx web service project (using visual studio 2005 , wse 3.0); cannot run web service (it used work , have changed no source code). here current symptom:
server error in '/trimbrokerservice' application.
parser error message: not create type 'trimbrokerservice.fileservice'.
source error:
source file: /trimbrokerservice/fileservice.asmx line: 1
version information: microsoft .net framework version:2.0.50727.3053; asp.net version:2.0.50727.3053
application log:
event code: 3006
event message: parser error has occurred.
event time: 4/1/2009 1:23:30 pm
event time (utc): 4/1/2009 5:23:30 pm
event id: cb5f14ef41dd489299a24bae7cd8e848
event sequence: 5
event occurrence: 1
event detail code: 0
application information:
application domain: /lm/w3svc/1/root/trimbrokerservice-1-128830801979725356
trust level: full
application virtual path: /trimbrokerservice
application path: c:\documents , settings\johna\my documents\visual studio 2005\projects\wse\trimbrokerpassingbytearray\trimbroker\trimbrokerservice\
machine name: johnxp
process information:
process id: 2816
process name: aspnet_wp.exe
account name: johnxp\aspnet
exception information:
exception type: httpparseexception
exception message: not create type 'trimbrokerservice.fileservice'.
request information:
request url: http://localhost/trimbrokerservice/fileservice.asmx
request path: /trimbrokerservice/fileservice.asmx
user host address: 127.0.0.1
user: cbmiweb\johna
authenticated: true
authentication type: negotiate
thread account name: johnxp\aspnet
thread information:
thread id: 1
thread account name: johnxp\aspnet
impersonating: false
stack trace: @ system.web.ui.simplewebhandlerparser.gettype(string typename)
@ system.web.ui.simplewebhandlerparser.gettypetocache(assembly builtassembly)
@ system.web.compilation.simplehandlerbuildprovider.getgeneratedtype(compilerresults results)
@ system.web.compilation.buildprovider.createbuildresult(compilerresults results)
@ system.web.compilation.buildprovider.getbuildresult(compilerresults results)
@ system.web.compilation.buildmanager.compilewebfile(virtualpath virtualpath)
@ system.web.compilation.buildmanager.getvpathbuildresultinternal(virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
@ system.web.compilation.buildmanager.getvpathbuildresultwithnoassert(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
@ system.web.compilation.buildmanager.getvpathbuildresult(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
@ system.web.compilation.buildmanager.getvpathbuildresult(httpcontext context, virtualpath virtualpath)
@ system.web.ui.webserviceparser.getcompiledtype(string inputfile, httpcontext context)
@ system.web.services.protocols.webservicehandlerfactory.gethandler(httpcontext context, string verb, string url, string filepath)
@ system.web.httpapplication.maphttphandler(httpcontext context, string requesttype, virtualpath path, string pathtranslated, boolean useappconfig)
@ system.web.httpapplication.maphandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()
@ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously)
rebuild on webservice project (always seems ok debug settings too):
------ rebuild started: project: trimbrokerservice, configuration: debug cpu ------
c:\windows\microsoft.net\framework\v2.0.50727\csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:debug;trace /reference:"c:\program files\microsoft wse\v3.0\microsoft.web.services3.dll" /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.configuration.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.data.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.drawing.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.enterpriseservices.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.web.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.web.mobile.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.web.services.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.xml.dll /reference:..\trimbrokerutilities\trimbrokerutil\bin\debug\trimbrokerutil.dll /debug+ /debug:full /optimize- /out:obj\debug\trimbrokerservice.dll /target:library fileservice.asmx.cs properties\assemblyinfo.cs properties\settings.designer.cs "web references\asmxwstrim\reference.cs" webservice1.asmx.cs
compile complete -- 0 errors, 0 warnings
happens when debug -> start new instance yet same parser error if browse url.
currently, trying using local iis (on windows xp) before typically using builtin (cassini) web server on localhost:3060. both methods fail same way now. virtual directory looks configured ok. said, used work , quite messed up.
server error in '/trimbrokerservice' application.
parser error
description: error occurred during parsing of resource required service request. please review following specific parse error details , modify source file appropriately.parser error message: not create type 'trimbrokerservice.fileservice'.
source error:
line 1: <%@ webservice language="c#" codebehind="fileservice.asmx.cs" class="trimbrokerservice.fileservice" %> |
source file: /trimbrokerservice/fileservice.asmx line: 1
version information: microsoft .net framework version:2.0.50727.3053; asp.net version:2.0.50727.3053
application log:
event code: 3006
event message: parser error has occurred.
event time: 4/1/2009 1:23:30 pm
event time (utc): 4/1/2009 5:23:30 pm
event id: cb5f14ef41dd489299a24bae7cd8e848
event sequence: 5
event occurrence: 1
event detail code: 0
application information:
application domain: /lm/w3svc/1/root/trimbrokerservice-1-128830801979725356
trust level: full
application virtual path: /trimbrokerservice
application path: c:\documents , settings\johna\my documents\visual studio 2005\projects\wse\trimbrokerpassingbytearray\trimbroker\trimbrokerservice\
machine name: johnxp
process information:
process id: 2816
process name: aspnet_wp.exe
account name: johnxp\aspnet
exception information:
exception type: httpparseexception
exception message: not create type 'trimbrokerservice.fileservice'.
request information:
request url: http://localhost/trimbrokerservice/fileservice.asmx
request path: /trimbrokerservice/fileservice.asmx
user host address: 127.0.0.1
user: cbmiweb\johna
authenticated: true
authentication type: negotiate
thread account name: johnxp\aspnet
thread information:
thread id: 1
thread account name: johnxp\aspnet
impersonating: false
stack trace: @ system.web.ui.simplewebhandlerparser.gettype(string typename)
@ system.web.ui.simplewebhandlerparser.gettypetocache(assembly builtassembly)
@ system.web.compilation.simplehandlerbuildprovider.getgeneratedtype(compilerresults results)
@ system.web.compilation.buildprovider.createbuildresult(compilerresults results)
@ system.web.compilation.buildprovider.getbuildresult(compilerresults results)
@ system.web.compilation.buildmanager.compilewebfile(virtualpath virtualpath)
@ system.web.compilation.buildmanager.getvpathbuildresultinternal(virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
@ system.web.compilation.buildmanager.getvpathbuildresultwithnoassert(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
@ system.web.compilation.buildmanager.getvpathbuildresult(httpcontext context, virtualpath virtualpath, boolean nobuild, boolean allowcrossapp, boolean allowbuildinprecompile)
@ system.web.compilation.buildmanager.getvpathbuildresult(httpcontext context, virtualpath virtualpath)
@ system.web.ui.webserviceparser.getcompiledtype(string inputfile, httpcontext context)
@ system.web.services.protocols.webservicehandlerfactory.gethandler(httpcontext context, string verb, string url, string filepath)
@ system.web.httpapplication.maphttphandler(httpcontext context, string requesttype, virtualpath path, string pathtranslated, boolean useappconfig)
@ system.web.httpapplication.maphandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()
@ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously)
rebuild on webservice project (always seems ok debug settings too):
------ rebuild started: project: trimbrokerservice, configuration: debug cpu ------
c:\windows\microsoft.net\framework\v2.0.50727\csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:debug;trace /reference:"c:\program files\microsoft wse\v3.0\microsoft.web.services3.dll" /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.configuration.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.data.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.drawing.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.enterpriseservices.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.web.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.web.mobile.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.web.services.dll /reference:c:\windows\microsoft.net\framework\v2.0.50727\system.xml.dll /reference:..\trimbrokerutilities\trimbrokerutil\bin\debug\trimbrokerutil.dll /debug+ /debug:full /optimize- /out:obj\debug\trimbrokerservice.dll /target:library fileservice.asmx.cs properties\assemblyinfo.cs properties\settings.designer.cs "web references\asmxwstrim\reference.cs" webservice1.asmx.cs
compile complete -- 0 errors, 0 warnings
happens when debug -> start new instance yet same parser error if browse url.
currently, trying using local iis (on windows xp) before typically using builtin (cassini) web server on localhost:3060. both methods fail same way now. virtual directory looks configured ok. said, used work , quite messed up.
sorry....i think fixed this. found link helped:
http://blog.techdreams.org/2008/04/could-not-load-type-aspnet-20-error-and.html
changed output path bin\ , seemed fix things.
please ignore crying problem above.
http://blog.techdreams.org/2008/04/could-not-load-type-aspnet-20-error-and.html
changed output path bin\ , seemed fix things.
please ignore crying problem above.
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment