File System.Web.Services was not found - c#

I'm running an service on an server which calls an assembly to retrieve data from an webservice. The called assembly tries to establish an connection to an webservice. When trying to connect to the Web Service specified in the configuration file I always get the following message in the log File of the assembly:
System.IO.FileNotFoundException: fatal Error: File file:\C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a was not found !
I looked inside the folder the error message stated and found the System.Web.Services.dll.
Unit testing the assembly on my local machine runs without any errors.
I already used google to find an solution for this problem but couldn't find anything. Any suggestions or solutions? Im really stuck in this problem at the moment.

Related

could not load file or assembly 'crystaldecisions.reportappserver.datasetconversion' or one of its dependencies

I'm working with an asp.net c# project. My project is running fine from localhost. but when I try to publish the project to IIS, I'm getting this error:
"could not load file or assembly
'crystaldecisions.reportappserver.datasetconversion' or one of its
dependencies. an attempt was made to load a program with an incorrect
format".
I have also added this crystaldecision reference after getting this error, but I'm still getting the same error.

Facing error on deployment server, i have just FTP access but no access of source code?

After deploy application on server i am facing this error, application is developed in asp.net mvc.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: E:\web\brewgrco\web.config Line: 30
I have check version of system.web.helpers is same as mentioned in web.config files both in views folder also in root of web.config as well, I have just access FTP but no access to source code, please help me to fix it.

Unable to connect mainframe server from x3270if code

Trying to connect mainframe using console app provided here, getting below error in the trace.
SSL DLL init failed: Cannot load ssleay32.dll
Tried copying ssleay32.dll in bin folder but still getting the issue.
Please help me with this.
I am using a windows machine
Assuming your operating environment is Linux. Make sure the LD_LIBRARY_PATH includes the location of the dll you are loading.
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:x3270ifInstallDir/bin
Replacing x3270ifInstallDir/bin with where your dll is located

File not found exception for my MyWebservice.XmlSerializers when using PrincipalSearcher.FindAll()

I have a web service added by service reference (called "MyServiceReferences") in my ASP .NET MVC 4 solution. Also I have an Active Directory service in another project in the same solution. I am trying to display user name (First name and Last name) in my web page using active directory users information. The problem is when I call
PrincipalSearcher.FindAll(), it works sometimes. The exception I am getting is
Could not load file or assembly 'MyServiceReferences.XmlSerializers'
or one of its dependencies. The system cannot find the file specified.
In my project build setting I have tried to set Generate serialization assembly "On". But it did not solve my problem.
Following command from visual studio command line solves the problem
Sgen.exe (locationOfTheDllFile)\MyServiceReferences.dll
But there is another following error occurs rarely (when attempting to load the page very very often)
[System.AppDomainUnloadedException] = {"Attempted to access an unloaded appdomain. (Exception from HRESULT: 0x80131014)"}

Crazy .net / Sharepoint error involving random temp files not found

Logged into a customer environment today to check logs and just generally do an inspection, only to notice some tasks had failed in one application.
Application is written in c# .net v4 running inside of IIS and exports to Sharepoint 2007.
I can't be 100% sure if .net or SharePoint is the culprit. These are the errors I got:
Task Failed: Server was unable to
process request. ---> Could not find
file 'C:\Windows\TEMP\qbckfur1.dll'.
Export 26.05.2011 15:00:21 Failure
Task Failed: Server was unable to
process request. ---> Could not find
file 'C:\Windows\TEMP\2shjg2xb.dll'.
Export 26.05.2011 15:30:13 Failure
Task Failed: Server was unable to
process request. ---> Could not find
file 'C:\Windows\TEMP\b7utp199.dll'.
Export 26.05.2011 16:00:15 Failure
Task Failed: Server was unable to
process request. ---> Could not find
file 'C:\Windows\TEMP\ozr2umkm.dll'.
Does this look familiar to anyone?
This is a problem with XmlSerialization (beleive it or not). I ran into this with a custom ASP.NET MVC app. Apparently, when you call Serialize or Deserialize on types marked as "Serializable", .NET will generate an assembly on-the-fly to support the serialization and it attempts to write that assembly into 'c:\windows\temp'.
Even if Everyone has full control access to that directory I have still seen this occur when running an app from within an IIS App Pool. Especially in applications that has a lot of serialization activity.
If this sounds like your problem, the solution is to "pre-compile" the Serialization assembly and include it in your application with sgen, part of the Windows SDK.
This post highlights a similar issue: Serialization issue on MSDN Social
Here is the MSDN article on the tool: sgen reference
Final Note: There is a separate version of the Tool for .NET 4.0 so make sure you are using the correct version when generating your assembly.

Categories