First Post of December & New Category
Since I haven’t had time to setup a blog related to my .NET findings, I will utilize this site in the meantime to post this stuff. In any case, the past two days has been spent trying to figure out the following problem:
Server Error in ‘/cfs’ Application.
Only one WebServiceBinding attribute may be specified on type ‘WebService’. Parameter name: 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.ArgumentException: Only one WebServiceBinding attribute may be specified on type ‘(information omitted)’. Parameter name: type
Source Error:
Line 36: Public Sub New()
Line 37: MyBase.New
Line 38: Me.Url = “(information omitted)”
Line 39: End Sub
Basically what happens when referencing a web service in .NET, it generates a proxy class on the fly to expose the wsdl as a useable class preventing developers from deciphering xml. This is all fine and dandy HOWEVER some may find issues when trying to utilize impersonation with the ASP.NET worker process as a different account (a.k.a. “<identity impersonate=”true” />). The user account may not have the proper ACLs in place to actually read and write to the generated proxy class and should follow the guidelines in this article here. Most likely, you need to give the user full rights to the “%windowsroot%\temp” directory.
Again, in most cases, the solution above should resolve most issues. HOWEVER (a 2nd time), if you are utilizing an assembly with a web service that has a strong name assembly, you will most likely run into some errors. Specifically, if you specify an snk in the assembly info file and you have multiple copies of that assembly running around, you may run into a problem where it complains of the following:
System.IO.FileNotFoundException: File or assembly name wavxczxa.dll, or one of its dependencies, was not found. File name: “wavxczxa.dll”
In this case, be sure to remove the line where you reference the snk in the assemblyinfo file.
Sheesh, I’m sure a nerd.
Permalink Comments off