470,594 Members | 1,273 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Deploying ASP.NET web application

Hi

I am developing web application using .net with c#. My application is working fine in the testing server. But when i deploy it in the production server it is giving the following error. What could be the cause?

File or assembly name System.Data, 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 System.Data, or one of its dependencies, was not found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Data' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///D:/ChowizSchWeb
LOG: Initial PrivatePath = bin
Calling assembly : Assessment, Version=1.0.1460.23380, Culture=neutral, PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet .config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\ machine.config.
LOG: Post-policy reference: System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/c49df1a8/1c93a765/System.Data.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/c49df1a8/1c93a765/System.Data/System.Data.DLL.
LOG: Attempting download of new URL file:///D:/ChowizSchWeb/bin/System.Data.DLL.
LOG: Attempting download of new URL file:///D:/ChowizSchWeb/bin/System.Data/System.Data.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/c49df1a8/1c93a765/System.Data.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/root/c49df1a8/1c93a765/System.Data/System.Data.EXE.
LOG: Attempting download of new URL file:///D:/ChowizSchWeb/bin/System.Data.EXE.
LOG: Attempting download of new URL file:///D:/ChowizSchWeb/bin/System.Data/System.Data.EXE.

Stack Trace:
[FileNotFoundException: File or assembly name System.Data, or one of its dependencies, was not found.]
Assessment.AssessmentPaper01.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724


Nov 18 '05 #1
3 1151
Hi Shalini,

It looks like your application is compiled with .Net 1.1 but only .Net 1.0
is installed. (Or maybe it is the other way around.)

If you browse to:

C:\WINDOWS\assembly

do you see

System.Data.dll 1.0.5000.0 ?

"shalini" <an*******@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.com...
Hi

I am developing web application using .net with c#. My application is
working fine in the testing server. But when i deploy it in the production
server it is giving the following error. What could be the cause?

File or assembly name System.Data, 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
System.Data, or one of its dependencies, was not found.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'System.Data' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = System.Data, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///D:/ChowizSchWeb
LOG: Initial PrivatePath = bin
Calling assembly : Assessment, Version=1.0.1460.23380, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet .config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\ machine.config.
LOG: Post-policy reference: System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/c49df1a8/1c93a765/System.Data.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/c49df1a8/1c93a765/System.Data/System.Data.DLL.
LOG: Attempting download of new URL
file:///D:/ChowizSchWeb/bin/System.Data.DLL.
LOG: Attempting download of new URL
file:///D:/ChowizSchWeb/bin/System.Data/System.Data.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/c49df1a8/1c93a765/System.Data.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/c49df1a8/1c93a765/System.Data/System.Data.EXE.
LOG: Attempting download of new URL
file:///D:/ChowizSchWeb/bin/System.Data.EXE.
LOG: Attempting download of new URL
file:///D:/ChowizSchWeb/bin/System.Data/System.Data.EXE.

Stack Trace:
[FileNotFoundException: File or assembly name System.Data, or one of its
dependencies, was not found.]
Assessment.AssessmentPaper01.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724


Nov 18 '05 #2
Hi Mr.Ken Co

Thanks for helping me to find out the problem. Yes i see System.Data.dll 1.0.5000.0 in C:\WINDOWS\assembly an
also i want to know if i install version 1.1 will all the other web applications running under version 1.0 will get affected

Thank
shalin
Nov 18 '05 #3
Hi Shalini,

It seems like the versions are different and need to be coordinated between
your workstation and the server.

You should try running this free tool to make all of the Web sites run under
the same version of the .Net Framework as you are using to compile the DLLs.

http://www.denisbauer.com/NETTools/A...nSwitcher.aspx
"shalini" <an*******@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
Hi Mr.Ken Cox

Thanks for helping me to find out the problem. Yes i see System.Data.dll
1.0.5000.0 in C:\WINDOWS\assembly and
also i want to know if i install version 1.1 will all the other web
applications running under version 1.0 will get affected?

Thanks
shalini


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Gerben van Loon | last post: by
3 posts views Thread by Rachel | last post: by
reply views Thread by Dave | last post: by
8 posts views Thread by =?Utf-8?B?V2hpc2tleVJvbWVv?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.