Welcome Guest Search | Active Topics | Sign In | Register

Parser Error: The format of the file 'EO.Web' is invalid Options
osl
Posted: Monday, January 7, 2008 6:02:01 PM
Rank: Newbie
Groups: Member

Joined: 1/7/2008
Posts: 6
Hi,

I uninstalled EOWeb 2007.2 and reinstalled EOWeb 3.1 at both my pc and web server.
It works fine at my PC but not in web server. The menu were working fine at web server until EOWeb 2007.2 was installed.
Can it be some dll files of EOWeb 2007.2 not properly removed? I used Add/Remove program to uninstall it.

I understand that I should only copy the EOWeb.dll into the c:\inetpub\wwwroot\projectname\bin and eo_web.ashx in the c:\inetpub\wwwroot\projectname and not install EOWeb controls right?

Server o/s: Windows 2003 with IIS 6
my PC o/s: Windows XP with IIS 5


Please help!
Thank you.

This is the error I'm facing:-

Parser Error Message: The format of the file 'EO.Web' is invalid

Source Error:
Line 1: <%@ Control language="VB" AutoEventWireup="false" Codebehind="Header.ascx.vb" Inherits="EO.Web.Demo.Header" %>
Line 2: <%@ Register TagPrefix="eo" NameSpace="EO.Web" Assembly="EO.Web" %>
eo_support
Posted: Monday, January 7, 2008 6:08:22 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

That usually occurs when your web server is running ASP.NET 1.1 and you are running ASP.NET 2.0. You will need to either change the ASP.NET version on your server, or change the version of ASP.NET that your project is built with (and switch EO.Web.dll in the process).

Thanks
osl
Posted: Monday, January 7, 2008 6:21:18 PM
Rank: Newbie
Groups: Member

Joined: 1/7/2008
Posts: 6
Thanks for the prompt support.

The ASP.NET version of the project is set to 1.1 and it's developed using VS2003.

Can it be because I've also installed VS2005 at the web server?

eo_support
Posted: Monday, January 7, 2008 6:27:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
In that case it must because the EO.Web.dll you uploaded to the server is corrupted. Try to download it and compare it with the one that works on your local machine.
osl
Posted: Monday, January 7, 2008 6:34:16 PM
Rank: Newbie
Groups: Member

Joined: 1/7/2008
Posts: 6
Actually it's the same setup.exe I'm using for both machine.

Nevermind, I try to download a fresh one and see whether that helps!

Thank you.
eo_support
Posted: Monday, January 7, 2008 6:45:17 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
osl wrote:
Actually it's the same setup.exe I'm using for both machine.

Nevermind, I try to download a fresh one and see whether that helps!

Thank you.


Which setup you are running actually does not matter. What matters is the file in your app's bin folder. As soon as that is a valid DLL that .NET recognizes, you won't get that message. One of the situation when it is not recognized, as explained earlier, is if your server is running ASP 1.1 (which you have confirmed) and if you dump the EO.Web.dll for ASP.NET 2.0 into your server's bin directory, you will definitely get this message because .NET 1.1 won't recognizes a DLL built for .NET 2.0.

As such download the latest version and run the installer will not fix the error for you. EO.Web.dll you put in your web server's bin directory is wrong. You need to fix that.

To check whether an EO.Web.dll is for ASP.NET 1.1 or 2.0, check the version number. If you see the version is x.y.z.1, then it is for 1.1. If you see it is x.y.z.2, then it is for 2.0.
osl
Posted: Monday, January 7, 2008 6:56:36 PM
Rank: Newbie
Groups: Member

Joined: 1/7/2008
Posts: 6
Sorry....I mean setup.exe is for EOWEB not my project.

Yes! It correct the EOWEB.dll is descriped as 'EOWEB.dll 3.1.17.1 EO.Web for ASP.NET 1.1
eo_support
Posted: Monday, January 7, 2008 7:09:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Please post the detailed steps you went through in check this issue. Which file on which machine under which directory have you checked?

We are always talking about our setup.exe. Never your project.

Thanks
osl
Posted: Monday, January 7, 2008 7:46:54 PM
Rank: Newbie
Groups: Member

Joined: 1/7/2008
Posts: 6
I checked the version using Window Explorer (both server and local machine).

At c:\Inetpub\wwwroot\project1\bin\ . View menu, click 'Tiles' and that's where I can see EO.WEB.dll with the details ' 'EOWEB.dll 3.1.17.1 EO.Web for ASP.NET 1.1'.

At server, I also go to Computer Management, IIS then Web Site. Right-click at Project1 to get the properties, and at ASP.NET tag, check the ASP.NET version is 1.1.

Thank you.
osl
Posted: Monday, January 7, 2008 8:22:37 PM
Rank: Newbie
Groups: Member

Joined: 1/7/2008
Posts: 6
Just for your info, I also got the same error message when I browse your sample application. ie. EOWebDemo.Net11_VB in Default Web Site under Computer Management.
eo_support
Posted: Monday, January 7, 2008 8:34:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

I would try to re-copy EO.Web.dll to the server's c:\Inetpub\wwwroot\project1\bin\ folder. There are no other reason that would cause this error other than the DLL file is not correct. You can Google "Parser Error Message: The format of the file" and you will see numerous posts about this error, and they all come down to correcting the DLL file in question, and it has never been a problem of the product. There are only two scenarios: 1. The DLL is valid, but built for a higher .NET version; 2. The DLL is invalid (corrupted by third party softwares, file copying problems, etc). If neither is your case, then you may want to find someone else around you to help you with because they will be able to see the error better. This is definitely not a product issue (especially when it runs fine on your local machine).

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.