okidoky> Installation af IIS foregår via Tilføj/Fjern Programmer i Kontrolpanelet. Du skal ind under "Windows komponenter".. så skulle du kunne finde den..
du behøver ikke at deploye/publish, asp.net 2.0 (går jeg udfra du bruger), behøver ikke at blive "pre-kompilet", du laver bare din side i C:\Inetpub\wwwroot og så skriver localhost i din browser... ;o)
kender ikke lige den fejlmeddelelse, (derfor man altid skal have engelsk OS når man udvikler, så kommer fejlen på engelsk og ofte kan der findes noget på google)
Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Nu får jeg denne fejl eller hvad nu det er?
Jeg har lavet som du sagde, den var ikke sat til asp.net 2, jeg har sat den til
okidoky> Jeg går ud fra, at du bruger Microsoft Visual Studio 2005.
Hvis ikke, må du lige sige til..
Prøv det her:
1) Opret nyt websted, fra menuen Filer 2) Vælg en eller anden mappe, helst ikke C:\Inetpub\wwwroot 3) Dobbeltklik på default.aspx og skriv "Hello world" i Design-view 4) Klik på Run-knappen (grøn trekant der peger mod højre)
Server Error in '/Kasse' Application. --------------------------------------------------------------------------------
Failed to access IIS metabase. 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.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase
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.
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Erstat <WindowsUserAccount> med navnet på din brugerkonto/profil i Windows.. F.eks., hvis din bruger i Windows hedder "Hans" erstatter du "<WindowsUserAccount>" med "Hans"..
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.
Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".
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.
<?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\Microsoft.Net\Framework\v2.x\Config --> <configuration> <appSettings/> <connectionStrings/> <system.web> <customErrors mode="Off" defaultRedirect="Default.aspx"/> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.
Visual Basic options: Set strict="true" to disallow all data type conversions where data loss can occur. Set explicit="true" to force declaration of all variables. --> <compilation debug="true" strict="false" explicit="true"/> <pages> <namespaces> <clear/> <add namespace="System"/> <add namespace="System.Collections"/> <add namespace="System.Collections.Specialized"/> <add namespace="System.Configuration"/> <add namespace="System.Text"/> <add namespace="System.Text.RegularExpressions"/> <add namespace="System.Web"/> <add namespace="System.Web.Caching"/> <add namespace="System.Web.SessionState"/> <add namespace="System.Web.Security"/> <add namespace="System.Web.Profile"/> <add namespace="System.Web.UI"/> <add namespace="System.Web.UI.WebControls"/> <add namespace="System.Web.UI.WebControls.WebParts"/> <add namespace="System.Web.UI.HtmlControls"/> </namespaces> </pages> <!-- 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.
Details: To enable the details of this specific error message to be viewable on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".
"If your code is written in 2.0 but the virtual directory is configured for 1.1 you can experience that problem the the Off parameter doesn't have any effect."
See lige om "websteder" og "standardwebsted" har ASP.NET 2 som valg..
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.