on 08-02-2012 2:19 PM
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
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.