Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an asp.net project.When I build the solution,the dlls are compiling fine and I dont have any issues locally.When I copy the dll in the test server or production server,Its showing the message "
C#
Could not load file or assembly  or one of its dependencies. The system cannot find the file specified
".

This happening for all the projects.Previously it was working fine.Recently I got this error.

Please help me to resolve this issue as soon as possible.

Thanks

What I have tried:

I tries to change the application pool settings in IIS serevr locally .
Posted
Updated 3-Oct-16 5:27am
Comments
David_Wimbley 3-Oct-16 11:06am    
What DLL is it saying it is missing? That error message usually specifies. I highly doubt every last DLL is missing.
priya9826 3-Oct-16 11:47am    
Could not load file or assembly 'eWorld.UI' or one of its dependencies. The system cannot find the file specified.But I copied the eworld.ui dll also to the test server.
[no name] 3-Oct-16 11:14am    
"I tries to change the application pool settings in IIS serevr locally", I have no idea why you think that would fix anything. The error message is perfectly clear. You are missing a file or a file the you are depending on.
Karthik_Mahalingam 3-Oct-16 11:43am    
post a screenshot using https://snag.gy/
priya9826 3-Oct-16 11:48am    
Server Error in '/DCEOnlinePayment' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'eWorld.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 1: <%@ Page Title="Rural Generation Online Payment" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RuralGenOnlinePayment.aspx.cs" Inherits="RuralGenOnlinePayment" %>
Line 2:
Line 3: <%@ Register TagPrefix="ew" Namespace="eWorld.UI" Assembly="eWorld.UI" %>
Line 4: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Line 5:

1 solution

Since it is not in your bin folder it is probably something that is installed on your machine but not on the server. Regardless, the error will tell you which dll it is. Then all you have to do is copy it or install the software on the server. You can set Copy Local = true on the reference so that the dll gets copied to the bin folder.
 
Share this answer
 
Comments
priya9826 3-Oct-16 11:49am    
I did n't find the copy Local property in visual studio 2010.
ZurdoDev 3-Oct-16 12:01pm    
Expand References in Solution Explorer. Select the Reference and below in the Properties window is where you will find it.
priya9826 3-Oct-16 15:11pm    
I have opened the application as website not as project.I did n't find the copy Local property
ZurdoDev 3-Oct-16 15:29pm    
Regardless, you need to make sure all dlls are available on the server.
priya9826 3-Oct-16 15:36pm    
I am sure about the dlls in the server.
Locally itrs working fine.When I am copying the files to the test server.Its throwing this error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900