VS2008: Unrecognized tag prefix fjx

Jan 14, 2009 at 10:11 PM
Edited Jan 14, 2009 at 10:23 PM
I have followed the installation instructions found below, but still recieve the Unrecognized tag prefix fjx error. Also tried inserting the tag prefix in the web.config and using the 'Add Reference' option in VS. Each script below included in the .aspx page does not make any difference.

<%

@ Register TagPrefix="fjx" Src="~/bin/com.flajaxian.FileUploader.dll" %>

 

-- OR--

<%

@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>


http://www.flajaxian.com/flajaxian.com/FileUploader2.0Help.html

Coordinator
Jan 15, 2009 at 3:56 PM

This is all you need to do:

Top of the page:
<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>

Inside <form runat="server" tag
<fjx:FileUploader ID="Uploader" runat="server">
  <Adapters>
    <fjx:FileSaverAdapter FolderName="UploadFolder"></fjx:FileSaverAdapter>
    <fjx:ThumbGeneratorAdapter runat="server" FolderName="UploadFolder" MaximumHeight="150" MaximumWidth="150" />
  </Adapters>
</fjx:FileUploader>

Jan 15, 2009 at 5:52 PM

Okay, I’ve also placed the com.flajaxian.FileUploader.dll in its own folder like so:

Root/bin/com.flajaxian.FileUploader.dll

[Aspx code]

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>

<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 

 

      <form id="Form1" runat="server">

<fjx:FileUploader ID="Uploader" runat="server">

  <Adapters>

    <fjx:FileSaverAdapter FolderName="UploadFolder"></fjx:FileSaverAdapter>

    <fjx:ThumbGeneratorAdapter runat="server" FolderName="UploadFolder" MaximumHeight="150" MaximumWidth="150" />

  </Adapters>

  </form>

</fjx:FileUploader>

</asp:Content>

Note: ‘Adapters’ is not supported. Still receiving errors ‘fjx’ not recognized tag prefix…

From: flajaxian [mailto:notifications@codeplex.com]
Sent: Thursday, January 15, 2009 11:56 AM
To: pro@pointesoft.com
Subject: Re: VS2008: Unrecognized tag prefix fjx [FlajaxianFileUpload:44234]

From: flajaxian

This is all you need to do:

Top of the page:
<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>

Inside <form runat="server" tag
<fjx:FileUploader ID="Uploader" runat="server">
<Adapters>
<fjx:FileSaverAdapter FolderName="UploadFolder"></fjx:FileSaverAdapter>
<fjx:ThumbGeneratorAdapter runat="server" FolderName="UploadFolder" MaximumHeight="150" MaximumWidth="150" />
</Adapters>
</fjx:FileUploader>

Read the full discussion online.

To add a post to this discussion, reply to this email (FlajaxianFileUpload@discussions.codeplex.com)

To start a new discussion for this project, email FlajaxianFileUpload@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Coordinator
Jan 15, 2009 at 6:10 PM
If you are talking about the warning given by Visual Studio, don't worry it will have in influance on the work of the control. This is because we don't have yet implementation for the Visual Studio designer, we  can change that later but for now just ignore this.
Coordinator
Jan 15, 2009 at 6:27 PM
OK I have just decorated the Adapters property with [MergableProperty(false), PersistenceMode(PersistenceMode.InnerProperty), DefaultValue((string)null)] 

Please get the latest source or binaries

Coordinator
Jan 15, 2009 at 6:35 PM
And one thing I see in your example:

     <form id="Form1" runat="server">

<fjx:FileUploader ID="Uploader" runat="server">

...

  </form>

</fjx:FileUploader>


You should NEVER overlap nodes in XML

The right code is:

     <form id="Form1" runat="server">

<fjx:FileUploader ID="Uploader" runat="server">

...


</fjx:FileUploader>

  </form>

Jan 15, 2009 at 7:15 PM

Yes, I caught that and change it.

Now receiving the following error:

Server Error in '/kcb' Application.


Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

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.


Stack Trace:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]

   System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0

   System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) +98

   System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +11

   System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +127

   System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +228

   System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +28

   System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +20

   System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) +69

   System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +526

   System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +926


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

From: flajaxian [mailto:notifications@codeplex.com]
Sent: Thursday, January 15, 2009 2:35 PM
To: pro@pointesoft.com
Subject: Re: VS2008: Unrecognized tag prefix fjx [FlajaxianFileUpload:44234]

From: flajaxian

And one thing I see in your example:

<form id="Form1" runat="server">

<fjx:FileUploader ID="Uploader" runat="server">

...

</form>

</fjx:FileUploader>

You should NEVER overlap nodes in XML

The right code is:

<form id="Form1" runat="server">

<fjx:FileUploader ID="Uploader" runat="server">

...

</fjx:FileUploader>

</form>

Read the full discussion online.

To add a post to this discussion, reply to this email (FlajaxianFileUpload@discussions.codeplex.com)

To start a new discussion for this project, email FlajaxianFileUpload@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Jan 15, 2009 at 7:23 PM

Now receiving the following error:

 

URL Error: http://localhost:50888/kcb/upload.aspx

Source: mscorlib

Message: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Type: System.Security.SecurityException

Stack Trace: at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) at System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

Base Exception: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Web.UI.NamespaceTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean throwOnError) at System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) at System.Web.UI.MainTagNameToTypeMapper.GetControlType2(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) at System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) at System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) at System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) The action that failed was: InheritanceDemand The type of the first permission that failed was: System.Web.AspNetHostingPermission The first permission that failed was: The demand was for: The granted set of the failing assembly was: The assembly or AppDomain that failed was: com.flajaxian.FileUploader, Version=2.0.3400.0, Culture=neutral, PublicKeyToken=98ef6b70d9d62bae The Zone of the assembly that failed was: Intranet The Url of the assembly that failed was: file://Web2/e/kcb/bin/com.flajaxian.FileUploader.DLL

From: flajaxian [mailto:notifications@codeplex.com]
Sent: Thursday, January 15, 2009 2:28 PM
To: pro@pointesoft.com
Subject: Re: VS2008: Unrecognized tag prefix fjx [FlajaxianFileUpload:44234]

From: flajaxian

OK I have just decorated the Adapters property with [MergableProperty(false), PersistenceMode(PersistenceMode.InnerProperty), DefaultValue((string)null)]

Please get the latest source or binaries

Read the full discussion online.

To add a post to this discussion, reply to this email (FlajaxianFileUpload@discussions.codeplex.com)

To start a new discussion for this project, email FlajaxianFileUpload@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Coordinator
Jan 15, 2009 at 10:09 PM
Edited Jan 15, 2009 at 10:10 PM
It seems that you have very restictive hosting... I have decorated the control with request for AspNetHostingPermissionLevel.Minimal in the latest code. I hope that helps.
Jan 16, 2009 at 1:05 AM

I ran a test to see if I have any real security issues or not.

I performed a simple drag-n-drop of a CodePlex.com AJAX accordion control.

It works great and does all the work for me. I simply drag their controls from the VS2008 toolbox onto any ASPX page and everything is installed and registered.

I’ll try adding your control in the VS2008 toolbox then drag-n-drop it to see what happens.

Cheers..

[code]

 

<%@ Page Title="" Language="C#" Debug="true" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  

        

    <cc1:Accordion ID="Accordion1" runat="server">

        <panes>

<cc1:accordionpane ID="Accordionpane1" runat="server">

<header><h3 style="border-width:medium ; vertical-align:middle; padding:5px 5px 5px 10px; color:GrayText">Family Urgent Care Links</h3></header>

<content>

<p>

<a href="login.aspx"><span style="color:Blue">Login</span></a>

(Just another simple login page.)</p>

<p>

<a href="search.aspx"><span style="color:Red">Search</span></a>

(Just another simple search page.)</p>

<p>

<a href="default.aspx"><span style="color:Green">Upload</span></a>

(Just another simple default page.)</p>

</content>

</cc1:accordionpane>

<cc1:accordionpane ID="Accordionpane2" runat="server">

<header><h3 style="border-width:medium ; vertical-align:middle; padding:5px 5px 5px 10px; color: GrayText">Important Medical Links</h3></header>

<content>

<p>

More content here

</p>

</content>

</cc1:accordionpane>

<cc1:accordionpane ID="Accordionpane3" runat="server">

<header><h3 style="border-width:medium; border-color:Black; vertical-align:middle; padding:5px 5px 5px 10px; color: GrayText">Clinic Checkin Forms</h3></header>

<content>

<p>some content</p>

</content>

</cc1:accordionpane>

</panes>

    </cc1:Accordion>

   

</asp:Content>

From: flajaxian [mailto:notifications@codeplex.com]
Sent: Thursday, January 15, 2009 6:10 PM
To: pro@pointesoft.com
Subject: Re: VS2008: Unrecognized tag prefix fjx [FlajaxianFileUpload:44234]

From: flajaxian

It seems that you have very restictive hosting... I have decorated the control with request for AspNetHostingPermissionLevel.Minimal in the latest code. I hope that help.

Read the full discussion online.

To add a post to this discussion, reply to this email (FlajaxianFileUpload@discussions.codeplex.com)

To start a new discussion for this project, email FlajaxianFileUpload@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Jan 16, 2009 at 1:17 AM

Okay, I added the com.flajaxian.FileUploader.dll to the VS2008 Toolbox, performed a drag-n-drop and it added the following code to my aspx page:

<%@ Register Assembly="com.flajaxian.FileUploader" Namespace="com.flajaxian" TagPrefix="cc2" %>

  

    <cc2:fileuploader runat="server"></cc2:fileuploader>

It also added the com.flajaxian.FileUploader.dll to the /bin folder as well as another sub-file named com.flajaxian.FileUploader.dll.refresh

Now I receive the following two errors:

· Warning     1     Unrecognized tag prefix or device filter 'cc2'.

· Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.   

Cheers..

Coordinator
Jan 16, 2009 at 3:58 PM
http://support.microsoft.com/?id=320268

and check also http://www.google.ca/search?sourceid=navclient&ie=UTF-8&rlz=1T4GGLJ_enCA232CA232&q=Request+for+the+permission+of+type+%27System%2eWeb%2eAspNetHostingPermission
Jan 15, 2010 at 10:19 PM

This might Help : Right-click on the .dll causing the problem ( com.flajaxian.FileUploader.dll ) and check for the following security message: “This file came from another computer and might be blocked to help protect this computer.” If present, click “Unblock”, “Apply” and “OK”.