473,406 Members | 2,217 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,406 software developers and data experts.

bin folder

Sai
Hi All,
I have written a HTTP Module (Auth.dll) to authenticate pages in a
virtual directory. The virtual directory points to a network path (per
se \\net1\web). Now I have to place the compiled HTTP Module Auth.dll
and supporting dll's in \\net1\web\bin folder, and copied the
web.config to \\net1\web. I am getting security error when I try to
access the pages from the virtual folder. If I remove the HTTP module
it works fine. This has been done on windows 2003.
Q) Can I move the Auth.dll to a path in local machine rather than
network path?, if yes how can i do that.
Appreciate for your help.
Thanks
SAI

Nov 21 '05 #1
2 1542
Hi Sai,

If your virtual directory is a network share, when the runs it will run
with a very limited set of permissions. Auth.dll must be trying to
perform some action that requires more permissions than it's been given.

If you want to install Auth.dll locally, you could give it a strong name
(sign it with a key) and then place it into the Global Assembly Cache.

That way, when it runs Auth.dll *should* be granted the same security
context as the ASP.NET process (since it's not coming from a network
share anymore).

HTH,
-Adam.

Sai wrote:
Hi All,
I have written a HTTP Module (Auth.dll) to authenticate pages in a
virtual directory. The virtual directory points to a network path (per
se \\net1\web). Now I have to place the compiled HTTP Module Auth.dll
and supporting dll's in \\net1\web\bin folder, and copied the
web.config to \\net1\web. I am getting security error when I try to
access the pages from the virtual folder. If I remove the HTTP module
it works fine. This has been done on windows 2003.
Q) Can I move the Auth.dll to a path in local machine rather than
network path?, if yes how can i do that.
Appreciate for your help.
Thanks
SAI

Nov 21 '05 #2
Sai
Thanks for the response, I did try it adding to the global assembly
cache, it didnt work. I got a different error as given below

Parser Error Message: File or assembly name GFRHTTPModule, or one of
its dependencies, was not found.

Source Error:
Line 86:
Line 87: <httpModules>
Line 88: <add name="GFRAuth" type="GFRAuth, GFRHTTPModule" />
Line 89: </httpModules>
Line 90:

Assembly Load Trace: The following information can be helpful to
determine why the assembly 'GFRHTTPModule' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = GFRHTTPModule
(Partial)
LOG: Appbase = file://bulls/data/gfrdata
LOG: Initial PrivatePath = bin
Calling assembly : System.Web, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a.
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: GFRHTTPModule
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/gfr_dev_gfrdata/f475eba2/eeeb5702/GFRHTTPModule.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/gfr_dev_gfrdata/f475eba2/eeeb5702/GFRHTTPModule/GFRHTTPModule.DLL.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule.DLL.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule/GFRHTTPModule.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/gfr_dev_gfrdata/f475eba2/eeeb5702/GFRHTTPModule.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/gfr_dev_gfrdata/f475eba2/eeeb5702/GFRHTTPModule/GFRHTTPModule.EXE.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule.EXE.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule/GFRHTTPModule.EXE.
Thanks
SAI
Adam Goossens wrote:
Hi Sai,

If your virtual directory is a network share, when the runs it will run with a very limited set of permissions. Auth.dll must be trying to
perform some action that requires more permissions than it's been given.
If you want to install Auth.dll locally, you could give it a strong name (sign it with a key) and then place it into the Global Assembly Cache.
That way, when it runs Auth.dll *should* be granted the same security context as the ASP.NET process (since it's not coming from a network
share anymore).

HTH,
-Adam.

Sai wrote:
Hi All,
I have written a HTTP Module (Auth.dll) to authenticate pages in a
virtual directory. The virtual directory points to a network path (per se \\net1\web). Now I have to place the compiled HTTP Module Auth.dll and supporting dll's in \\net1\web\bin folder, and copied the
web.config to \\net1\web. I am getting security error when I try to
access the pages from the virtual folder. If I remove the HTTP module it works fine. This has been done on windows 2003.
Q) Can I move the Auth.dll to a path in local machine rather than
network path?, if yes how can i do that.
Appreciate for your help.
Thanks
SAI


Nov 21 '05 #3

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

Similar topics

13
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be...
7
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store...
0
by: John H. | last post by:
In effort to understand (Outlook) MAPI folder tree structure wrote simple linear code below to navigate tree. Successive "...Folders.GetNext()"'s return same folder at all levels of tree. What...
4
by: Dave Veeneman | last post by:
I'm puzzling over the best design for a Folder object. I have two basic domain objects; leat's call them an Apple and an Orange. The objects are maintained in separate hierarchies, and each...
8
by: vinesh | last post by:
I have sample Asp.Net Web Application project. Let me know how to keep the files related to this project (like the webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder within a...
9
by: Paul | last post by:
I'm trying to make get my app to delete all the files in a specified folder and all the files within the folders of the specified folder. e.g. Folder 1 contains three files (File1, File2, File3)...
2
by: tatemononai | last post by:
Ok, this is a very unique bug. I have only been able to find one other post related to this online, and everybody who responded misunderstood the problem. I am not trying to reference anything in...
17
by: rdemyan via AccessMonster.com | last post by:
With A2003, I'm having trouble accessing files in a folder on another computer where back-end files, update files, etc are located. Here's the scenario: 1) Computer #1 - A2003 2) Computer #2 -...
24
by: biganthony via AccessMonster.com | last post by:
Hi, I have the following code to select a folder and then delete it. I keep getting a Path/File error on the line that deletes the actual folder. The line before that line deletes the files in...
5
by: Noozer | last post by:
I'm looking for a "smart folder" program to run on my Windows XP machine. I'm not having any luck finding it and think the logic behind the program is pretty simple, but I'm not sure how I'd...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
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,...
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
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,...
0
isladogs
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...

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.