473,695 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET and hosting problems

I wrote in web.config the following lines:
<system.web>
<customErrors mode="Off"/>
</system.web>


But every time I try to access any page from my site I get:

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

Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrorsta g within a "web.config "
configuration file located in the root directory of the current web
application. This <customErrorsta g should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirec t" attribute of the application's
<customErrorsco nfiguration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y" defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>

My web.config on the site::

Quote:

<?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\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n>
<configSections >
<sectionGroup name="system.we b.extensions" type="System.We b.Configuration .
SystemWebExtens ionsSectio nGroup, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5">
<sectionGroup name="scripting " type="System.We b.Configuration .
ScriptingSectio nGroup, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5">
<section name="scriptRes ourceHandler" type="System.We b.Configuration .
ScriptingScript ResourceHa ndlerSection, System.Web.Exte nsions, Version=3.5.0.
0, Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"
requirePermissi on="false" allowDefinition ="MachineToAppl ication"/>
<sectionGroup name="webServic es" type="System.We b.Configuration .
ScriptingWebSer vicesSecti onGroup, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5">
<section name="jsonSeria lization" type="System.We b.Configuration .
ScriptingJsonSe rializatio nSection, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="Everywhere "/>
<section name="profileSe rvice" type="System.We b.Configuration .
ScriptingProfil eServiceSe ction, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
<section name="authentic ationService" type="System.We b.Configuration .
ScriptingAuthen ticationSe rviceSection, System.Web.Exte nsions, Version=3.5.0.
0, Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"
requirePermissi on="false" allowDefinition ="MachineToAppl ication"/>
<section name="roleServi ce" type="System.We b.Configuration .
ScriptingRoleSe rviceSecti on, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" requirePermissi on="false"
allowDefinition ="MachineToAppl ication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>
<connectionStri ngs>
<clear />
<add name="LocalSqlS erver" connectionStrin g="data source=XXXXX.pa rking.ru,
1437;User ID=XXXXXX;Passw ord=XXXXX;datab ase=XXXXXXXX"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
<system.web>
<membership>
<providers>
<add connectionStrin gName="LocalSql Server" applicationName ="testapp"
enablePasswordR etrieval="false " enablePasswordR eset="false"
requiresQuestio nAndAnswer="fal se" requiresUniqueE mail="true"
passwordFormat= "Clear" maxInvalidPassw ordAttempts="5"
passwordAttempt Window="10"
minRequiredPass wordLength="3" minRequiredNona lphanumericChar acters="0"
name="CustomeMe mPro" type="System.We b.Security.SqlM embershipProvid er, System.
Web, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />
</providers>
</membership>
<!--
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="Syste m.Core, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
<add assembly="Syste m.Web.Extension s, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add assembly="Syste m.Data.DataSetE xtensions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= B77A5C561934E08 9"/>
<add assembly="Syste m.Xml.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
<add assembly="Syste m.Data.Linq, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= b77a5c561934e08 9"/></assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Forms">
<forms loginUrl="Login .aspx" timeout="50000" cookieless="Aut oDetect"/>
</authentication>
<authorizatio n>
<deny users="?" />
</authorization>
<!--
The <customErrorsse ction 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"/>
<pages>
<controls>
<add tagPrefix="asp" namespace="Syst em.Web.UI" assembly="Syste m.Web.
Extensions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add tagPrefix="asp" namespace="Syst em.Web.UI.WebCo ntrols" assembly="Syste m.
Web.Extensions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
</controls>
</pages>
<httpHandlers >
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false " type="System.We b.Script.Servic es.
ScriptHandlerFa ctory, System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add verb="*" path="*_AppServ ice.axd" validate="false " type="System.We b.
Script.Services .ScriptHandlerF actory, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
<add verb="GET,HEAD" path="ScriptRes ource.axd" type="System.We b.Handlers.
ScriptResourceH andler, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5" validate="false "/>
</httpHandlers>
<httpModules>
<add name="ScriptMod ule" type="System.We b.Handlers.Scri ptModule, System.Web.
Extensions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
</httpModules>
</system.web>
<system.codedom >
<compilers>
<compiler language="c#;cs ;csharp" extension=".cs" warningLevel="4 "
type="Microsoft .CSharp.CSharpC odeProvider, System, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<providerOpti on name="CompilerV ersion" value="v3.5"/>
<providerOpti on name="WarnAsErr or" value="false"/>
</compiler>
<compiler language="vb;vb s;visualbasic;v bscript" extension=".vb"
warningLevel="4 " type="Microsoft .VisualBasic.VB CodeProvider, System,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9">
<providerOpti on name="CompilerV ersion" value="v3.5"/>
<providerOpti on name="OptionInf er" value="true"/>
<providerOpti on name="WarnAsErr or" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServe r section is required for running ASP.NET AJAX under
Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServ er>
<validation validateIntegra tedModeConfigur ation="false"/>
<modules>
<remove name="ScriptMod ule"/>
<add name="ScriptMod ule" preCondition="m anagedHandler" type="System.We b.
Handlers.Script Module, System.Web.Exte nsions, Version=3.5.0.0 ,
Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
</modules>
<handlers>
<remove name="WebServic eHandlerFactory-Integrated"/>
<remove name="ScriptHan dlerFactory"/>
<remove name="ScriptHan dlerFactoryAppS ervices"/>
<remove name="ScriptRes ource"/>
<add name="ScriptHan dlerFactory" verb="*" path="*.asmx"
preCondition="i ntegratedMode" type="System.We b.Script.Servic es.
ScriptHandlerFa ctory, System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add name="ScriptHan dlerFactoryAppS ervices" verb="*" path="*_AppServ ice.axd"
preCondition="i ntegratedMode" type="System.We b.Script.Servic es.
ScriptHandlerFa ctory, System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
<add name="ScriptRes ource" preCondition="i ntegratedMode" verb="GET,HEAD"
path="ScriptRes ource.axd" type="System.We b.Handlers.Scri ptResourceHandl er,
System.Web.Exte nsions, Version=3.5.0.0 , Culture=neutral ,
PublicKeyToken= 31BF3856AD364E3 5"/>
</handlers>
</system.webServe r>
<runtime>
<assemblyBindin g xmlns="urn:sche mas-microsoft-com:asm.v1">
<dependentAssem bly>
<assemblyIdenti ty name="System.We b.Extensions"
publicKeyToken= "31bf3856ad364e 35"/>
<bindingRedirec t oldVersion="1.0 .0.0-1.1.0.0" newVersion="3.5 .0.0"/>
</dependentAssemb ly>
<dependentAssem bly>
<assemblyIdenti ty name="System.We b.Extensions.De sign"
publicKeyToken= "31bf3856ad364e 35"/>
<bindingRedirec t oldVersion="1.0 .0.0-1.1.0.0" newVersion="3.5 .0.0"/>
</dependentAssemb ly>
</assemblyBinding >
</runtime>
</configuration>

What's wrong to my site and how to fix the problem?

Aug 25 '08 #1
0 1415

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1350
by: Jim | last post by:
Hi, I have got a shared hosting package with 1&1. It seems to work well. However, I have hit a small hosting problem. Basically I have 1 domain and 1 subdomain www.mydomain.com development.mydomain.com
1
2912
by: mike robinson | last post by:
here's my code: <script type="text/javascript"> function checkUncheckAll(t, type) { for(i=1; i<t.length; i++) { if (t.name == "hosting" && type == "hosting") t.checked=t.checked; if (t.name == "se" && type == "se") t.checked=t.checked; if (t.name == "ml" && type == "ml") t.checked=t.checked; }
13
1714
by: suzy | last post by:
Hi, Does anyone know of a cheap hosting company that will allow me to host asp.net with custom c# DLLs? A SQL Server would also be handy but not necessary if the cost is pushed too high. Thanks.
9
1529
by: Stimp | last post by:
Hi all, I'm going to be moving my site to a new hosting provider at the end of the month. Can anyone recommend a good windows (.NET) hosting provider? My requirements are as follows: - .NET framework installed
5
2083
by: Scott | last post by:
Can anyone refer me to a good hosting provider? I'm looking for a reseller plan with PHP 5, MySql 5, 24 x 7 support, and most importantly, a solid uptime record. Customer referrals only, please. Thanks, Scott
5
4099
by: mantrid | last post by:
Hello My web hosting company has lost my data due to the mysql software failing, it only affected those people using innoDB engine. I asked them why they didnt restore from a back up. They said "there is not an effective way of backing up mysql without either suspending the service or causing latency problems connecting the database" are they bull s*****g me or are they correct?
13
4336
by: Massimo Fabbri | last post by:
Maybe it's a little OT, but I'll give it try anyway.... I was asked to maintain and further develop an already existing small company's web site. I know the golden rule of "eternal" URIs, but in this case changing them cannot be avoided as they were badly chosen when thwe site was first delevoped: URLs with spaces, typos, etc. So I have to use new URLs and put the content in them.
7
2202
by: JahMic | last post by:
I'm having a problem with exec on my hosting server. Unfortunately, the hosting support seems to be anything but helpful. The following works fine on my localhost: <?php $MaskData = "mask.exe -e \"TestString\""; $Result = exec($MaskData, $Output, $ReturnValue); echo("Result: ".$Result);
5
4335
by: Josh | last post by:
I have a website w/ Yahoo Web Hosting and unfortunately they do not allow use of cron jobs. My site sends out automated personalized e- mails on a regularly scheduled basis, currently via the method of placing the e-mail PHP code on a page on the site and accessing it at some point each day. I would like to set it up as fully automated on the server, but how can I do this without cron jobs? Are there alternatives? Seems like SourceForge...
0
8577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8996
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8853
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4345
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2277
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.