Hi,
1.)
ich hab (zum ersten Mal ;-)) ne kleine Testanwendung mit Asp.NET 2.0 (VS 2005 Prof.) erstellt.
Hierbei verwende ich die Web.Config zu Speicherung der Zugriffsinformationen für die SQL Svr. 2005 Datenbank.
Wenn ich die Anwendung "lokal" auf meinem Win. XP ausführe läuft alles prächtig. Kopiere ich ne einfache *.aspx Datei inkl. der Web.Config in ein neu erstelltes Website-Verz. auf einem Win. Server 2003 bekomme ich nachfolgenden Fehler:
Konfigurationsfehler
Parser-Fehlermeldung: Unbekannter Konfigurationsabschnitt 'connectionStrings'
Zeile 5: <appSettings/>
Zeile 6:
Zeile 7: <connectionStrings>
Zeile 8: <!--
Zeile 9: <add
Quelldatei: c:\inetpub\wwwroot\NMRTV\web.config Zeile: 7
Inhalt der Web.Config:
Kann mir jmd. sagen was ich falsche mache?
2.)
Bzgl. der Bereitstellung. Wenn man eine ASP.NET Anwendung erstellt hat.
Reicht es doch aus alle Files aus dem Projektordner zu kopieren oder? Also 3 Files pro WebForm (aspx.cs, aspx.designer.cs und aspx) oder? Und evtl. eigens erstellte Klassen.
Was ist mit der DLL im obj/release Ordner? Ist diese auch notwendig?
1.)
ich hab (zum ersten Mal ;-)) ne kleine Testanwendung mit Asp.NET 2.0 (VS 2005 Prof.) erstellt.
Hierbei verwende ich die Web.Config zu Speicherung der Zugriffsinformationen für die SQL Svr. 2005 Datenbank.
Wenn ich die Anwendung "lokal" auf meinem Win. XP ausführe läuft alles prächtig. Kopiere ich ne einfache *.aspx Datei inkl. der Web.Config in ein neu erstelltes Website-Verz. auf einem Win. Server 2003 bekomme ich nachfolgenden Fehler:
Konfigurationsfehler
Parser-Fehlermeldung: Unbekannter Konfigurationsabschnitt 'connectionStrings'
Zeile 5: <appSettings/>
Zeile 6:
Zeile 7: <connectionStrings>
Zeile 8: <!--
Zeile 9: <add
Quelldatei: c:\inetpub\wwwroot\NMRTV\web.config Zeile: 7
Inhalt der Web.Config:
Code:
<?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings> <add name="Database" connectionString="Data Source=testpc;Initial Catalog=DbTest;User Id=Testuser; password=pwtest;Provider=SQLOleDb;" /> </connectionStrings> <system.web> <!-- 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" /> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows" /> <!-- 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="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> </configuration>
2.)
Bzgl. der Bereitstellung. Wenn man eine ASP.NET Anwendung erstellt hat.
Reicht es doch aus alle Files aus dem Projektordner zu kopieren oder? Also 3 Files pro WebForm (aspx.cs, aspx.designer.cs und aspx) oder? Und evtl. eigens erstellte Klassen.
Was ist mit der DLL im obj/release Ordner? Ist diese auch notwendig?
Comment