C
Charles Lee
Hi.
I'm having problem running Webservice in the production environment. I had
no problem on my dev box but as soon as I moved into the production server,
I'm seeing following errors
System.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS1595: 'System.Security.AllowPartiallyTrustedCallersAttribute' is
defined in multiple places; using definition from
'C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll'
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.XmlReturn.GetInitializers(LogicalMethodInfo[]
methodInfos)
at
System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodI
nfo[] methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type,
LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
I try to reset permissions (aspnet account -> full access)on c:\winnt\temp,
C:\WINNT\Microsoft.NET\Framework\v1.0.3705 but nothing worked.
What am I doing wrong???
Thank you,
I'm having problem running Webservice in the production environment. I had
no problem on my dev box but as soon as I moved into the production server,
I'm seeing following errors
System.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS1595: 'System.Security.AllowPartiallyTrustedCallersAttribute' is
defined in multiple places; using definition from
'C:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll'
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.XmlReturn.GetInitializers(LogicalMethodInfo[]
methodInfos)
at
System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodI
nfo[] methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type,
LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
I try to reset permissions (aspnet account -> full access)on c:\winnt\temp,
C:\WINNT\Microsoft.NET\Framework\v1.0.3705 but nothing worked.
What am I doing wrong???
Thank you,