Deploying ASP.NET web application

G

Guest

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
 
K

Ken Cox [Microsoft MVP]

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 said:
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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top