I am using a Soap service and am getting the following error.
Server Error in '/' Application.
Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'MettleSystems.dashCommerce.Web.InquireService.Type[]' to 'MettleSystems.dashCommerce.Web.InquireService.Type'
error CS0029: Cannot implicitly convert type 'MettleSystems.dashCommerce.Web.InquireService.Type' to 'MettleSystems.dashCommerce.Web.InquireService.Type[]'
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'MettleSystems.dashCommerce.Web.InquireService.Type[]' to 'MettleSystems.dashCommerce.Web.InquireService.Type'
error CS0029: Cannot implicitly convert type 'MettleSystems.dashCommerce.Web.InquireService.Type' to 'MettleSystems.dashCommerce.Web.InquireService.Type[]'
[CommunicationException: There was an error in serializing body of message SearchRequest: 'Unable to generate a temporary class (result=1). error CS0030: Cannot convert type 'MettleSystems.dashCommerce.Web.InquireService.Type[]' to 'MettleSystems.dashCommerce.Web.InquireService.Type' error CS0029: Cannot implicitly convert type 'MettleSystems.dashCommerce.Web.InquireService.Type' to 'MettleSystems.dashCommerce.Web.InquireService.Type[]' '. Please see InnerException for more details.] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7596735 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275 MettleSystems.dashCommerce.Web.InquireService.CatalogServiceIntf.Search(SearchRequest request) +0 MettleSystems.dashCommerce.Web.InquireService.CatalogServiceIntfClient.MettleSystems.dashCommerce.Web.InquireService.CatalogServiceIntf.Search(SearchRequest request) in C:\Freelance\Dataline\Source\Web\Service References\InquireService\Reference.cs:8933 MettleSystems.dashCommerce.Web.InquireService.CatalogServiceIntfClient.Search(Search Search1) in C:\Freelance\Dataline\Source\Web\Service References\InquireService\Reference.cs:8939 MettleSystems.dashCommerce.Web.Inquire.GetSearchWithParams(Hashtable parameters, String searchterm) in C:\Freelance\Dataline\Source\Web\Inquire.cs:874 MettleSystems.dashCommerce.Web.search.LoadTrail() in C:\Freelance\Dataline\Source\Web\search.aspx.cs:389 MettleSystems.dashCommerce.Web.search.Page_Load(Object sender, EventArgs e) in C:\Freelance\Dataline\Source\Web\search.aspx.cs:155 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3601
This is generally a bug in .Net.
If you can publish the wsdl (and any referenced xsd) we might be able to help.
If you do not want to publish it online you can send it to my mail (not the one from this site, see the correct one in my blog
http://webservices20.blogspot.com/)
Trying to serialize the classes resulting from the XSDL at http://www.xcbl.org/xcbl35/xsd/schemas.shtml (Download "xCBL 3.5 Components (XSDL Schema version)") results in the same error. C# classes generated from XSD using "xsd /c XCBL35.xsd". Any fix to
this problem?
theonlylawis...
Member
36 Points
133 Posts
Unable to generate a temporary class (result=1). error CS0030:
Sep 13, 2009 04:25 AM|LINK
I am using a Soap service and am getting the following error.
Server Error in '/' Application.
Unable to generate a temporary class (result=1).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.error CS0030: Cannot convert type 'MettleSystems.dashCommerce.Web.InquireService.Type[]' to 'MettleSystems.dashCommerce.Web.InquireService.Type'
error CS0029: Cannot implicitly convert type 'MettleSystems.dashCommerce.Web.InquireService.Type' to 'MettleSystems.dashCommerce.Web.InquireService.Type[]'
Exception Details: System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type 'MettleSystems.dashCommerce.Web.InquireService.Type[]' to 'MettleSystems.dashCommerce.Web.InquireService.Type'
error CS0029: Cannot implicitly convert type 'MettleSystems.dashCommerce.Web.InquireService.Type' to 'MettleSystems.dashCommerce.Web.InquireService.Type[]'
Source Error:
Source File: C:\Freelance\Dataline\Source\Web\Service References\InquireService\Reference.cs Line: 8933
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3601
yaronn01
Contributor
2754 Points
414 Posts
Re: Unable to generate a temporary class (result=1). error CS0030:
Sep 13, 2009 09:06 AM|LINK
This is generally a bug in .Net.
If you can publish the wsdl (and any referenced xsd) we might be able to help.
If you do not want to publish it online you can send it to my mail (not the one from this site, see the correct one in my blog http://webservices20.blogspot.com/)
Web Services Performance, Interoperability And Testing Blog
BjoernM
Member
2 Points
1 Post
Re: Unable to generate a temporary class (result=1). error CS0030:
Nov 23, 2009 11:18 AM|LINK
Trying to serialize the classes resulting from the XSDL at http://www.xcbl.org/xcbl35/xsd/schemas.shtml (Download "xCBL 3.5 Components (XSDL Schema version)") results in the same error. C# classes generated from XSD using "xsd /c XCBL35.xsd". Any fix to this problem?
-Bjørn M
BoazH
Member
4 Points
2 Posts
Re: Unable to generate a temporary class (result=1). error CS0030:
Feb 15, 2010 12:46 PM|LINK
Hi,
is there any known solution for this one?
I'm facing the same problem.....
BoazH
Member
4 Points
2 Posts
Re: Unable to generate a temporary class (result=1). error CS0030:
Feb 16, 2010 07:48 AM|LINK
I can not believe that the solution for this one is to run over the wsdl mapping file and change all from [][] ---> [].
it solve my problem!!!
Ryandb2
Member
2 Points
1 Post
Re: Unable to generate a temporary class (result=1). error CS0030:
Jul 03, 2010 07:44 AM|LINK
Wow! You just saved my life. When I saw this solution I thought it was crazy but I just did it and it worked like a charm.
I had used xsd.exe to take an xml -> xsd -> cs
For some reason one of my objects was an array[][], changing it to [] solved the issue.
So weird.
Thanks a million!