h4fr0tae6a5ekvm
Гость
|
|
« : 07-02-2010 20:19 » |
|
на сайте h***://mymedia.md прописал в панель администрирования Plesk страницу по умолчанию Default.aspx, но появляется ошибка, проблема в корневом файле сайта web.config, как сообщает техподдержка, этот сайт был на другом хостинге, думал, что проблема в хостинге, но здесь повторяется ошибка. Ошибки отличаются, когда открываю h***://mymedia.md и h***://mymedia.md/Default.aspx, все остальные страницы сайта работают нормально, пример h***://mymedia.md/Catalog.aspx, от чего могут появляться такие ошибки и как решить их, спасибо. Ответ техподдержки: The problem is in your web.config. I re-created the domain and until I placed your files the site was opening the default.aspx file. However after web.config is placed it switches the default index settings. I have renamed it to web.config1 so you can see that it's trying to load default.aspx . When you rename it it will switch the default settings. Содержимое файла web.config: <?xml version="1.0" encoding="UTF-8"?> <configuration> <configSections> <!-- The configSections define a section for ASP.NET Atlas --> <section name="Membership"
type="AX.Kernel.Providers.ConfigurationSections.Membership.Mem
bershipSection, AX.Kernel, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=ecc967527d7f7d9f"
restartOnExternalChanges="false" /> <sectionGroup name="applicationSettings"
type="System.Configuration.ApplicationSettingsGroup, System,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" /> <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.ScriptingScriptResourceHandlerS
ection, System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission="false"
allowDefinition="MachineToApplication" /> <sectionGroup
name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGrou
p, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"> <section
name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSecti
on, 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.ScriptingAuthenticationServiceS
ection, 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> <section name="winFxHttpCompressionModule"
type="WinFxProgrammer.WinFxHttpCompressionSection,
WinFxHttpCompression, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=null" /> </configSections>
<winFxHttpCompressionModule compress="true"
enableTrace="true" compressDefaultHandler="true"
compressTraceHandler="true" compressWebResourceHandler="true"
preferredAlgorithm="GZip" maximumCompressionLevel="Ten"
forceAcceptEncodingHeader="false"
compressionFactory="WinFxProgrammer.WinFxStandardCompressionFa
ctory,WinFxHttpCompression"> <excludedPaths> <!-- Example: Do not compress these pages. <add value="/nocompress.aspx" /> <add value="/image/dynamic.aspx" /> Do not compress these paths and their
subdirectories. <add value="/images/" /> <add value="/files/images/" />
NOTE: The path feature assumes that all
subdirectories are included. --> <add value="/images/" /> <add
value="/asp.net/components/sitemapexplorer/page/properties.asp
x" /> <add
value="/asp.net/components/sitemapexplorer/control/properties.
aspx" /> </excludedPaths> <excludedMimeTypes> <!-- The following MIME types are already excluded by
the WinFxHttpCompressionModule. JPEG Image image/jpeg GIF Image image/gif PNG Image image/png Zip File application/zip, application/x-
zip, application/x-zip-compressed GZip File application/x-gzip,
application/x-gzip-compressed Compressed File application/x-compress,
application/x-compressed --> <add value="application/octet-stream" /> <add value="application/pdf" /> </excludedMimeTypes> <handlers> <add
type="WinFxProgrammer.WinFxHttpCompressionAtlasSupport,
WinFxHttpCompressionAtlasSupport" /> </handlers> </winFxHttpCompressionModule>
<Membership enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
requiresUniqueEmail="false" minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
passwordAttemptWindow="5" passwordStrengthRegularExpression=""
/> <system.net> <mailSettings> <smtp deliveryMethod="Network"
from="mailbot@webassembler.net"> <network
defaultCredentials="false" host="mail.webassembler.net"
port="25" userName="mailbot@webassembler.net"
password="mailbot" /> </smtp> </mailSettings> </system.net> <connectionStrings> <remove name="LocalSqlServer" /> <add name="LocalSqlServer"
connectionString="server=databaseserver;uid=databaseuser;pwd=d
atabasepassword;database=databasename;" /> <add name="LocalSqlServer1"
connectionString="Data Source=iacovlev64;Initial
Catalog=mymedia_prod;User ID=sa;Password=sa;"
providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <httpRuntime maxRequestLength="7048" /> <siteMap
defaultProvider="XmlSiteMapProviderFactory" enabled="true"> <providers> <add
name="XmlSiteMapProviderFactory"
type="AX.Kernel.Providers.XmlSiteMapProviderFactory" /> <add
name="MenuXmlSiteMapProviderFactory"
type="AX.Kernel.Providers.MenuXmlSiteMapProviderFactory" /> <add
name="StandaloneMenuXmlSiteMapProviderFactory"
type="AX.Kernel.Providers.StandaloneMenuXmlSiteMapProviderFact
ory" /> </providers> </siteMap> <membership
defaultProvider="SqlMembershipProviderFactory"> <providers> <add
connectionStringName="LocalSqlServer"
name="SqlMembershipProviderFactory"
type="AX.Kernel.Providers.SqlMembershipProviderFactory" /> </providers> </membership> <anonymousIdentification enabled="false"
cookieName=".ASPXANONYMOUS" cookieTimeout="30" cookiePath="/"
cookieRequireSSL="false" cookieSlidingExpiration="true"
cookieProtection="None" /> <roleManager enabled="true"
defaultProvider="SqlRoleProviderFactory"> <providers> <add
connectionStringName="LocalSqlServer"
name="SqlRoleProviderFactory"
type="AX.Kernel.Providers.SqlRoleProviderFactory" /> </providers> </roleManager> <webParts> <personalization
defaultProvider="SqlPersonalizationProviderFactory"> <providers> <add
connectionStringName="LocalSqlServer"
name="SqlPersonalizationProviderFactory"
type="AX.Kernel.Providers.SqlPersonalizationProviderFactory"
/> </providers> <authorization> <allow
roles="Administrators" verbs="enterSharedScope" /> </authorization> </personalization> </webParts> <authentication mode="Forms"> <forms loginUrl="4dealers.aspx" /> </authentication> <profile enabled="true"
defaultProvider="SqlProfileProviderFactory"
automaticSaveEnabled="true"> <providers> <clear /> <add
name="SqlProfileProviderFactory"
connectionStringName="LocalSqlServer"
type="AX.Kernel.Providers.SqlProfileProviderFactory" /> </providers> <properties> <add name="Theme"
type="System.String" allowAnonymous="false" /> <add
name="CMS_CurrentFolderID" type="System.Int32"
allowAnonymous="false" /> </properties> </profile> <!-- 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="Off"> <error statusCode="404"
redirect="login.aspx" /> </customErrors> <trace enabled="true" localOnly="false" /> <pages validateRequest="false"
enableEventValidation="false"> <controls> <add tagPrefix="atlas"
namespace="System.Web.UI" assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" /> <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" /> </controls> </pages> <healthMonitoring enabled="true"
heartbeatInterval="0"> <providers> <add
name="PortalSqlWebEventProvider"
type="AX.Kernel.Providers.SqlWebEventProviderFactory"
connectionStringName="LocalSqlServer" buffer="false"
bufferMode="Notification" maxEventDetailsLength="1073741823"
/> <add
name="CriticalMailEventProvider"
type="System.Web.Management.SimpleMailWebEventProvider"
from="support@alfa-xp.com" to="support@alfa-xp.com"
bodyHeader="Warning!" bodyFooter="Please investigate ASAP."
subjectPrefix="Action required." buffer="false"
bufferMode="Critical Notification"
maxMessagesPerNotification="1" /> <add
name="TemplatedMailEventProvider"
type="System.Web.Management.TemplatedMailWebEventProvider"
template="ASP.Net/Resources/AX.TemplatedMailWebEventProviderPa
ges/Default.aspx" from="support@alfa-xp.com" to="support@alfa
-xp.com" buffer="false" bufferMode="Critical Notification"
maxMessagesPerNotification="1" /> <add
name="CriticalMailEventProvider_FileNotFound"
type="System.Web.Management.SimpleMailWebEventProvider"
from="support@alfa-xp.com" to="support@alfa-xp.com"
bodyHeader="Warning!" bodyFooter="Please investigate ASAP."
subjectPrefix="Action required." buffer="false"
bufferMode="Critical Notification"
maxMessagesPerNotification="1" /> </providers> <rules> <clear /> <add name="All Errors"
eventName="All Errors" provider="PortalSqlWebEventProvider"
profile="Default" minInstances="1" maxLimit="Infinite"
minInterval="00:01:00" custom="" /> <add name="All Audits"
eventName="All Audits" provider="PortalSqlWebEventProvider"
profile="Default" minInstances="1" maxLimit="Infinite"
minInterval="00:01:00" custom="" /> <add name="All Events"
eventName="All Events" provider="PortalSqlWebEventProvider"
profile="Default" minInstances="1" maxLimit="Infinite"
minInterval="00:01:00" custom="" /> <add name="Failure Audits"
eventName="Failure Audits"
provider="PortalSqlWebEventProvider" profile="Default"
minInstances="1" maxLimit="Infinite" minInterval="00:01:00"
custom="" /> <add name="Success Audits"
eventName="Success Audits"
provider="PortalSqlWebEventProvider" profile="Default"
minInstances="1" maxLimit="Infinite" minInterval="01:00:00"
custom="" /> <add name="Heartbeats"
eventName="Heartbeats" provider="PortalSqlWebEventProvider"
profile="Default" minInstances="1" maxLimit="Infinite"
minInterval="00:01:00" custom="" /> <add name="Application
Lifetime Events" eventName="Application Lifetime Events"
provider="PortalSqlWebEventProvider" profile="Default"
minInstances="1" maxLimit="Infinite" minInterval="00:01:00"
custom="" /> <add name="Request Processing
Events" eventName="Request Processing Events"
provider="PortalSqlWebEventProvider" profile="Default"
minInstances="1" maxLimit="Infinite" minInterval="00:01:00"
custom="" /> <add name="Infrastructure
Errors" eventName="Infrastructure Errors"
provider="PortalSqlWebEventProvider" profile="Default"
minInstances="1" maxLimit="Infinite" minInterval="00:01:00"
custom="" /> <add name="Request Processing
Errors" eventName="Request Processing Errors"
provider="PortalSqlWebEventProvider" profile="Default"
minInstances="1" maxLimit="Infinite" minInterval="00:01:00"
custom="" /> <add name="Custom Login Event"
eventName="Login Event" provider="PortalSqlWebEventProvider"
/> <add name="Change Password
Event" eventName="Change Password Event"
provider="PortalSqlWebEventProvider" /> <add name="Mail Login Event"
eventName="Mail Event" provider="PortalSqlWebEventProvider" /> <add name="Authorization
Failure" eventName="AuthorizationFailureEvent"
provider="PortalSqlWebEventProvider" /> <add name="File Not Found"
eventName="FileNotFoundEvent"
provider="PortalSqlWebEventProvider" /> </rules> <eventMappings> <add name="Login Event"
type="AX.WebEvents.Events.LoginEvent,AX.Kernel" /> <add name="Change Password
Event"
type="AX.WebEvents.Events.ChangePasswordEvent,AX.Kernel" /> <add name="Mail Event"
type="AX.WebEvents.Events.MailEvent,AX.Kernel" /> <add
name="AuthorizationFailureEvent"
type="AX.WebEvents.WebAuditEvents.AuthorizationFailureEvent,AX
.Kernel" /> <add name="FileNotFoundEvent"
type="AX.WebEvents.WebAuditEvents.FileNotFoundEvent,AX.Kernel"
/> </eventMappings> </healthMonitoring> <!-- 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" /> </assemblies> </compilation> <httpHandlers> <remove verb="*" path="*.asmx" /> <add path="WinFxCompress.axd"
type="WinFxProgrammer.WinFxHttpCompressionTraceHandler,
WinFxHttpCompression" verb="GET" validate="false" /> <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 verb="*"
path="Reserved.ReportViewerWebControl.axd"
type="Microsoft.Reporting.WebForms.HttpHandler,
Microsoft.ReportViewer.WebForms, Version=8.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> </httpHandlers> <httpModules> <add name="HttpCompressionModule"
type="WinFxProgrammer.WinFxHttpCompressionModule,
WinFxHttpCompression" /> <add name="ScriptModule"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" /> </httpModules> <sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"></sessionState> <globalization uiCulture="auto" culture="auto"
/> </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> <system.diagnostics> <trace autoflush="true" /> <sources> <source name="System.Net"
maxdatasize="1024"> <listeners> <add
name="MyTraceFile" /> </listeners> </source> <source name="System.Net.Sockets"
maxdatasize="1024"> <listeners> <add
name="MyTraceFile" /> </listeners> </source> </sources> <!--sharedListeners> <add name="MyTraceFile"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\Inetpub\NewWebAsm\wa\System.Net.trace.log"/
> </sharedListeners--> <switches> <add name="System.Net" value="Verbose"
/> <add name="System.Net.Sockets"
value="Verbose" /> </switches> </system.diagnostics> <appSettings> <add key="EnableWebDavLogging" value="false"
/> <add key="EnableCustomControlsLogging"
value="false" /> <add key="VersionNumber" value="3" /> <add key="SingleWorkspaceOnly"
value="www.mymedia.md" /> </appSettings> <system.web.extensions> <scripting> <webServices> <!-- Uncomment this line to customize maxJsonLength and
add a custom converter --> <jsonSerialization
maxJsonLength="500000"></jsonSerialization> <!-- Uncomment this line to enable the authentication
service. Include requireSSL="true" if appropriate. --> <authenticationService enabled="true" requireSSL="false"
/> <!-- Uncomment these lines to enable the profile
service. To allow profile properties to be retrieved and modified in ASP.NET AJAX applications, you need
to add each property name to the readAccessProperties and writeAccessProperties attributes. --> <!-- <profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" /> --> </webServices> <scriptResourceHandler enableCompression="false"
enableCaching="true" /> </scripting> </system.web.extensions> <!-- 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> <urlCompression doStaticCompression="false"
doDynamicCompression="false" /> <validation
validateIntegratedModeConfiguration="false" /> <modules> <add name="HttpCompressionModule"
type="WinFxProgrammer.WinFxHttpCompressionModule,
WinFxHttpCompression" /> <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="DavModule"
type="AX.WebDav.DataBase.DavModule" preCondition=""/--> </modules> <handlers> <remove name="OPTIONSVerbHandler" /> <remove
name="WebServiceHandlerFactory-Integrated" /> <remove name="ScriptHandlerFactory" /> <remove
name="ScriptHandlerFactoryAppServices" /> <remove name="ScriptResource" /> <remove name="StaticFile" /> <add name="StaticFile" path="*"
verb="*"
modules="StaticFileModule,DefaultDocumentModule,DirectoryListi
ngModule" resourceType="File" requireAccess="Read" /> <add path="WinFxCompress.axd" name="WinFxCompress"
type="WinFxProgrammer.WinFxHttpCompressionTraceHandler,
WinFxHttpCompression" verb="GET" /> <add name="WebService" path="*.asmx" verb="*"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" /> <add name="UploadHandler"
path="Receiver.ashx" verb="POST,GET"
type="AX.Uploader.Handler" /> <add name="UploadHandler2"
path="Upload.axd" verb="POST,GET"
type="AX.DF.OM.Handler.Upload" /> <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" /> </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>
|
|
« Последнее редактирование: 08-02-2010 05:51 от Sel »
|
Записан
|
|
|
|