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 in terms of positioning. (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. So I'm assuming that it's a
security issue related to the application's attempt to write the GIF file to
disk and took the following diagnostic steps.
While trying to isolate the problem, from <Control panel> <User accounts> I
gave the ASPNET account write permission. From Windows Explorer, I
right-clicked the wwwroot folder, selected Properties and followed the
Security tab and added the ASPNET account with write permission on the
folder. I must have tried at least a dozen other things to get this right,
but without success.
I'm keen to solve the "Access denied" problem of course, but I'm also
interested to know why there are so many independent methods of establishing
write permissions on the file system.
I'd greatly appreciate a reference and a pointer in the right direction.
Best regards
Loane 2 2751
Hi,
Definately sounds like a security issue but "access denied" could also
mean that something else is accessing the "thing" already. Have you
looked into that. I would also suggest that you add ASPNET to the
"admin" group on the machine, just for debugging sake, to eliminate any
security issue.
Thanks,
Sayed Y. Hashimi http://www.sayedhashimi.com
Shameless Book Plug: Service-Oriented Smart Clients with .NET 2.0 http://www.amazon.com/exec/obidos/tg...glance&s=books
thank you for your suggestions. I tried adding ASPNET to the admins group
for testing purposes, but still the same problem, so perhaps the problem of
the component being in use by some other process is correct, I'll check it
out, thanks again This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ag |
last post by:
Hi guys.. need your help.
We have abc.asp page on the source server which calls a .net component on that server. The component is in MTS running under say "domain2\id1" identity. The component uses HttpWebRequest to call xyz.asp on the target server. Both servers are under the same domain say domain1 and there is a trust between domain1 and domain2.
The problem is the target server is returning 401 unauthorized access when calling xyz.asp...
|
by: Dave Hammond |
last post by:
Hi All,
This one is a bit bizarre. My understanding of "Access is denied" with
respect to window.moveTo is that it results from a request which would
move a portion of the window off screen.
The window in question is 480 high by 1000 wide. The screen dimensions
are 1024x768. The move request is to 10,10, which would put the max
right coordinate of the window at 1010 and the max bottom coordinate at
490. Both coordinates are...
|
by: Darren Lew |
last post by:
Hi there,
I have this problem which is really driving me nuts for a couple of
days. Glad if any help or suggestion is given
Javascript will give me a pop-up error "Access is denied" when i try to
load a simple xml file, which is in the server machine itself. The
script is within a JSP page running apache tom-cat. I am running it with
IE6 from an windows administrative acc straight on the server so there
shouldn't be any access prob.
|
by: VMI |
last post by:
In Access, when a user's going to import a fixed-width format ascii file, a
window in the "Import Text Wizard" lets the user "mark" where in a string
one field will begin and end (with the vertical lines that can be moved with
the mouse). Can this (or something similar) be implemented in order for the
user to graphically choose which part of the string will be, for example, be
displayed in a MessageBox?
So for example, my control would...
|
by: ASP.Confused |
last post by:
The old message looked a little stale, so I am re-posting it here. Anybody
have any ideas of what I could do?!? The previous responses to this
question are below. If you want to look at the original question, the
subject line is:
ADODB.NET and "Access Denied"
I have an ASP.NET page writtein in VB that uses ADODB. I just had to
| |
by: Rico |
last post by:
Helolo,
I have an ASP.NET application on a Windows 2003 Server machine WITHOUT VS.
I am working on an XPPro machine with VS 2003. I have installed the remote
debugging components on the server. Aside from having administrative
rights, I have also put myself in the Debugger Users group. I have added
ASPNET and even IUSR_SERVERNAME to the Debuggers group (don't worry, it's a
dev server not a live machine) and I still get "Access Denied"...
|
by: Alex Maghen |
last post by:
I'm getting the error
"HTTP Error 403.1 - Forbidden: Execute access is denied" when I try to reach
my ASPX pages.
Before I go giving Windows permissions to my docroot, etc., I want to
understand what users or, preferably, groups, need to have what permissions
for basic operation of ASP.NET 2.0.
And specifically WHAT permissions should I give these users?
|
by: Michael Leithold, WWK |
last post by:
Hello,
If I loop through all the processes on my machine, for some processes
I get "Access Denied" when trying to read the file name associated
with the process. Also some other properties are not visible.
Why is this and how can I get around this? If I cannot get around it,
how can I get a process associated with a certain file name? To be
more specific I need the prcoess ID. The process name is not unique so
I think I have to use...
|
by: =?Utf-8?B?SkI=?= |
last post by:
Greetings,
I am getting an "Access is denied" Error when calling objects from the
AdminIndexServerClass from an ASP.NET application. I use this object to
perform a simple rescan on a Catalog after file are save to the local disk.
This only works if the users belongs to the local Admin group. The the web
site is setup to use Integrated Windows Authentication and Web.Config is set
to (Server 2003/IIS 6.0/ASP 1.1)
<authentication...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |