Avatar billede stkol Nybegynder
27. juni 2003 - 10:27 Der er 12 kommentarer og
1 løsning

ASP.NET DHTML pop-up vindue

Hejsa

Jeg har fundet denne en rigtig fed ASP.NET DHTML PopUp Vindue på http://www.ferant.com, men jeg kan ikke få det til at fungere. Hvordan installerer jeg den DLL som er med i pakken?? Jeg får følgende fejl når jeg kører scriptet :

##################################################

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

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\88d93ff9\25d9e7f2" 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\Temporary ASP.NET Files\root\88d93ff9\25d9e7f2" 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:

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:


[UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\88d93ff9\25d9e7f2" 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.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +120
  System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36
  System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
  System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

#################################

Jeg har prøvet at installere den fra IIS (Kører IIS 6.0 på en Win2003 Server)

/Stig :-)
Avatar billede sekhmet_ds Nybegynder
27. juni 2003 - 11:20 #1
Umiddelbart lyder det bare som om du skal tilføje ASPNET brugeren med full control til C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files.

Jeg forstår dog ikke hvorfor den ikke har adgang til den som standard.
Avatar billede niemeyer Nybegynder
27. juni 2003 - 12:53 #2
Den er sgu for cool :)
Avatar billede stkol Nybegynder
27. juni 2003 - 13:31 #3
sekhmet_ds > Ja, og det underlige af det er at der er givet de rettigheder til den bruger !!! Wird!!
Avatar billede sekhmet_ds Nybegynder
27. juni 2003 - 13:59 #4
Virker dine andre ASP.NET sider?
Avatar billede niemeyer Nybegynder
27. juni 2003 - 14:35 #5
Du skal sikre dig at din ASPNET account har adgang til at læse fra dit fysiske drev (så vidt jeg husker bliver den user account installeret når du installerer framework'et). Min er tilføjet i wwwroot folderen (der nedarves).

Herefter skulle det spille som nedenfor (husk at lægge /bin og /img folderne lige under det dir som din virtuelle root peger på):

<%@ Page Language="VB" %>
<%@ Register TagPrefix="MyPrefix" Namespace="Ferant" Assembly="FerantPopup" %>
<html>
<body>
           
<MYPREFIX:FerantPopup
    runat="server"
    ID = "sample1"
    CloseBoxWidth = 16
    CloseBoxHeight = 16
    CloseBoxSrc = "../img/Closebox.gif"
    ResizeBoxWidth = 7
    ResizeBoxHeight = 7
    ResizeBoxSrc = "../img/resize.gif"
    TitleBarText = "This is title bar text"
    StatusBarText = "This is status bar text"
>
        This is content HTML

</MYPREFIX:FerantPopup>

<% dim Control1 as FerantPopup = FindControl("Sample1") %>

<A href="java script:<%=Control1.OpenWindow()%>">Run Sample</A>

</body>
</html>
Avatar billede niemeyer Nybegynder
27. juni 2003 - 14:38 #6
Det bedste er nok at unzippe til et temp dir og så kun kopiere /bin og /img mapperne derhen hvor din applikation kører.

// Niels
Avatar billede stkol Nybegynder
28. juni 2003 - 10:18 #7
Jeg har nu lagt Fuld kontrol på til ASPNET i på wwwroot samt samt på rodenden til hvor jeg har alle websites til at ligge, ud over det har jeg lagt BIN og IMG i den mappe hvor jeg kører ASPNET dokumentet (Jeg kører kun ASP sider, og har ikke andre ASP.NET sider til at kører, så jeg ved ikke om det virker normalt) men jeg får følgende fejl når jeg kører det eksempel som du skrev niemeyer  :

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

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\88d93ff9\25d9e7f2" 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\Temporary ASP.NET Files\root\88d93ff9\25d9e7f2" 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:

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:


[UnauthorizedAccessException: Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\88d93ff9\25d9e7f2" 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.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +120
  System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +36
  System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
  System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
  System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
  System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +95
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Avatar billede sekhmet_ds Nybegynder
28. juni 2003 - 14:04 #8
Prøv at tjekke om permission på "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files" nedarves til det bibliotek den klager over.
Avatar billede niemeyer Nybegynder
28. juni 2003 - 20:05 #9
Jeg forstår ikke helt hvorfor den temp mappe kommer i spil. Afvikler du dine applikationer lokalt? Prøv i så fald at uploade dem til en hosting account via ftp...

Held & lykke,
Niels
Avatar billede stkol Nybegynder
28. juni 2003 - 20:26 #10
sekhmet_ds > Der er nedarvet fra C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files og så langt ned som den kommer, men der er kun et niveau ned til Bind Logs derefter findes der ingen mapper/filer!!

Jeg har alle mine websites til at ligge på E:\Hosted Sites, kan det have noget med det at gør????

niemeyer > Det er min egen Server som står på mit eget lokal netværk, og jeg gemmer igennem et mapped drive på min workstation direkte ud på serveren!!
Avatar billede sekhmet_ds Nybegynder
29. juni 2003 - 09:23 #11
Da jeg installerede .NETNuke (et .NET portal system) var jeg nød til at give ASP.NET accounten fuld kontrol over webserverens home directory. Det kan du evt. prøve, men ellers er jeg løbet tør for ideer.
Avatar billede stkol Nybegynder
02. juli 2003 - 12:25 #12
Hejsa, nu har jeg endeligt fået det til at virke, jeg gjorde det som du sekhmet_ds beskrev du havde gjordt med .NETNuke, og jeg har nu fået det til at virke!! Tusind tak for hjælpen *S
Avatar billede sekhmet_ds Nybegynder
02. juli 2003 - 12:42 #13
Det var da godt.
Avatar billede Ny bruger Nybegynder

Din løsning...

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.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester