c# - WSDL ReportExecution proxy file does not compile due to ambiguity errors -


i'm using reportexecution proxy class in program. when try compile it, 58 ambiguity errors in generated file. sample error output:

error   1   namespace '<global namespace>' contains definition 'logonusercompletedeventhandler'    error   2   namespace '<global namespace>' contains definition 'logoffcompletedeventhandler'   error   4   ambiguity between 'serverinfoheader.reportserverversionnumberfield' , 'serverinfoheader.reportserverversionnumberfield'    error   5   ambiguity between 'serverinfoheader.reportservereditionfield' , 'serverinfoheader.reportservereditionfield'    error   6   ambiguity between 'serverinfoheader.reportservereditionfield' , 'serverinfoheader.reportservereditionfield'    

should change automatically generated file fix that? or maybe error somewhere else?

thanks in advance.

edit: have dealt of ambiguity errors, because unnecessarily added web references instead of using proxy classes. now, however, still 2 errors:

error   1   namespace '<global namespace>' contains definition 'logonusercompletedeventhandler'    error   2   namespace '<global namespace>' contains definition 'logoffcompletedeventhandler'   

i received same '<global namespace>' error because had included proxy code generated wsdl.exe in visual studio project, had left actual source wsdl file in project's directory structure.

asp.net appears auto-compile wsdl file copy of proxy code site when it's loaded.

this doesn't give compile time error in vs, cause site fail error's 1 , 2 described in question.

removing wsdl file directory structure corrects problem.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -