WebService in Production

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,
 
D

Dino Chiesa [Microsoft]

It's a permissions problem on a directory, as you surmised.

http://support.microsoft.com/default.aspx?scid=317012

But you need the "ASP.NET Temporary Files" directory, which should be in

C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files


Charles Lee said:
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,
 
C

Charles Lee

Thank you for your reply but I did change permissions in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET to full
control.

I even tried to make aspnet account as an administrator and still did not
work.

Please help.

Thanks,



Dino Chiesa said:
It's a permissions problem on a directory, as you surmised.

http://support.microsoft.com/default.aspx?scid=317012

But you need the "ASP.NET Temporary Files" directory, which should be in

C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET Files


Charles Lee said:
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[]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,
 
C

Charles Lee

Thank you for your reply but I did change permissions in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET

I even tried to make aspnet account as an administrator and still did not
work.

Please help.

Thanks,



Charles Lee said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top