jeudi 3 mai 2018

This program is blocked by group policy.Web config Issue in Asp.net

First of all I am posting question first time so please ignore formation of question.

My question:- My website not web application throws this error on live while I am trying to access .exe file which is inside folder. I found some solutions regarding web.config file.I added <trust level="Full"> inside <system.web> tag,<system.codedom> tag does not exist in web.config file even there is not any package installed for CodeDom.

My Web.Config

    <?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  </configSections>
  <connectionStrings>
  </connectionStrings>
  <appSettings>
  </appSettings>
  <log4net>
    <appender name="LogFileAppender" type="log4net.Appender.FileAppender">
      <!-- Please make sure the ..\\Logs directory exists! -->
      <param name="File" value="" />
      <!--<param name="AppendToFile" value="true"/>-->
      <layout type="log4net.Layout.PatternLayout">
        <param name="" value="" />
      </layout>
    </appender>
    <logger name="File">
      <level value="All" />
      <appender-ref ref="LogFileAppender" />
    </logger>
  </log4net>
  <system.web>
    <trust level="Full"/>
    <customErrors mode="O`enter code here`ff" />
    <sessionState timeout="120"></sessionState>
    <machineKey validationKey="" decryptionKey="" validation="" decryption="" />
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
      </assemblies>
    </compilation>
    <authentication mode="Forms">
      <forms loginUrl="~/Account/loginn.aspx" timeout="2880" />
    </authentication>
    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="xyz" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
      </providers>
    </membership>
    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="xyz" applicationName="/" />
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="xyz" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>
  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <directoryBrowse enabled="false" />
    <defaultDocument>
      <files>
        <clear />
        <add value="Default.htm" />
        <add value="Default.asp" />
        <add value="index.htm" />
        <add value="index.html" />
        <add value="iisstart.htm" />
        <add value="hj_map.aspx" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

Click to see error image




Aucun commentaire:

Enregistrer un commentaire