AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke C# Startprobleme mit ASP.net im IIS
Thema durchsuchen
Ansicht
Themen-Optionen

Startprobleme mit ASP.net im IIS

Ein Thema von CalganX · begonnen am 15. Sep 2006 · letzter Beitrag vom 15. Sep 2006
Antwort Antwort
CalganX

Registriert seit: 21. Jul 2002
Ort: Bonn
5.403 Beiträge
 
Turbo Delphi für Win32
 
#1

Startprobleme mit ASP.net im IIS

  Alt 15. Sep 2006, 15:32
Hi,
ich versuche gerade mal wieder auf's Neue ein Webinterface für eine Anwendung, die auf einem Server laufen soll, zu programmieren. Dafür habe ich den IIS installiert und für meine Seite ASP.net (Version 1.1.4322.2032) aktiviert. Soweit so gut.

Ich habe mir auf die Schnelle dann auch eine C#-Webanwendung gebastelt (neu erstellt, nix weiter eingestellt). Im Browser (IE) geht das auch soweit. Bis auf einen Fehler bei der Anzeige (siehe unten).
Wenn ich nun im BDS 2005 auf F9 drücke bekomme ich zwar den IE angezeigt, allerdings gleichzeitig folgenden Fehler:

Zitat:
---------------------------
Fehler
---------------------------
Debugging kann auf dem Webserver nicht gestartet werden. Zu Arbeitsprozess ASP.NET kann nicht verbunden werden (normalerweise aspnet_wp.exe oder w3wp.exe)
---------------------------
OK Hilfe
---------------------------
Ich habe absolut gar keine Idee, woran das liegt und wie man diesen Fehler los wird.


Das viel größere Problem ist aber, dass ich beim Aufrufen meiner WebForm1.aspx im Browser einen Fehler bekomme:

Zitat:
Server Error in '/ASPAnwendung' Application.

Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temp orary ASP.NET Files\aspanwendung\e4bda625\667d70c7" is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temp orary ASP.NET Files\aspanwendung\e4bda625\667d70c7" is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:
Code:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Code:
[UnauthorizedAccessException: Access to the path "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET Files\aspanwendung\e4bda625\667d70c7" is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
   System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +632
   System.IO.Directory.CreateDirectory(String path) +195
   System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext context) +85
   System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +97
   System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) +29
   System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() +91
   System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) +148
   System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
   System.Web.UI.TemplateParser.GetParserCacheItem() +88
   System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String inputFile, HttpContext context, ApplicationFileParser& parser) +171
   System.Web.HttpApplicationFactory.CompileApplication(HttpContext context) +43
   System.Web.HttpApplicationFactory.Init(HttpContext context) +485
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +170
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
Hab jetzt mal die ganze Fehlerseite gepostet in der Hoffnung, dass jemand mir da helfen kann.

Ich hab im Moment absolut gar keinen Ansatz für 'ne Lösung.
Ich führe das ganze lokal auf meinem Rechner und greife über http://localhost/ASPAnwendung/WebForm1.aspx darauf zu. Das entsprechende Verzeichnis (C:\Inetpub\wwwroot\ASPAnwendung\) ist so eingestellt, dass es dem User ASPNET Vollzugriff einräumt.

Bin für Vorschläge und Lösungen dankbar.

Chris
  Mit Zitat antworten Zitat
CalganX

Registriert seit: 21. Jul 2002
Ort: Bonn
5.403 Beiträge
 
Turbo Delphi für Win32
 
#2

Re: Startprobleme mit ASP.net im IIS

  Alt 15. Sep 2006, 16:17
Hi,
hab beide Probleme nun doch auf einmal lösen können.

Ich habe erstmal nach diesen Vorschlägen alles gemacht (siehe auch in den Kommentaren den Vorschlag mit der aspnet_regiis.exe) und dann einfach eine neue ASP.net-Anwendung erstellt. Die "alte" funktioniert nämlich immer noch nicht.

Jetzt geht's irgendwie.

Chris
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:58 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz