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

"Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

this error appear the below code....


Logger.Write(caughtException.Message + Environment.NewLine + "User Id: " +
HttpContext.Current.User.Identity.Name + Environment.NewLine + "Role Name: "
+ Environment.NewLine + "Type: " + caughtException.GetType().FullName + Environment.NewLine +
"Url: " + Convert.ToString(Request.UrlReferrer) + Environment.NewLine + caughtException.StackTrace);

pls solve this...
Posted
Comments
ZurdoDev 5-Nov-13 7:31am    
The error is "The system cannot find the file specified." Do you have a question?

Hi,

What version of Enterprise Library are you using.
Dis you have all the Libarary files properly added to the Reference and properly available in Bin Folder of your project.

The latest Enterprise Library information can be found at the Enterprise Library site.

Error: States the file is not available, please download this file and add as reference and make sure the proper version is added and also check the .DLL is available in Bin folder once you Build the application.
File Details:
Namespace: Microsoft.Practices.ServiceLocation

Assembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.0.0.0 (1.0.0.0)


Please check this site for details.[^]
 
Share this answer
 
Comments
sankmahesh 6-Nov-13 4:47am    
Thanks..

That works properly
[no name] 7-Nov-13 12:39pm    
If the solution I suggested worked for you, can you rate the solution & accept as Solution

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