473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

"File not found" error when accessing network shale from DLL

Im writing a DLL that extends IHttpHandler to intercept requests for a
certain file extension and deliver watermarked images.

I'm using LeadTools' .NET framework for the image manipulation and it
is their Codecs.Load which issues the error.

I have the code working when the image is loaded from my local machine
but when loading from a network share I receive a File Not Found error
from the framework that is attempting to load then file - even when the
file is there?

Can anyone guide me to how I can configure the .NET Security settings
to fix this?

Nov 19 '05 #1
4 1957
On 21 Jul 2005 02:54:31 -0700, ma***********@gmail.com wrote:

¤ Im writing a DLL that extends IHttpHandler to intercept requests for a
¤ certain file extension and deliver watermarked images.
¤
¤ I'm using LeadTools' .NET framework for the image manipulation and it
¤ is their Codecs.Load which issues the error.
¤
¤ I have the code working when the image is loaded from my local machine
¤ but when loading from a network share I receive a File Not Found error
¤ from the framework that is attempting to load then file - even when the
¤ file is there?
¤
¤ Can anyone guide me to how I can configure the .NET Security settings
¤ to fix this?

Is this an ASP.NET application? If so, what type of authentication are you using?
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #2
It is an ASP.Net authentication but it needs to work without
authentication as the authentication that may be enabled would not map
to our network drives' requirements.

Nov 19 '05 #3
On 22 Jul 2005 07:42:39 -0700, "M_at" <ma***********@gmail.com> wrote:

¤ It is an ASP.Net authentication but it needs to work without
¤ authentication as the authentication that may be enabled would not map
¤ to our network drives' requirements.

OK, so are you using Anonymous authentication?

The issue is likely one of credential delegation. If the file you're attempting to access is remote
from the web server, then authentication credentials will be required on the remote machine to
access the file.

If you're using Anonymous authentication then there must be an identical account on the remote
machine (that has sufficient permissions for the file) with the same password. If you're not
implementing impersonation, this account will be the ASPNET account (NetworkService under Windows
2003).
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #4
Thanks Paul but this still has no affect.

I'm raising the issue with LeadTools to see if they have any experience
with this.

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ari Royce Hidayat | last post by:
Dear ALL, Is there some one ever faces this problem? And fix it? The scenario is: There's an html page that hosts a .net object (using object tag), and this page opens the second html page...
10
by: Dieter Salath? | last post by:
Hi, in our webpage, a user could open a windows explorer to his temp directory with a simple link and usage of the file protocol: <a href="file://C:\temp" target="_blank">C:\temp</a> This...
1
by: TJRobertsJob | last post by:
Was wondering if someone could help. Over the last month I've been developing a small database application, using Access 2000, for use in a friends shop. Everything was going well until about a...
3
by: N. Graves | last post by:
Hello, I don't understand this error message." Error accessing File. Network Connection may have been lost." I'm not using any network connection for the database. In the VBA editor is goes...
2
by: mark | last post by:
How do I detect that a particular form element is a file upload or if the file upload has worked? In the Python cgi module documentation I found suggested code... form = cgi.FieldStorage()...
1
by: Kirk | last post by:
Hello, I have a very simple application that I am trying to publish to a Windows 2005 server. During my testing, I sucessfully published my application using ClickOnce to my local IIS. I...
2
by: johkar | last post by:
Why does if(win==null || win.closed) return true after one PDF is open. Something very wierd going on with IE 6. I also get a member not found error if a child window is already open. This script...
0
by: Brian Lampe | last post by:
On Apr 11, 7:25 am, subhash <chend...@hotmail.comwrote: If your service is using a port other than 80, you can specify it in the service instantiation's Url property: ...
3
maliksleo
by: maliksleo | last post by:
hi all i m having this "The resource cannot be found." error. I applied the url rewriting on my project every page is being browsed very well but i am getting the above error an some pages i dont...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.