Error Creating Control

Mar 6, 2008 at 5:45 AM
Edited Mar 6, 2008 at 5:46 AM
I am using Visual Studio 2008 and when I try to build the project I get the following error

Error 1 Unable to create type 'fjxau:AmazonUploader'. Could not load file or assembly 'com.flajaxian.FileUploader, Version=1.0.2937.39676, Culture=neutral, PublicKeyToken=98ef6b70d9d62bae' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) C:\Code\Testing\S3FileUpload.aspx 15
Error 2 com.flajaxian.FileUploaderAdapterCollection must have items of type 'com.flajaxian.FileUploaderAdapter'. 'AccessControlList' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. C:\Code\Testing\S3FileUpload.aspx 19
Error 3 com.flajaxian.FileUploaderAdapterCollection must have items of type 'com.flajaxian.FileUploaderAdapter'. 'fjxau:AccessControl' is of type 'com.flajaxian.AWS.AccessControl'. C:\Code\Testing\S3FileUpload.aspx 20


Below is the aspx page code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="S3FileUpload.aspx.cs" Inherits="Testing_S3FileUpload" %>
<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>
<%@ Register TagPrefix="fjxau" Namespace="com.flajaxian.AWS" Assembly="com.flajaxian.AmazonUploader" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>

<body>
<form id="form1" runat="server">
<div>
<fjx:FileUploader ID="FileUploader1" runat="server" >
<Adapters>
<fjxau:AmazonUploader
AccessKey="WebConfig:AmazonAccessKey"
SecretKey="WebConfig:AmazonSecretKey"
BucketName="media.flajaxian.com">
<AccessControlList>
<fjxau:AccessControl URI="http://acs.amazonaws.com/groups/global/AllUsers" Permission="READ" />
<fjxau:AccessControl EmailAddress="john@flajaxian.com" Permission="FULL_CONTROL" />
</AccessControlList>
</fjxau:AmazonUploader>
</Adapters>
</fjx:FileUploader>
</div>
</form>
</body>
</html>
Mar 16, 2008 at 10:32 AM
Edited Mar 16, 2008 at 10:38 AM
I'm having the same problem with Visual Studio 2005.
If I compile the source code and use the dlls that are generated this error doesn't appear but then I can't get the controls to actually work.
Coordinator
Mar 26, 2008 at 5:01 PM
FlajaxianS3Upload is adapter for FlajaxianFileUpload so you need to have both. Please go to http://www.codeplex.com/FlajaxianFileUpload for more information about Flajaxian FileUpload. They both are open source and free.
Mar 30, 2008 at 8:28 PM
Thanks...of course I have FlajaxianFileUpload but for some reason it's expecting a different version of the dll. Any suggestions?
Coordinator
Apr 2, 2008 at 5:38 AM
One way would be to get the two projects together and to compile them but I changed the assemply on the Release tab to fit the latest version of the FileUploader.