L
Loane Sharp
Hi there
I'm using VB.NET and Office Web Components to access a SQL Server 2005
Express database and draw pictures on the fly in my ASP.NET application.
Using .ExportPicture to write the GIF/JPEG/PNG image to disk and then load
it into the page using the <IMG /> tag is probably not the tidiest or most
secure way of doing this, but it is the easiest and allows the greatest
flexibility and control. (It also seems to be the most popular
method, judging by the newsgroups.)
However, the parser gives an "Access denied" error message at the line
containing the .ExportPicture command. The same set of code, run on a
different machine, doesn't give this error. I initially assumed that it was
a
security issue related to the application's attempt to write the GIF file to
disk and added all the necessary permissions to the ASPNET account.
(Specifically, from <Control panel> <User accounts> I gave the ASPNET
account write permission on the wwwroot folder and subfolders. From
Windows Explorer, I right-clicked the wwwroot folder, selected Properties
and followed the Security tab to check that the ASPNET account had been
given write permissions on the folder. Following a suggestion in the
ASP.NET newsgroup, I even added the ASPNET account to the Administrators
group to test the theory of a security/permissions issue. I must have tried
at least a dozen other things to get this right, but without success, so it
might
not be a security issue after all.
Someone suggested that it might not have to do with write permissions at
all,
perhaps the component is being used by another process.
I'd greatly appreciate a pointer in the right direction.
Best regards
Loane
I'm using VB.NET and Office Web Components to access a SQL Server 2005
Express database and draw pictures on the fly in my ASP.NET application.
Using .ExportPicture to write the GIF/JPEG/PNG image to disk and then load
it into the page using the <IMG /> tag is probably not the tidiest or most
secure way of doing this, but it is the easiest and allows the greatest
flexibility and control. (It also seems to be the most popular
method, judging by the newsgroups.)
However, the parser gives an "Access denied" error message at the line
containing the .ExportPicture command. The same set of code, run on a
different machine, doesn't give this error. I initially assumed that it was
a
security issue related to the application's attempt to write the GIF file to
disk and added all the necessary permissions to the ASPNET account.
(Specifically, from <Control panel> <User accounts> I gave the ASPNET
account write permission on the wwwroot folder and subfolders. From
Windows Explorer, I right-clicked the wwwroot folder, selected Properties
and followed the Security tab to check that the ASPNET account had been
given write permissions on the folder. Following a suggestion in the
ASP.NET newsgroup, I even added the ASPNET account to the Administrators
group to test the theory of a security/permissions issue. I must have tried
at least a dozen other things to get this right, but without success, so it
might
not be a security issue after all.
Someone suggested that it might not have to do with write permissions at
all,
perhaps the component is being used by another process.
I'd greatly appreciate a pointer in the right direction.
Best regards
Loane