0

On a web site I published (pre-compiled) last night, I get the following error. Before pre-compiling it, I was getting a compiler error that a User Control was not found. After compiling on another machine, and running, I get the following Parser error:

"Cannot create an object of type 'System.Type' from its srting representation 'System.Int32' for the 'DataType' property"

was the, now runtime, parser error I got. The offending tag is telerik:RadNumericTextBox .... DataType="System.Int32"...

I emphasise again that this error only occurs on XP SP2, not on Vista and Win7. I'm off to do some Googling and issue logging at Telerik.

2
  • Added telerik tag since this looks telerik specific. Commented Apr 8, 2009 at 10:16
  • Thanks, I didn't stop to think that there was one. Commented Apr 8, 2009 at 12:01

3 Answers 3

1

I had this problem in one of my projects and it disappeared when I moved to the latest release Q1 2009 SP1.

Dick

Sign up to request clarification or add additional context in comments.

1 Comment

I upgraded the DLL Telerik.Web.UI.dll to the 2009 Q2 controls (version 2009.02.0701.20) and the build errors were resolved.
1

The base of this problem isn't just Telerik, but ASP.NET not being able to interpret the string representation. I just tried this on a small test project, with no Telerik, and I get the same error.

This is not to say the haven't fixed it, but I would be impressed to see how they did. It is easily done with two properties, one that takes a string and gets a type from it, and sets the actual type property, but that gets messy.

Comments

0

My guess would be that there is a GetType-type-of-resolution somewhere inside Telerik that is failing. It may be worth trying adding the assembly name to the string if this happens
e.g.: "System.Int32, mscorlib" ...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.