Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Error beim Veröffentlichen von Studierendenprojekten #337

Open
koebel opened this issue May 27, 2022 · 3 comments
Open

Server Error beim Veröffentlichen von Studierendenprojekten #337

koebel opened this issue May 27, 2022 · 3 comments

Comments

@koebel
Copy link

koebel commented May 27, 2022

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
Copy link
Author

koebel commented May 30, 2022

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
Copy link
Author

koebel commented May 30, 2022

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants