This is a migrated thread and some comments may be shown as answers.

Deploy on IIS7 Vista Home Premium - object type error

19 Answers 186 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 15 May 2009, 02:18 AM
Hello,

Telerik verision: 2009.1.402.35

This is driving me nuts.  VS 2008 SP1, IIS 5.1 on XP Pro SP3 no problems whatsoever.  However, try to deploy on a customers laptop running Vista Home Premium IIS7 and the fun starts.

I am getting the error below, line 30 highlighted.  I have tried the help article on deploying under IIS located here:

http://www.telerik.com/help/aspnet-ajax/installtroubleshootingproductionserver.html

But I have no experience of IIS 7 before and this article does not match the IIS7 interface or options as far as I can see.






Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Cannot create an object of type 'System.Type' from its string representation 'System.Int32' for the 'DataType' property.

Source Error:

Line 28:         <asp:Label ID="LabelBackupsToKeep" runat="server" Text="Number of Backups to Keep:"
Line 29:             Width="300px"></asp:Label>
Line 30:         <telerik:RadNumericTextBox ID="RadNumericTextBoxBackupsToKeep" runat="server" DataType="System.Int32"
Line 31:             EmptyMessage="0 to 100" MaxValue="100" MinValue="0" ReadOnly="True">
Line 32:             <NumberFormat AllowRounding="False" DecimalDigits="0" />

19 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 15 May 2009, 10:42 AM
Hello Paul,

I have just tested the problematic markup and it works as expected on my end. Can you try it and see if it works for you as well?

Sincerely yours,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Paul
Top achievements
Rank 1
answered on 15 May 2009, 11:39 AM
Hello,  Sorry for being a dumbo but what exactly do you want me to do?  I am assuming publish your sample and then try to deploy it on the customers laptop?  Is that correct?

Thanks,
Paul
0
Pavel
Telerik team
answered on 15 May 2009, 12:08 PM
Hello Paul,

Indeed you should simply deploy the sample on the same machine you are experiencing the problem and see if it can be reproduced when you run it.

Sincerely yours,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Paul
Top achievements
Rank 1
answered on 15 May 2009, 12:32 PM
Hi Pavel,

I sent it to them and they say it worked.  Would my web config be the culprit?

Thanks,
Paul

<?xml version="1.0"?> 
<!--  
    Note: As an alternative to hand editing this file you can use the  
    web admin tool to configure settings for your application. Use 
    the Website->Asp.Net Configuration option in Visual Studio. 
    A full list of settings and comments can be found in  
    machine.config.comments usually located in  
    \Windows\Microsoft.Net\Framework\v2.x\Config  
--> 
<configuration> 
    <configSections> 
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/> 
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/> 
                </sectionGroup> 
            </sectionGroup> 
        </sectionGroup> 
     <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > 
   <section name="SQLBackupDelete.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 
  </sectionGroup> 
 </configSections> 
    <appSettings> 
        <add key="Telerik.Skin" value="Office2007"/> 
        <add key="SQLBackupLocation" value="c:\dev\testsqldel"/> 
        <add key="BackupsToKeep" value="1"/> 
        <add key="TimeToRun" value="16:00"/> 
        <add key="MinEPOSSize" value="3"/> 
        <add key="MinMasterSize" value="0.3"/> 
        <add key="LastCleanEventDate" value=""/> 
        <add key="LastCleanFilesRemoved" value="0"/> 
    </appSettings> 
    <connectionStrings/> 
    <system.web> 
        <!--  
            Set compilation debug="true" to insert debugging  
            symbols into the compiled page. Because this  
            affects performance, set this value to true only  
            during development. 
        --> 
        <compilation debug="true"
            <assemblies> 
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" /> 
            </assemblies> 
        </compilation> 
        <pages theme="black"
            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/> 
            </controls> 
        </pages> 
        <!-- 
            The <authentication> section enables configuration  
            of the security authentication mode used by  
            ASP.NET to identify an incoming user.  
        --> 
        <authentication mode="Windows"/> 
        <!-- 
            The <customErrors> section enables configuration  
            of what to do if/when an unhandled error occurs  
            during the execution of a request. Specifically,  
            it enables developers to configure html error pages  
            to be displayed in place of a error stack trace. 
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"
            <error statusCode="403" redirect="NoAccess.htm" /> 
            <error statusCode="404" redirect="FileNotFound.htm" /> 
        </customErrors> 
        --> 
        <httpHandlers> 
            <remove verb="*" path="*.asmx"/> 
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/> 
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> 
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/> 
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/> 
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> 
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> 
        </httpHandlers> 
        <httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> 
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/> 
        </httpModules> 
    </system.web> 
    <system.codedom> 
        <compilers> 
            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                <providerOption name="CompilerVersion" value="v3.5"/> 
                <providerOption name="WarnAsError" value="false"/> 
            </compiler> 
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                <providerOption name="CompilerVersion" value="v3.5"/> 
                <providerOption name="OptionInfer" value="true"/> 
                <providerOption name="WarnAsError" value="false"/> 
            </compiler> 
        </compilers> 
    </system.codedom> 
    <!--  
        The system.webServer section is required for running ASP.NET AJAX under Internet 
        Information Services 7.0.  It is not necessary for previous version of IIS. 
    --> 
    <system.webServer> 
        <validation validateIntegratedModeConfiguration="false"/> 
        <modules> 
            <remove name="ScriptModule"/> 
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/> 
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/> 
        </modules> 
        <handlers> 
            <remove name="WebServiceHandlerFactory-Integrated"/> 
            <remove name="ScriptHandlerFactory"/> 
            <remove name="ScriptHandlerFactoryAppServices"/> 
            <remove name="ScriptResource"/> 
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/> 
        </handlers> 
    </system.webServer> 
    <runtime> 
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
            <dependentAssembly> 
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
            </dependentAssembly> 
            <dependentAssembly> 
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
            </dependentAssembly> 
        </assemblyBinding> 
    </runtime> 
</configuration> 
 

0
Pavel
Telerik team
answered on 15 May 2009, 01:12 PM
Hello Paul,

I don't see anything special in your web.config that might cause this problem. If it is possible you may consider sending a runnable sample of your application (via a regular support ticket) which reproduces the issue. Thus we will get back to you right after we debug it.

Sincerely yours,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Paul
Top achievements
Rank 1
answered on 15 May 2009, 01:19 PM
Sure,  I willo do that now.  Thanks, Paul
0
Nicolaï
Top achievements
Rank 2
answered on 05 Aug 2009, 11:55 AM
I got the exact same error, for a RadNumericTextBox DataType="int32"... 
Works locally, but on host server, it gives the error now..
(Also on line 30 for the fun of it.. lol)

Find out anything on this?
0
Nicolaï
Top achievements
Rank 2
answered on 05 Aug 2009, 12:42 PM
update:
I needed this fixed immediately, so here is the workaround I used:
Since we need integers, simply removing the datatype property seems to work..
Having NumberFormat-DecimalDigits="0", removing the datatype seems to make it an integer box...
0
Pavel
Telerik team
answered on 10 Aug 2009, 09:51 AM
Hi Nicolai,

Unfortunately we have not been able to replicate the issue so far. It might be helpful if you paste the problematic markup or send us a runnable sample (via a regular support ticket) which replicates the error. Thus we will get back to you as soon as we find the cause for the problem.

All the best,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nicolaï
Top achievements
Rank 2
answered on 10 Aug 2009, 10:02 AM
Sorry, but that file has been changed (many times) since my post...
Since it worked locally and only showed an error once it got on the web host server (and I have no control over that), I assume it has something to do with the server config, iis, or language settings...
0
Datamex
Top achievements
Rank 2
answered on 20 Nov 2009, 08:52 AM
I am having the exact same problem right now with the following line:
<telerik:RadNumericTextBox ID="FMHoursTextBox" runat="server" DbValue='<%# Bind("FMHours") %>' Type="Number" NumberFormat-DecimalDigits="0" DataType="System.Int32" /> 

Removing the DataType solves the error, but produces a new one when saving (the RadNumericTextBox is placed within a FormView):


Failed to set one or more properties on type DataAccess.Customer.  Cannot convert value of parameter 'FMHours' from 'System.Double' to 'Nullable<System.Int32>'.

Because of this error, I have even tried setting DataType to "Nullable<System.Int32>", but that made things even worse.
0
Datamex
Top achievements
Rank 2
answered on 20 Nov 2009, 09:25 AM
This is weird, but I seem to have solved the problem. Including Telerik.Web.Design as a reference in the project and setting its CopyLocal to true did the trick. I don't really understand why, but I thought I'd share it.
I'm using 2009 Q3 by the way.
0
Josh King
Top achievements
Rank 2
answered on 22 Feb 2010, 08:38 PM
That worked for me too.  Thanks!
0
Nate
Top achievements
Rank 1
answered on 24 Feb 2010, 05:24 PM
I had this same issue and removed the datatype property, and it worked...weird, though because it only occurred on my QA's computer.

0
Datamex
Top achievements
Rank 2
answered on 25 Feb 2010, 07:37 AM
Dear Nate,

I thought I'd share this with you:
I have tried this approach, but if it's a databound control, which you also want to use to write data back when edited, you'll get an invalid cast exception (or something along that line) when trying to update.
0
Fred
Top achievements
Rank 1
answered on 29 Apr 2010, 04:03 PM
Hi Guys, ...

    Having the same error over here.. but i'm with 2010.1.415.40 , IIS 6.0 FrameWork 4 and..

Server Error in '/portalFaelba' Application.--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Cannot create an object of type 'System.Type' from its string representation 'System.Int32' for the 'DataType' property.

Source Error:


Line 239:      
Line 240:    <td>
Line 241:            <telerik:RadNumericTextBox ID="txtNumParcelas" Runat="server"
Line 242:                DataType="System.Int32" MaxValue="60" Enabled="false" MinValue="2"
Line 243:                ShowSpinButtons="True" AllowOutOfRangeAutoCorrect="False"
 

Source File: /portalFaelba/restrito/SimResgate.aspx    Line: 241

  Removed  DataType="System.Int32" tag... and it worked!!!

  Did something change??  Used to work fine until the upgrade!

 Thanks in advanced!
Fred

0
Pavel
Telerik team
answered on 30 Apr 2010, 06:40 AM
Hi Fred,

We have identified the cause for such an error. It can occur if you have a version of Telerik.Web.Design.dll different than the version of Telerik.Web.UI.dll. Please ensure that both assemblies are from the same release and let us know if you continue to experience the problem.

Sincerely yours,
Pavel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mark
Top achievements
Rank 1
answered on 14 May 2010, 04:32 PM
The final post solved it for me.  Thanks, Telerik.
0
Fred
Top achievements
Rank 1
answered on 14 May 2010, 05:07 PM
 Yep... worked fine!

           my bad guys..should notice. sorry!

  Thanks.
Tags
Documentation and Tutorials
Asked by
Paul
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Paul
Top achievements
Rank 1
Nicolaï
Top achievements
Rank 2
Datamex
Top achievements
Rank 2
Josh King
Top achievements
Rank 2
Nate
Top achievements
Rank 1
Fred
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Share this question
or