By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,462 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,462 IT Pros & Developers. It's quick & easy.

File or assembly name SCS.SR.SqlDAL, or one of its dependencies, was not found.

P: n/a
Hi All

I am not able to read the class name I want read the particular class name

string path =
System.Configuration.ConfigurationSettings.AppSett ings["WebDAL"];
string className = path + ".User";
return (SCS.SR.IDAL.IUser)
Assembly.Load(path).CreateInstance(className); ( This line iam getting
Error)
Iam getting this Error

File or assembly name SCS.SR.SqlDAL, or one of its dependencies, was not
found.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: File or assembly name
SCS.SR.SqlDAL, or one of its dependencies, was not found.

Source Error:
string path =
System.Configuration.ConfigurationSettings.AppSett ings["WebDAL"];
string className = path + ".User";
return (SCS.SR.IDAL.IUser)
Assembly.Load(path).CreateInstance(className);
Source File: e:\srwosyst\sr\dalfactory\user.cs Line: 16

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'SCS.SR.SqlDAL' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = SCS.SR.SqlDAL
(Partial)
LOG: Appbase = file:///E:/SRWOSYST/SR/SRWeb
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: SCS.SR.SqlDAL
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/srweb/65792517/cccc22f4/SCS.SR.SqlDAL.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/srweb/65792517/cccc22f4/SCS.SR.SqlDAL/SCS.SR.SqlDAL.DLL.
LOG: Attempting download of new URL
file:///E:/SRWOSYST/SR/SRWeb/bin/SCS.SR.SqlDAL.DLL.
LOG: Attempting download of new URL
file:///E:/SRWOSYST/SR/SRWeb/bin/SCS.SR.SqlDAL/SCS.SR.SqlDAL.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/srweb/65792517/cccc22f4/SCS.SR.SqlDAL.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/srweb/65792517/cccc22f4/SCS.SR.SqlDAL/SCS.SR.SqlDAL.EXE.
LOG: Attempting download of new URL
file:///E:/SRWOSYST/SR/SRWeb/bin/SCS.SR.SqlDAL.EXE.
LOG: Attempting download of new URL
file:///E:/SRWOSYST/SR/SRWeb/bin/SCS.SR.SqlDAL/SCS.SR.SqlDAL.EXE.

Stack Trace:
[FileNotFoundException: File or assembly name SCS.SR.SqlDAL, or one of its
dependencies, was not found.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) +0
System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) +307
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence
assemblySecurity, StackCrawlMark& stackMark) +68
System.Reflection.Assembly.Load(String assemblyString) +19
SCS.SR.DALFactory.User.Create() in e:\srwosyst\sr\dalfactory\user.cs:16
SCS.SR.BLL.User.LoginUser(String userId, String password) in
e:\srwosyst\sr\bll\user.cs:15
SCS.SR.SRWeb.ProcessFlow.UserControl.LoginUser(Str ing userId, String
password) in e:\srwosyst\sr\srweb\processflow\usercontrol.cs:19
SCS.SR.SRWeb._Default.Button1_Click(Object sender, EventArgs e) in
e:\srwosyst\sr\srweb\default.aspx.cs:57
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1281

Regards
Karunakara Rao


Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.