473,569 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1549
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.500 0.0, Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a.
===

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.D LL.
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.D LL.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule.D LL.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule/GFRHTTPModule.D LL.
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.E XE.
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.E XE.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule.E XE.
LOG: Attempting download of new URL
file://bulls/data/gfrdata/bin/GFRHTTPModule/GFRHTTPModule.E XE.
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
7175
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 created if they don't already exist, and if the drive happens to be one a folder cannot be created on (ie a cdrom drive) it would just be skipped...
7
2199
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 MS Word docs in a folder on a network server. The database admin will save the docs to the folder. The docs must be available to Word automation out...
0
3304
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 am I doing wrong or not understanding? Thanks.
4
3126
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 hierarchy is organized by Folder objects. A Folder object can contain either Apples, or Oranges, or other Folders. A Folder contains only one type of...
8
2040
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 project and what all setting will I be required to do So that my original project works. Can I keep WebForm1.aspx in root and code behind file in...
9
8313
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) and two folders (Subfolder 1, Subfolder 2). .......I need to delete File1, File2, File3. Subfolder 1 contains FileA. .......Need to delete FileA....
2
2579
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 the BIN folder directly. Here is the problem. I had a site running without any problems, and then all of a sudden it went down and visitors...
17
3123
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 - Access 2000; folder with back-ends for both computers and 'Update' folder. I have a launcher program that launces my application (MyApp). The...
24
7525
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 the folder but I get the error message when the procedure attempts to delete the folder selected in the BrowseforFolderbyPath function. How can I...
5
2882
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 implement this. I've done some VB6 programming and dabbled in VS.Net. Can someone share some pointers in how I could implement the following? ...
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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...
0
7922
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, 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. ...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6281
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
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
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.