473,804 Members | 3,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Could not load type error for any webservice on ASP.NET 2.0 beta 2

I've built a few webservices locally that work just fine. Deployed
them to a server and I get the following exception. This exception
happens on even the most basic webmethod call. Hitting the webservice
without calling a webmethod brings up the WSDL and such as I would
expect, only when I make an actual call does this happen. Any ideas?

System.TypeLoad Exception: Could not load type
'System.Runtime .CompilerServic es.RuntimeCompa tibilityAttribu te' from
assembly 'mscorlib, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9'.
at System.ModuleHa ndle.ResolveTyp e(Int32 typeToken,
RuntimeTypeHand le* typeInstArgs, Int32 typeInstCount,
RuntimeTypeHand le* methodInstArgs, Int32 methodInstCount )
at System.ModuleHa ndle.ResolveTyp eHandle(Int32 typeToken,
RuntimeTypeHand le[] typeInstantiati onContext, RuntimeTypeHand le[]
methodInstantia tionContext)
at System.Reflecti on.Module.Resol veType(Int32 metadataToken, Type[]
genericTypeArgu ments, Type[] genericMethodAr guments)
at
System.Reflecti on.CustomAttrib ute.FilterCusto mAttributeRecor d(CustomAttribu teRecord
caRecord, MetadataImport scope, Assembly& lastAptcaOkAsse mbly, Module
decoratedModule , MetadataToken decoratedToken, RuntimeType
attributeFilter Type, Boolean mustBeInheritab le, Object[] attributes,
IList derivedAttribut es, RuntimeType& attributeType,
RuntimeMethodHa ndle& ctor, Boolean& ctorHasParamete rs, Boolean&
isVarArg)
at System.Reflecti on.CustomAttrib ute.GetCustomAt tributes(Module
decoratedModule , Int32 decoratedMetada taToken, Int32 pcaCount,
RuntimeType attributeFilter Type, Boolean mustBeInheritab le, IList
derivedAttribut es)
at System.Reflecti on.CustomAttrib ute.GetCustomAt tributes(Assemb ly
assembly, RuntimeType caType)
at System.Reflecti on.Assembly.Get CustomAttribute s(Type
attributeType, Boolean inherit)
at
System.Xml.Seri alization.TempA ssembly.Assembl yAllowsPartialT rust(Assembly
a)
at
System.Xml.Seri alization.TempA ssembly.Assembl yAllowsPartialT rust(Assembly
a)
at
System.Xml.Seri alization.TempA ssembly.Generat eAssembly(XmlMa pping[]
xmlMappings, Type[] types, String defaultNamespac e, Evidence evidence,
CompilerParamet ers parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Seri alization.TempA ssembly..ctor(X mlMapping[]
xmlMappings, Type[] types, String defaultNamespac e, String location,
Evidence evidence)
at System.Xml.Seri alization.XmlSe rializer.FromMa ppings(XmlMappi ng[]
mappings, Evidence evidence)
at
System.Web.Serv ices.Protocols. XmlReturn.GetIn itializers(Logi calMethodInfo[]
methodInfos)
at
System.Web.Serv ices.Protocols. XmlReturnWriter .GetInitializer s(LogicalMethod Info[]
methodInfos)
at System.Web.Serv ices.Protocols. MimeFormatter.G etInitializers( Type
type, LogicalMethodIn fo[] methodInfos)
at System.Web.Serv ices.Protocols. HttpServerType. .ctor(Type type)
at System.Web.Serv ices.Protocols. HttpServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing )

Nov 19 '05 #1
1 1836
I am assuming you developed the web services in 2.0. Make sure your
target server is running 2.0 as well.

John

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
397
by: clintonG | last post by:
The error is documented at MSDN but building the project as the MSDN document instructs does not resolve the issue for me. I hope others may comment about other circumstances. The actual message is: Could not load type 'theClassName.Global' Line1: <%@ Application Inherits="FeedBuilder.Global" %> Source: /appDirectory/global.asax I may not have a complete global.asax as the global.asax contains that one
8
7300
by: Rene | last post by:
Hi, I'm spend many hour to fix this problem, read many articles about it but no article gave a solution. To isolate the problem I've created in IIS6 (WServer2003) a virtual directory test to the local C:\test, in this directory I have index.htm and test.asp (just a simple Response.Write "TEST"). Opening the server/test/index.htm show the page, server/test/test.asp gives
1
1836
by: smart | last post by:
While getting the dataset using webservice, the following error occur: An unhandled exception of type 'System.PlatformNotSupportedException' occurred in mscorlib.dlls Additional information: PlatformNotSupportedException Any solution?
0
224
by: Chertzy B | last post by:
Datasets in Whidbey (Beta 2) contain a namespace property suggesting that it is possible to web enable them. However, it seems very difficult to do this. Take the following scenario 3 projects in a solution WidgetWindows (a windows application) WidgetLibrary (a project containing datasets)
0
1591
by: Darrell | last post by:
I am using VS 2005 Beta 2 on XP Pro. I have created a WebService with an "empty" Crystal Report. The only thing in this report is a text element saying "Hello World!". If I run the WebService via debugging on the APS.NET Development Server, all is fine. When I try this via IIS 5.1, I get the exception "Load Report Failed". I believe that I have set folder permission rather open to see if this gets rid of the problem but still no go. Is...
2
2598
by: Andy Hunt | last post by:
Hi, I am having a problem with SQLXML Bulk Load inside of a web service ( also inside of a basic aspx page). I have a WebMethod in a web service that makes a call to bulk load. This works perfectly on my local test machine (it has VS 2005, SQL Server 2005 Ent, SQLXML 4.0 Libs and standard XP SP2 IIS) also for reference the same code works perfectly on a basic one page aspx file (with code behind). However when this web service or...
0
4491
by: dave.dolan | last post by:
I haven't changed the code I'm running for a long time, and it's been working. Now, starting yesterday, I keep getting an error randomly when I load my site. It doesn't happen every time, but always with the same data I'm loading. It crashes saying "Could not load file or assembly 'App_Web_7q2a0mha, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified....
9
2495
by: Roland Hall | last post by:
In order to install BackupExec v11, I needed to remove .NET Framework 2.0 BETA and install .NET Framework 2.0. When the BETA version was removed, all apps reverted to 1.1. I have since run aspnet_regiis.exe -i to update the app but since I get the error listed on the subject line. This is what is returned: Line 46: <roleManager enabled="true"> Line 47: <providers> Line 48: <add name="AspNetAccessProvider2"
3
4430
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On the other machine I get the error upon instantiating the service client. I add the reference by choosing Add Service Reference from the project menu, and pointing to the remote wsdl file. I can't seem to find what the difference between the two...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.