Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

Server Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Dimech - 28 Dec 2004 15:52 GMT
Hi,

For some wierd reason all my webservices on IIS5.1 are not working.
Everything else is though...web froms, windows forms, etc.

Even if i try to test them through the web browser i get this error:
System.BadImageFormatException: An attempt was made to load a program with
an incorrect format

any idea why?

Your help is appreciated....Andrew

Stack Trace:

[BadImageFormatException: An attempt was made to load a program with an
incorrect format.]
  System.Xml.Schema.XmlSchemaParticle.set_MinOccurs(Decimal value) +0
  System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessor(XmlSchemaGroupBase
group, ElementAccessor accessor, Boolean repeats, Boolean valueTypeOptional,
String ns) +805
  System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessors(XmlSchemaGroupBase
group, ElementAccessor[] accessors, Boolean repeats, Boolean
valueTypeOptional, String ns) +100
  System.Xml.Serialization.XmlSchemaExporter.ExportTypeMembers(XmlSchemaComplexType
type, MemberMapping[] members, String name, String ns, Boolean
hasSimpleContent) +252
  System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(MembersMapping
mapping, String ns) +48
  System.Xml.Serialization.XmlSchemaExporter.ExportElementMapping(XmlSchemaElement
element, Mapping mapping, String ns, Boolean isAny) +222
  System.Xml.Serialization.XmlSchemaExporter.ExportElement(ElementAccessor
accessor) +225
  System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(XmlMembersMapping
xmlMembersMapping) +68
  System.Web.Services.Description.SoapProtocolReflector.CreateLiteralMessage(Message
message, MessageBinding messageBinding, XmlMembersMapping members, Boolean
wrapped) +395
  System.Web.Services.Description.SoapProtocolReflector.CreateMessage(Boolean
rpc, SoapBindingUse use, SoapParameterStyle paramStyle, Message message,
MessageBinding messageBinding, XmlMembersMapping members) +78
  System.Web.Services.Description.SoapProtocolReflector.ReflectMethod()
+449
  System.Web.Services.Description.ProtocolReflector.ReflectBinding(ReflectedBinding
reflectedBinding) +1951
  System.Web.Services.Description.ProtocolReflector.Reflect() +506
  System.Web.Services.Description.ServiceDescriptionReflector.ReflectInternal(ProtocolReflector[]
reflectors) +495
  System.Web.Services.Description.ServiceDescriptionReflector.Reflect(Type
type, String url) +112
  System.Web.Services.Protocols.DocumentationServerType..ctor(Type type,
String uri) +158
  System.Web.Services.Protocols.DocumentationServerProtocol.Initialize()
+269
  System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing) +106

[InvalidOperationException: Unable to handle request.]
  System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing) +205
  System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +82

[InvalidOperationException: Failed to handle request.]
  System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +154
  System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext
context, String verb, String url, String filePath) +94
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +699
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
+95
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +173
Christoph Schittko [MVP] - 29 Dec 2004 03:10 GMT
You said this is happening for all your web services? Is there anything
shared between the services? Have you tried a simple hello world
service?

From looking at the stack trace I am guessing that it's one of your
assemblies that's not loading correctly. All involved .NET assemblies
seem to be loaded into your process.

Have you tried running the fuslogvw tool to see which assembly is not
loading correctly?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

> -----Original Message-----
> From: Andrew Dimech [mailto:andrew_dimech@yahoo.co.uk]
[quoted text clipped - 21 lines]
> incorrect format.]
>    System.Xml.Schema.XmlSchemaParticle.set_MinOccurs(Decimal value) +0

System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessor(XmlSche
ma
> GroupBase
> group, ElementAccessor accessor, Boolean repeats, Boolean
> valueTypeOptional,
> String ns) +805

System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessors(XmlSch
em
> aGroupBase
> group, ElementAccessor[] accessors, Boolean repeats, Boolean
> valueTypeOptional, String ns) +100

System.Xml.Serialization.XmlSchemaExporter.ExportTypeMembers(XmlSchemaCo
mp
> lexType
> type, MemberMapping[] members, String name, String ns, Boolean
> hasSimpleContent) +252

System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(MembersM
ap
> ping
> mapping, String ns) +48

System.Xml.Serialization.XmlSchemaExporter.ExportElementMapping(XmlSchem
aE
> lement
> element, Mapping mapping, String ns, Boolean isAny) +222

System.Xml.Serialization.XmlSchemaExporter.ExportElement(ElementAccessor
> accessor) +225

System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(XmlMembe
rs
> Mapping
> xmlMembersMapping) +68

System.Web.Services.Description.SoapProtocolReflector.CreateLiteralMessa
ge
> (Message
> message, MessageBinding messageBinding, XmlMembersMapping members, Boolean
> wrapped) +395

System.Web.Services.Description.SoapProtocolReflector.CreateMessage(Bool
ea
> n
> rpc, SoapBindingUse use, SoapParameterStyle paramStyle, Message message,
> MessageBinding messageBinding, XmlMembersMapping members) +78

System.Web.Services.Description.SoapProtocolReflector.ReflectMethod()
> +449

System.Web.Services.Description.ProtocolReflector.ReflectBinding(Reflect
ed
> Binding
> reflectedBinding) +1951
>    System.Web.Services.Description.ProtocolReflector.Reflect() +506

System.Web.Services.Description.ServiceDescriptionReflector.ReflectInter
na
> l(ProtocolReflector[]
> reflectors) +495

System.Web.Services.Description.ServiceDescriptionReflector.Reflect(Type
> type, String url) +112
>    System.Web.Services.Protocols.DocumentationServerType..ctor(Type type,
> String uri) +158

System.Web.Services.Protocols.DocumentationServerProtocol.Initialize()
> +269
>    System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
[quoted text clipped - 5 lines]
> HttpContext context, HttpRequest request, HttpResponse response, Boolean&
> abortProcessing) +205

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Ty
pe
> type, HttpContext context, HttpRequest request, HttpResponse response) +82
>
> [InvalidOperationException: Failed to handle request.]

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Ty
pe
> type, HttpContext context, HttpRequest request, HttpResponse response)
> +154

System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpCo
nt
> ext
> context, String verb, String url, String filePath) +94
>    System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
> requestType, String path, String pathTranslated, Boolean useAppConfig)
> +699

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecution
St
> ep.Execute()
> +95
>    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +173
Andrew Dimech - 29 Dec 2004 12:54 GMT
Yes, this is happening to all my web services and yes i also tried with a
simple hello web service.

I thought some assemblies might be corrupted as i had bad clustors on HD so
I runned chkdsk volume: /F /R /V. But it still didn't work.

from where can i get fuslogvw?

Thank You....Andrew

> You said this is happening for all your web services? Is there anything
> shared between the services? Have you tried a simple hello world
[quoted text clipped - 154 lines]
> Boolean&
>> completedSynchronously) +173
Dilip Krishnan - 29 Dec 2004 14:54 GMT
Hello Andrew,
     Open a VS.net command window and type fuslogvw. You could also try
the aspnet_regiis command http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cp
grfASPNETIISRegistrationToolAspnet_regiisexe.asp
 
and see if it helps

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> Yes, this is happening to all my web services and yes i also tried
> with a simple hello web service.
[quoted text clipped - 193 lines]
>>
>>> completedSynchronously) +173
Andrew Dimech - 29 Dec 2004 16:58 GMT
I'm going crazy now!!!

- Fuslogvw doesn't list any failures neither with "Default" nor with
"ASP.NET" option
- I've removed .NET Framework 1.0....so now I only have the .NET Framework
1.1 installed. This rules out any sidebyside issues. But still it doesn't
work!

what on earth can it be?

Thanks for your support....Andrew

> Hello Andrew,
>      Open a VS.net command window and type fuslogvw. You could also try
[quoted text clipped - 206 lines]
>>>
>>>> completedSynchronously) +173
Christoph Schittko [MVP] - 29 Dec 2004 17:48 GMT
I admit that I am taking stabs now. Did you reinstall the framework,
although from the stack trace I am still thinking that the framework
assemblies are not the culprit.

Can you do a clean build and re-install your application?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

> -----Original Message-----
> From: Andrew Dimech [mailto:andrew_dimech@yahoo.co.uk]
[quoted text clipped - 85 lines]
> >>>> incorrect format.]
> >>>> System.Xml.Schema.XmlSchemaParticle.set_MinOccurs(Decimal value) +0

System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessor(XmlS
> >>> che ma
> >>>
> >>>> GroupBase
> >>>> group, ElementAccessor accessor, Boolean repeats, Boolean
> >>>> valueTypeOptional,
> >>>> String ns) +805

System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessors(Xml
> >>> Sch em
> >>>
> >>>> aGroupBase
> >>>> group, ElementAccessor[] accessors, Boolean repeats, Boolean
> >>>> valueTypeOptional, String ns) +100

System.Xml.Serialization.XmlSchemaExporter.ExportTypeMembers(XmlSchem
> >>> aCo mp
> >>>
> >>>> lexType
> >>>> type, MemberMapping[] members, String name, String ns, Boolean
> >>>> hasSimpleContent) +252

System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(Membe
> >>> rsM ap
> >>>
> >>>> ping
> >>>> mapping, String ns) +48

System.Xml.Serialization.XmlSchemaExporter.ExportElementMapping(XmlSc
> >>> hem aE
> >>>
> >>>> lement
> >>>> element, Mapping mapping, String ns, Boolean isAny) +222

System.Xml.Serialization.XmlSchemaExporter.ExportElement(ElementAcces
> >>> sor
> >>>
> >>>> accessor) +225

System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(XmlMe
> >>> mbe rs
> >>>
> >>>> Mapping
> >>>> xmlMembersMapping) +68

System.Web.Services.Description.SoapProtocolReflector.CreateLiteralMe
> >>> ssa ge
> >>>
[quoted text clipped - 3 lines]
> >>>
> >>>> wrapped) +395

System.Web.Services.Description.SoapProtocolReflector.CreateMessage(B
> >>> ool ea
> >>>
[quoted text clipped - 3 lines]
> >>>
> >>>> MessageBinding messageBinding, XmlMembersMapping members) +78

System.Web.Services.Description.SoapProtocolReflector.ReflectMethod()

> >>>> +449

System.Web.Services.Description.ProtocolReflector.ReflectBinding(Refl
> >>> ect ed
> >>>
> >>>> Binding
> >>>> reflectedBinding) +1951
> >>>> System.Web.Services.Description.ProtocolReflector.Reflect() +506

System.Web.Services.Description.ServiceDescriptionReflector.ReflectIn
> >>> ter na
> >>>
> >>>> l(ProtocolReflector[]
> >>>> reflectors) +495

System.Web.Services.Description.ServiceDescriptionReflector.Reflect(T
> >>> ype
> >>>
[quoted text clipped - 3 lines]
> >>>
> >>>> String uri) +158

System.Web.Services.Protocols.DocumentationServerProtocol.Initialize(
> >>> )
> >>>
[quoted text clipped - 18 lines]
> >>>
> >>>> abortProcessing) +205

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
> >>> (Ty pe
> >>>
[quoted text clipped - 4 lines]
> >>>
> >>>> [InvalidOperationException: Failed to handle request.]

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
> >>> (Ty pe
> >>>
> >>>> type, HttpContext context, HttpRequest request, HttpResponse
> >>>> response) +154

System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(Htt
> >>> pCo nt
> >>>
[quoted text clipped - 5 lines]
> >>>> requestType, String path, String pathTranslated, Boolean
> >>>> useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecut
> >>> ion St
> >>>
[quoted text clipped - 4 lines]
> >>>
> >>>> completedSynchronously) +173
Andrew Dimech - 30 Dec 2004 07:24 GMT
That's what i just did:

- Uninstalled the .NET Framework
- Rebooted PC
- Installed .NET Framework
- and it worked!

Thanks for your support...much appreciated.

Andrew

>I admit that I am taking stabs now. Did you reinstall the framework,
> although from the stack trace I am still thinking that the framework
[quoted text clipped - 259 lines]
>> >>>
>> >>>> completedSynchronously) +173
Christoph Schittko [MVP] - 31 Dec 2004 00:30 GMT
Yoo hooo!!

Great way to end the year ;)

Christoph

> -----Original Message-----
> From: Andrew Dimech [mailto:andrew_dimech@yahoo.co.uk]
[quoted text clipped - 126 lines]
> >> >>>> System.Xml.Schema.XmlSchemaParticle.set_MinOccurs(Decimal value)
> > +0

System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessor(XmlS
> >> >>> che ma
> >> >>>
> >> >>>> GroupBase
> >> >>>> group, ElementAccessor accessor, Boolean repeats, Boolean
> >> >>>> valueTypeOptional,
> >> >>>> String ns) +805

System.Xml.Serialization.XmlSchemaExporter.ExportElementAccessors(Xml
> >> >>> Sch em
> >> >>>
> >> >>>> aGroupBase
> >> >>>> group, ElementAccessor[] accessors, Boolean repeats, Boolean
> >> >>>> valueTypeOptional, String ns) +100

System.Xml.Serialization.XmlSchemaExporter.ExportTypeMembers(XmlSchem
> >> >>> aCo mp
> >> >>>
> >> >>>> lexType
> >> >>>> type, MemberMapping[] members, String name, String ns, Boolean
> >> >>>> hasSimpleContent) +252

System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(Membe
> >> >>> rsM ap
> >> >>>
> >> >>>> ping
> >> >>>> mapping, String ns) +48

System.Xml.Serialization.XmlSchemaExporter.ExportElementMapping(XmlSc
> >> >>> hem aE
> >> >>>
> >> >>>> lement
> >> >>>> element, Mapping mapping, String ns, Boolean isAny) +222

System.Xml.Serialization.XmlSchemaExporter.ExportElement(ElementAcces
> >> >>> sor
> >> >>>
> >> >>>> accessor) +225

System.Xml.Serialization.XmlSchemaExporter.ExportMembersMapping(XmlMe
> >> >>> mbe rs
> >> >>>
> >> >>>> Mapping
> >> >>>> xmlMembersMapping) +68

System.Web.Services.Description.SoapProtocolReflector.CreateLiteralMe
> >> >>> ssa ge
> >> >>>
[quoted text clipped - 4 lines]
> >> >>>
> >> >>>> wrapped) +395

System.Web.Services.Description.SoapProtocolReflector.CreateMessage(B
> >> >>> ool ea
> >> >>>
[quoted text clipped - 3 lines]
> >> >>>
> >> >>>> MessageBinding messageBinding, XmlMembersMapping members) +78

System.Web.Services.Description.SoapProtocolReflector.ReflectMethod()

> >> >>>> +449

System.Web.Services.Description.ProtocolReflector.ReflectBinding(Refl
> >> >>> ect ed
> >> >>>
> >> >>>> Binding
> >> >>>> reflectedBinding) +1951
> >> >>>> System.Web.Services.Description.ProtocolReflector.Reflect() +506

System.Web.Services.Description.ServiceDescriptionReflector.ReflectIn
> >> >>> ter na
> >> >>>
> >> >>>> l(ProtocolReflector[]
> >> >>>> reflectors) +495

System.Web.Services.Description.ServiceDescriptionReflector.Reflect(T
> >> >>> ype
> >> >>>
> >> >>>> type, String url) +112

System.Web.Services.Protocols.DocumentationServerType..ctor(Type
> >> >>> type,
> >> >>>
> >> >>>> String uri) +158

System.Web.Services.Protocols.DocumentationServerProtocol.Initialize(
> >> >>> )
> >> >>>
> >> >>>> +269

System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
> >> >>> type,
> >> >>>
[quoted text clipped - 5 lines]
> >> >>>>
> >> >>>> [InvalidOperationException: Unable to handle request.]

System.Web.Services.Protocols.ServerProtocolFactory.Create(Type

> >> >>> type,
> >> >>>
[quoted text clipped - 3 lines]
> >> >>>
> >> >>>> abortProcessing) +205

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
> >> >>> (Ty pe
> >> >>>
[quoted text clipped - 4 lines]
> >> >>>
> >> >>>> [InvalidOperationException: Failed to handle request.]

System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler
> >> >>> (Ty pe
> >> >>>
> >> >>>> type, HttpContext context, HttpRequest request, HttpResponse
> >> >>>> response) +154

System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(Htt
> >> >>> pCo nt
> >> >>>
[quoted text clipped - 5 lines]
> >> >>>> requestType, String path, String pathTranslated, Boolean
> >> >>>> useAppConfig) +699

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecut
> >> >>> ion St
> >> >>>
[quoted text clipped - 4 lines]
> >> >>>
> >> >>>> completedSynchronously) +173

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.