Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

System.Security.SecurityException

$
0
0

Hi,

I am using reportviewer in my asp.net application for print billing report. In Local when I am clicking print button its shows the report viewer.   When I upload my files to server and then while using print button for view a billing report the reportviewer page doesn't work. It shows a given error. Please can anyone help me to clear this problem

Error : System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

and my web.config file

<configuration>
<connectionStrings>
<!--<add name="conString" connectionString="Data Source=.;initial catalog=CROWNPLY_Billing ;Integrated Security=True;" />-->
<add name="conString" connectionString="Data Source=103.21.58.192;Initial catalog=DBname;Persist Security Info =True;User Id=XXXX;password=XXX" providerName="System.Data.SqlClient"/>
</connectionStrings>

<!--<location path="crownply.geteshop.in" allowOverride="true">-->

<system.web>
<sessionState mode="InProc" timeout="180"/>
<pages enableSessionState="true"/>
<identity impersonate="true"/>
<machineKey validationKey="1ED8D397DFCD503E9B119B64BBE9D2E185836C59B72F5971FDD3147B908A8543D4E51563842B8D999CF9DC0561B9863EACEAC59138C9A3AFEA59079FE97B7E09" decryptionKey="0E93C6E221C241A016D5EF94B4C4C3FF9C602AD3D2F4E724CBC78AE318BD1288" validation="SHA1" decryption="AES"/>

<!--<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>-->

<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"/>
<!--<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>-->
<add verb="*" path="wcp.axd" type="Neodynamic.SDK.Web.WebClientPrint, Neodynamic.SDK.WebClientPrint"/>
</httpHandlers>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<!--<add assembly="System.Security.Permissions.StrongNameIdentityPermission, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>-->

</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>
<!--<trust level="Medium" />-->
<customErrors mode="Off"/>
</system.web>
<!--</location>-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/>
<add name="WCP" verb="*" path="wcp.axd" type="Neodynamic.SDK.Web.WebClientPrint, Neodynamic.SDK.WebClientPrint"/>
</handlers>
</system.webServer>
</configuration>


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>