cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade from WinXP/32 bit to Win7/64 bit Causing Errors in VS Project

Former Member
0 Kudos

I have just finished upgrading my Machine from Windows XP/32-bit to Windows 7/64-bit.

After completiung the upgrade, I opened my Visual Studio (ASP.Net) project and tried running it.  I immediately get as error "Could not load file or assembly log4net version 1.2.10.0...".  Clicking on the error I'm lead to the web.config file and the line where the assembly for log4net is addressed.

I'm fairly sure the problem is caused by the fact that I had originally created the project on a 32-bit machine, but I don't know how to fix it.

Any ideas?

TIA

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

I entered the string ' log4net crystal net' into the search box in the top right corner of this web page came up with the following:

1548993 - Server Error in '/' Application when running .NET Web Application using Crystal Reports fo...

1550854 - "Could not load file or assembly 'log4net' or one of its dependencies" Error when building...

I believe the former will be your ticket. But the search does come up with other resources that may be worth looking at also.

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Resolution steps from the former (1548993):

The File System web applications can't be used in x64 or Any CPU mode on a 64 bit operating system.

Ensure your Platform target is set to x86 on your development server if you are going to use File System web sites.

To change your Platform target:

1. Open the Solution Explorer in Visual Studio.

2. Right click your Project and select Properties.

3. Click the Build tab.

4. Set the Platform target to x86.

I do not have an option for "Platform target".  Nor does my properties look like the image displayed on the page.

I am running VS.Net 2010 (Pro).

Resolution steps from the latter (1550854)

1. Copy the 32 bit version of log4net.dll to the directory below. A copy of log4net 32 bit is attached to this article.

  1. C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet

2. Clean your solution and delete any copy of log4net.dll from the bin directory in your project.

3. Build your solution.

I do not have a folder "win32_x86\dotnet" where described in step 1.1.  There is a "win64_x64", but no "dotnet" folder beneath that.

Nor do I have any "bin" directory associated with my project.

former_member183750
Active Contributor
0 Kudos

And you're on VS2010 Pro?

- Ludek

Former Member
0 Kudos

Why yes, yes I am. 

former_member183750
Active Contributor
0 Kudos

Not sure why you're not seeing the same screens then. C# or VB project? I believe the KBs are based on screens for a VB project. C# often has different screens, or the screens are in a different place(?).

- Ludek

Former Member
0 Kudos

It's an ASP.Net project (VB is the language). 

Here is my Property Pages "Build" tab:

former_member183750
Active Contributor
0 Kudos

Ahh- after a bit of head scratching, I realized you are working with a "Web Site" as opposed to "Web Project":

See the following from MS on how to:

http://msdn.microsoft.com/en-us/library/ff407621.aspx

- Ludek

Answers (0)