c# - My asmx webservice works locally but not when deployed on remote IIS 7 -


I have developed an asmx webservice with Visual Studio and I have deployed on IIS 7, by copying all files There are 3.5 frameworks.

The file or assembly could not be loaded while doing this

1.0.61025.0, culture = neutral, public key token = 31bf3856ad364e35 'or none of these dependencies can not specify the system file.

I do not use [System.Web.Script.Services.ScriptService], so I do not understand why this system tries to load. Web. Extension.

That's why I'm changing from .NET 2 to 3.5 in Visual Studio, but another error is found:

From the file or assembly 'WebServiceTest' or its dependency Could not load one.

Note: I am not using any other assembly / lib I'm just learning webservice so it's very easy: I have a webservice test.asmx with a method Create a classname in the same namespace WebServiceTest that uses Test.cs. It works locally.

In the end, I started again from scratch, now it works, I think that I am unmatched by changing the namespace, class etc.

Perhaps you are using a 3rd party assembly which is System.Web.Extensions is dependent on. Ensure that this assembly is not clearly or fully referenced in your project, it is normally the version 3.5.0.0 of this assembly. The error message seems to be that your project is using version 1.0.61025.0, which is an older version. To use this older version, try to see each referenced assembly you may need to employ it on the target server.


Comments