SoapException
Anybody have a clue what this is telling me? I downloaded the TaskVision source and compiled after getting rid of the Excel calls since I only have Excel2000 and I get this error after logging in as jdoe -> "An error has occurred on your remote server. Please contact your network adminstrator."
System.Web.Services.Protocols.SoapException: Server was unable to process request. > System.PlatformNotSupportedException: 'ResourcePool' is not supported on the current platform.
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter, Object[] parameterValues)
at Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter)
at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, String spName, Object[] parameterValues)
at TaskVisionWS.AuthService.GetAuthorizationTicket(String userName, String password)
End of inner exception stack trace
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at TaskVision.AuthWS.AuthService.GetAuthorizationTicket(String userName, String password) in D:\Miitek\Source\TaskVision Source\TaskVision\Web References\AuthWS\Reference.vb:line 47
at TaskVision.DataLayer.GetAuthorizationTicket() in D:\Miitek\Source\TaskVision Source\TaskVision\Components\DataLayer.vb:line 84
I have a similar problem. Note the file "zy19rqkq.dll" differs in each each time I invoke the GetAuthorizationTicket WebMethod. Anybody else seen this and have any tips/ideas?
Error text is:
An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll
Additional information: System.Web.Services.Protocols.SoapException: Server was unable to process request. > System.IO.FileNotFoundException: File or assembly name zy19rqkq.dll, or one of its dependencies, was not found.
File name: "zy19rqkq.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings)
at System.Web.Services.Protocols.SoapServerType..ctor(Type type)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Fusion log follows:
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\TEMP\zy19rqkq.dll
LOG: Appbase = file:///C:/Program Files/TaskVision Source/TaskVisionWS
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/TEMP/zy19rqkq.dll.
End of inner exception stack trace
I don't know what is causing the exception, but that filename is random, and generated by the web service proxy, I believe.
I ran aspnet_regiis.exe -i and that fixed the problem, even though .NET was installed after IIS.
I also had problems on another PC with TaskVision where the service worked fine if I checked it out manually with IE but failed login into TaskVision with a "remote server is unreachable or the request has timed out" message. Again I ran aspnet_regiis.exe -i and that fixed the problem.
Seems it's worth running aspnet_regiis.exe -i if you have this type of spurious error.