Hallo,
Ik heb al enkele malen mijn probleem voorgelecht in forum's maar tot nu toe geen
deftige informatie gekregen.
Wat ik wil is een asp.net pagina maken waaraan ik een Microsoft SQL database koppel
(redelijk gewoon dacht ik) en ik zou willen Microsoft Visual studio pro 2005 blijven
gebruiken.
Mijn problemen:
1.
- Ik kan geen foutmeldingen online zien.
IE zegt steeds dat ik de web.config moet aanpassen zodanig dat bezoekers ook de
foutmelding kunnen zien. Dit heb ik dan gedaan en nog steeds is de foutmelding niet
zichtbaar.
Hironder de code die IE toont:
Code: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 <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <!-- Web.Config Configuration File --> <configuration> <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 "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
2.
Dan had ik het gevraagd aan mijn hosting beheerder om dit te checken en zij konden de
code zien via de server en hebben deze mij bezorgt.
correcte foutmelding:
Code:Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Unrecognized configuration section 'connectionStrings' Source Error: Line 10: <configuration> Line 11: <appSettings/> Line 12: <connectionStrings> Line 13: <add name="SpionshopConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Gandert\Desktop\we\Spionshop.mdf;Integra ted Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient"/> Line 14: </connectionStrings> Source File: d:\accounts\l\o\londen5714\WWW\test\web.config Line: 12 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Dit is een normale foutcode. maar ik niet wat er verkeerd mee is (volgens mij niets).
Normaal gezien zou er geen fout mogen instaan want ik heb de code niet handmatig
geschreven.
Ik heb Visual studio pro 2005 van microsoft gebruikt om deze pagina te maken en heb
zelf niet van code's ingevoerd (met visual studio kan je de database min of meer
slepen naar de pagina en visual doet dan de rest).
Hoe komt het dat er dan een fout op staat is mijn vraag?
En hoe kan ik dit oplossen?
Ik wil dus dat ik foutmeldingen kan zien via internet (zodinag dat ik ze kan oplossen)
en dat mijn database werkt.
Hier heb ik al mijn bestanden in een zip file geplaatst:
worldcitytrips.com/test/web.zip
info bij zip: de zip bestanden die in de zip zitten moeten een map worden (met de naam
die de zips hebben) met de bestanden erin.
Alle bestanden en 2 mappen plaats ik dan gewoon (gewoon zoals ik alles oplaad) op mijn
server.
Test gelieve zelf even.
Ik hoop dat ik Visual studio kan blijven gebruiken want dit is wel een zeer eenvoudig
programma.
Als iemand hier een oplossing heeft kan hij mij gerust contacteren op mijn mail of msn
lamsgandert@hotmail.com
Mvg
Gandert