i4Ds / ProStudCreator

https://www.cs.technik.fhnw.ch/prostud/
6 stars 1 forks source link

Server Error beim Veröffentlichen von Studierendenprojekten #337

Open koebel opened 2 years ago

koebel commented 2 years ago

Ich erhalte die folgende Fehlermeldung, wenn ich versuche ein Studierendenprojekt zu veröffentlichen (sowohl mit Chrome wie auch in Safari):

Server Error in '/prostud' Application. Attempted to perform an unauthorized operation

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: Attempted to perform an unauthorized operation. 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 and IIS 7, and the configured application pool identity on IIS 7.5) 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 access to a file, right-click the file in File 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: Attempted to perform an unauthorized operation.] ProStudCreator.ProjectEditPage.SaveChangedProject() in C:\WORK\PROSTUD\ProStudCreator\ProStudCreator\ProjectEditPage.aspx.cs:1029 ProStudCreator.ProjectEditPage.PublishProject_Click(Object sender, EventArgs e) in C:\WORK\PROSTUD\ProStudCreator\ProStudCreator\ProjectEditPage.aspx.cs:1620 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11596288 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +274 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1890 Version Information:Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0

koebel commented 2 years ago

Zur Info, das selbe Problem tritt auch bei "zurückziehen" auf (das ist glaub die Option die ich wählen müsste bei den Projekten, wo das Proposal nochmals überarbeitet werden muss?)

Server Error in '/prostud' Application.

Unsubmit

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.InvalidOperationException: Unsubmit

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: [InvalidOperationException: Unsubmit] ProStudCreator.ProjectExtensions.HandleInvalidState(Project _p, String msg) in C:\WORK\PROSTUD\ProStudCreator\ProStudCreator\ProjectExtensions.cs:1323 ProStudCreator.ProjectExtensions.Unsubmit(Project _p, ProStudentCreatorDBDataContext _db) in C:\WORK\PROSTUD\ProStudCreator\ProStudCreator\ProjectExtensions.cs:849 ProStudCreator.ProjectEditPage.RollbackProject_Click(Object sender, EventArgs e) in C:\WORK\PROSTUD\ProStudCreator\ProStudCreator\ProjectEditPage.aspx.cs:1728 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11596288 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +274 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1890

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0

koebel commented 2 years ago

A team colleague has informed me that he gets a similar error message when trying to duplicate a project (we thought that this could be a work around to continue editing the project while the problem in the previous comment an hour ago remains). see screenshot for full error message.

Screenshot 2022-05-30 at 10 35 22

)

Beckicious commented 2 years ago

I have pushed a fix. You should now be able to publish projects. For the unsubmit and duplicate issue I will need a bit of time to figure out how to resolve them.