Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

CGI problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
alabrada@gmail.com - 08 Feb 2007 21:09 GMT
Hi, i'm doing a console application, is a CGI program, every thing is
OK, but, when I add a Web Reference to a XML Web Service and try to
use a function from the Web Services the answer is always

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String
ns, CompilerParameters parameters, Evidence evidence)
  at
System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable
assemblies)
  at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, String location,
Evidence evidence)
  at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
mappings, Type type)
  at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
  at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
  at test.EncrypServer.Service..ctor()
  at test.Program.Main(String[] args)

Please, help me.
David Browne - 08 Feb 2007 21:37 GMT
> Hi, i'm doing a console application, is a CGI program, every thing is
> OK, but, when I add a Web Reference to a XML Web Service and try to
[quoted text clipped - 16 lines]
>   at test.EncrypServer.Service..ctor()
>   at test.Program.Main(String[] args)

Wow, didn't know anyone did CGI apps anymore.  Cool.

Anyway the XmlSerializer generates an assembly on-the-fly, and in certain
security contexts this doesn't work quite right.  My guess is that you will
need to use SGen.exe to create the serialization assemblies beforehand.

XML Serializer Generator Tool (Sgen.exe)
http://msdn2.microsoft.com/en-us/library/bk3w6240(VS.80).aspx

David

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.