Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Parser Error
rsumida

From: Honolulu, USA
Posts: 2
Member Since: 07/20/06
posted November 3, 2006 9:03 PM

Hello - I am getting the following error when trying to access a form that I have the textbox on.

Cannot create an object of type 'Dart.PowerWEB.TextBox.StringValueCollection' from its string representation 'Heading 1=<h1>$Heading 2=<h2>$Heading 3=<h3>$Heading 4=<h4>$Heading 5=<h5>$Normal=<p>' for the 'FontFormattingList' property.

I'm assuming it has something to do with the rights that my webhost is enabling or not for my asp.net application but would like to know if that is the case or if I'm not looking in the right place.

Any assistance would be appreciated.

Thanks,
-R.
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted November 6, 2006 12:00 PM

Not sure what the issue is with your webhost, but
since you are just using default font types, the easiest thing to do would be to just remove the attribute from the server tags.

1) Open your aspx page in HTML view
2) Find the following attribute and remove it:

FontFormattingList="Heading 1=<h1>$Heading 2=<h2>$Heading 3=<h3>$Heading 4=<h4>$Heading 5=<h5>$Normal=<p>"

The end result will still be the same, but it will no longer have to parse that attribute, thus eliminating the exception.
rsumida

From: Honolulu, USA
Posts: 2
Member Since: 07/20/06
posted November 6, 2006 1:34 PM

Ok, after taking out every string that gave me the parser error (a bunch of dialog-strings parameters) I am now getting the following error:

 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 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 failed.]
  System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
  System.Reflection.CustomAttribute.CreateCaObject(Module module, RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) +104
  System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +482
  System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +258
  System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) +63
  System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +262
  System.ComponentModel.ReflectedTypeData.GetAttributes() +36
  System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +50
  System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) +26
  System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin) +540
  System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1199
  System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +580
  System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +580
  System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() +58
  System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers() +16
  System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() +1266
  System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) +156
  System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) +144

Any thoughts?

Thanks,
-R.
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted November 7, 2006 11:35 AM

Hmmm. not sure. It does sound like some setting with your host though.

You may want to check this Microsoft KB article to see if anything is applicable.
http://support.microsoft.com/kb/320268

Also, your webhost may have some more info as to what is the cause.
macarlet

From: Rome, Italy
Posts: 1
Member Since: 09/29/07
posted September 29, 2007 3:08 PM

I have the same problem but I didn't find solutions.
I think that we must change web.config but I don't know how.
Somebody can help me?
Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted October 1, 2007 3:37 PM

Hi,
Are you referring to the Security Exception?
If so, is your app hosted in a medium trust environment?

Thanks,
-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX