Участник
|
web.config, я его подправил в соответствие с описанием как по ссылке http://www.codepal.co.uk/show/How_to...ASPNET_4_IIS_7, Там говориться о такой же проблеме как у меня сейчас, сначала Неизвестный тег сервера ASP: Chart потом ошибка Ошибка при выполнении запроса ребенка для ChartImg.axd при добавление ссылки в aspx страницу
Код: <%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %> Сам полностью web.config.
Код: <?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- COMMENT:START CRM Titan 28973
If you add any new section here , please ensure that section name is removed from help/web.config
End COMMENT:END-->
<section name="crm.authentication" type="Microsoft.Crm.Authentication.AuthenticationSettingsConfigurationSectionHandler, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="102400" requestValidationMode="3.0" encoderType="Microsoft.Crm.CrmHttpEncoder, Microsoft.Crm" />
<httpModules>
<add name="MapOrg" type="Microsoft.Crm.MapOrgEngine, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="CrmFederatedAuthenticationModule" type="Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="CrmSessionAuthenticationManager" type="Microsoft.Crm.Authentication.Claims.CrmSessionAuthenticationManager, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="CrmAuthentication" type="Microsoft.Crm.Authentication.AuthenticationEngine, Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</httpModules>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
<!--
Chart Control Insert
-->
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<!--
Chart Control Insert
-->
<compilation defaultLanguage="C#" debug="true" targetFramework="4.0">
<assemblies>
<!-- COMMENT:L:START Uncomment this if you need to run with Passport support; RPS needs to be installed
<add assembly="Microsoft.Crm.Platform.Passport, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
End COMMENT:L:END-->
<add assembly="Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="Microsoft.Crm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="Microsoft.Crm.Platform.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<!--
Chart Control Insert
-->
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<authentication mode="Windows" />
<identity impersonate="true" />
<pages buffer="true" enableSessionState="false" enableViewState="false" validateRequest="false" />
<sessionState mode="Off" />
</system.web>
<!--
Specific settings for the MSCRMServices directory
-->
<location path="MSCRMServices">
<system.web>
<httpRuntime maxRequestLength="8192" />
<webServices>
<!-- configuring the reflector + format extension for custom WSDL generation -->
<soapExtensionReflectorTypes>
<add type="Microsoft.Crm.Sdk.CrmServiceSoapExtensionReflector, Microsoft.Crm.WebServices" />
</soapExtensionReflectorTypes>
<conformanceWarnings>
<remove name="BasicProfile1_1" />
</conformanceWarnings>
</webServices>
</system.web>
</location>
<!--
Support for Live Portal
-->
<location path="Portal">
<system.web>
<compilation defaultLanguage="C#" debug="false">
<assemblies>
<clear />
<add assembly="*" />
</assemblies>
</compilation>
<pages enableSessionState="true" validateRequest="false" enableViewState="true" />
</system.web>
</location>
<!--
Support for Live Platform
-->
<location path="Platform">
<system.web>
<compilation defaultLanguage="C#" debug="false">
<assemblies>
<clear />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" />
</assemblies>
</compilation>
<pages enableSessionState="true" validateRequest="false" enableViewState="true" />
</system.web>
</location>
<location path="CrmLiveAdminWebService">
<system.web>
<compilation defaultLanguage="C#" debug="false">
<assemblies>
<clear />
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" />
</assemblies>
</compilation>
</system.web>
</location>
<location path="Support">
<system.web>
<compilation defaultLanguage="C#" debug="false">
<assemblies>
<clear />
<add assembly="*" />
</assemblies>
</compilation>
</system.web>
</location>
<location path="viewer.aspx">
<system.web>
<pages buffer="true" enableSessionState="false" enableViewState="true" validateRequest="false" />
</system.web>
</location>
<appSettings>
<!--
Help Catalog Name
========================================================================================
This is the name of the Index Server Catalog to use when executing queries from Help.
Default Setting: "Microsoft CRM Help"
-->
<add key="HelpCatalogName" value="Microsoft CRM Help" />
<!--
Show Developer Errors
========================================================================================
If a server-side error occurs, this setting determines whether or not Debug error
messages are rendered to the user. Debug error message are not recommended for
production environments, but may be useful in attempting to debug a problem you are
having with MSCRM.
Recommended Setting: "Off"
Values: "On" or "Off"
-->
<add key="DevErrors" value="On" />
<!--
Client Type
========================================================================================
This variable is used by the code to determine if the web pages are in Outlook
client mode or in web mode. Note that the Outlook Desktop client will use the Web
mode since it's actually hitting the application server.
Values: "Outlook" or "Web"
-->
<add key="ClientType" value="Web" />
<add key="ReportViewerServerConnection" value="Microsoft.Crm.Web.Reporting.CrmReportServerConnection, Microsoft.Crm.Application.Pages, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add key="ReportViewerMessages" value="Microsoft.Crm.Web.Reporting.CrmReportViewerMessages, Microsoft.Crm.Application.Pages, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<!--
Chart Control Insert
-->
<add key="ChartImageHandler" value="storage=memory;timeout=30;" />
</appSettings>
<crm.authentication>
<authentication />
</crm.authentication>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="33554432" />
<denyUrlSequences>
<add sequence="MSCRMServices/2007/CrmDeploymentService.asmx" />
</denyUrlSequences>
<fileExtensions allowUnlisted="true">
</fileExtensions>
<hiddenSegments>
</hiddenSegments>
</requestFiltering>
</security>
<rewrite>
<rules>
<rule name="ClientGlobalContextRule" stopProcessing="true">
<match url="/?([0-9a-zA-Z][^/]*)?/?((?:%7b|\{)[^/]*(?:%7d|\}))?/?(WebResources|Handlers)/ClientGlobalContext.js.aspx" />
<action type="Rewrite" url="/{R:1}/_Common/ClientGlobalContext.js.aspx" />
</rule>
<rule name="WebResourcesRule" stopProcessing="true">
<match url="/?([0-9a-zA-Z][^/]*)?/?((?:%7b|\{)[^/]*(?:%7d|\}))?/?webresources/([^\\?]+)" />
<action type="Rewrite" url="/{R:1}/Handlers/WebResource.ashx?name={R:3}" />
</rule>
<rule name="FederationMetadataRule" stopProcessing="true">
<match url="FederationMetadata/2007-06/FederationMetadata.xml" />
<action type="Rewrite" url="/Handlers/FederationMetadata.ashx" />
</rule>
</rules>
</rewrite>
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="ASP" verbosity="Verbose" />
<add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
<add provider="ISAPI Extension" verbosity="Verbose" />
<add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,Rewrite" verbosity="Verbose" />
</traceAreas>
<failureDefinitions statusCodes="401-999" />
</add>
</traceFailedRequests>
</tracing>
</system.webServer>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Error" propagateActivity="true">
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
</source>
<source name="System.ServiceModel.Activation" switchValue="Error" propagateActivity="true">
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
</source>
<source name="System.IdentityModel" switchValue="Error">
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
</source>
<source name="Microsoft.IdentityModel" switchValue="Error">
<listeners>
<add name="ServiceModelRedirect" />
</listeners>
</source>
</sources>
<sharedListeners>
<add type="Microsoft.Crm.ServiceModelTraceRedirector, Microsoft.Crm" name="ServiceModelRedirect" />
</sharedListeners>
</system.diagnostics>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Crm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="4.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<location path="XRMServices/2011/OrganizationData.svc">
<system.webServer>
<handlers>
<remove name="ExtensionlessUrl-ISAPI-4.0_64bit" />
<!--
Chart Control Insert
-->
<remove name="ChartImageHandler" />
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
</location>
</configuration> Может я чего не так делаю ???
места где вставлял для удобства комментировал как указанно ниже
Код: <!--
Chart Control Insert
-->
|