Error using webforms security


#1

I have downloaded the last fix for aspose excel (1.7.8) and I’m trying to use it under an application that uses webforms security. When I try to create the component (new) an error appears (access denied).

If I try the same opperation with a previous version of aspoxe.excel (for example 1.5.2) it works perfectly. If I use the new version (1.7.8) without webforms security it works.


#2

Hello,

Would you please post your code here?


#3

Hello Ben,

Below you have the source code off all the used files. To reproduce the problem, you shoud config the virtual directory that contains the application to use ONLY anonymous authentication and set a user with R/W access to be used for anonymous access.

WEB.CONFIG
---------------


<system.web>










</system.web>


LOGIN.ASPX page
---------------------

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Remark: this code will simulate the login
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(“Supervisor”, False)
End Sub

CREATEEXCEL.ASPX
------------------------
’ Remark: this page should contain a button called ‘Button1’
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim currentDir As String = System.AppDomain.CurrentDomain.BaseDirectory
Dim licenseFile As String = currentDir + " \Aspose.Excel.lic"
Dim aspexcel As Excel = New Excel(licenseFile, Me) '<-- This line crashes

End Sub




#4

Hi, thanks for your feedback.

Please download quick fix 1.7.8.1.

This fix is just for this problem. Please have a try.

Since I am doing some other enhancement, a formal release will be published in the next week. Now thanks for your patience.


#5

Hi,

It works!!!

Thanks.