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.

run ASP.NET from a remote share

Hi,
Im running IIS and all my data is stored on a network share e.g
\\10.0.0.111\domain.com\main
The problem i'm facing is that i dont know how to point my aspx.vb files to
any dlls in the bin folder, no matter where i place the bin folder.
Nothing is stored on the IIS server, everything is on the network share.
When i create an application, i can change the codebehind to
src=file.aspx.vb, this finds the vb files. But how do i tell my application
to go to the bin folder and look for the dll?
my application looks like this:

ASPX file (main.aspx)
================================================== =
<%@ Page Language="vb" AutoEventWireup="false" src="main.aspx.vb"
Inherits="main"%>

ASCX control (login.ascx)
================================================== =
<%@ Control Language="vb" AutoEventWireup="false" Src="login.ascx.vb"
Inherits="login"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
ASCX.VB file
================================================== =
Imports Datalib
Imports System.Web.Security
Imports Datalib.NSaccess
Public Class login

Public str As String

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles button1.Click
Dim da As DataClass = New DataClass
<------------------------------------------------------------------------this
is where i get an error.
Dim valid As Boolean = da.validateuser(textbox1.Text, textbox2.Text)

Session("str") = textbox1.Text
' str = Session("str")
If valid Then
Response.Redirect("display.aspx")
Else
label1.Text = "Invalid username or password"
End If
End Sub

End Class

================================================== ===

The Datalib is the dll placed in the bin folder. It has code to connect to
the database.

ERROR:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Is it even possible to run Dlls of a share, without making any changes on
the IIS server. Or does it have to be local to
the IIS server?
thanx
Nov 19 '05 #1
4 1433
The /bin directory should be a subdirectory
of whichever directory the file "file.aspx.vb" is located in.

The application will find the directory automatically.
You don't have to "tell" the application to look for it.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<rv****@rogers.com> wrote in message news:Op**************@TK2MSFTNGP12.phx.gbl...
Hi,
Im running IIS and all my data is stored on a network share e.g
\\10.0.0.111\domain.com\main
The problem i'm facing is that i dont know how to point my aspx.vb files to
any dlls in the bin folder, no matter where i place the bin folder.
Nothing is stored on the IIS server, everything is on the network share.
When i create an application, i can change the codebehind to
src=file.aspx.vb, this finds the vb files. But how do i tell my application
to go to the bin folder and look for the dll?

Nov 19 '05 #2
My comment assumes, of course, that "file.aspx.vb"
is located in the application's root directory.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eR**************@TK2MSFTNGP15.phx.gbl...
The /bin directory should be a subdirectory
of whichever directory the file "file.aspx.vb" is located in.

The application will find the directory automatically.
You don't have to "tell" the application to look for it.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<rv****@rogers.com> wrote in message news:Op**************@TK2MSFTNGP12.phx.gbl...
Hi,
Im running IIS and all my data is stored on a network share e.g
\\10.0.0.111\domain.com\main
The problem i'm facing is that i dont know how to point my aspx.vb files to
any dlls in the bin folder, no matter where i place the bin folder.
Nothing is stored on the IIS server, everything is on the network share.
When i create an application, i can change the codebehind to
src=file.aspx.vb, this finds the vb files. But how do i tell my application
to go to the bin folder and look for the dll?


Nov 19 '05 #3
I get a security exception error when i try this.

Description: the application attempted to perform an operation not allowed
by the security policy.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
My comment assumes, of course, that "file.aspx.vb"
is located in the application's root directory.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eR**************@TK2MSFTNGP15.phx.gbl...
The /bin directory should be a subdirectory
of whichever directory the file "file.aspx.vb" is located in.

The application will find the directory automatically.
You don't have to "tell" the application to look for it.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<rv****@rogers.com> wrote in message
news:Op**************@TK2MSFTNGP12.phx.gbl...
Hi,
Im running IIS and all my data is stored on a network share e.g
\\10.0.0.111\domain.com\main
The problem i'm facing is that i dont know how to point my aspx.vb files
to
any dlls in the bin folder, no matter where i place the bin folder.
Nothing is stored on the IIS server, everything is on the network share.
When i create an application, i can change the codebehind to
src=file.aspx.vb, this finds the vb files. But how do i tell my
application
to go to the bin folder and look for the dll?



Nov 19 '05 #4
Let's see if we can dissect this.

You say that :
When i create an application, i can change the codebehind to src=file.aspx.vb, this
finds the vb files.
So, the file file.aspx.vb *is* executed if you use "src=file.aspx.vb"

Now, when I suggest that :
The /bin directory should be a subdirectory
of whichever directory the file "file.aspx.vb" is located in.


You say you get a security exception.

Yet, you also say that : The problem i'm facing is that i dont know how to point my aspx.vb files to any dlls in
the bin folder, no matter where i place the bin folder.
Nothing is stored on the IIS server, everything is on the network share.
Am I right in assuming that your virtual directory is on the network share ?

If so, creating the /bin directory in the network share should work.

In that case, you need to *remove* the "src=file.aspx.vb" from the
Page directive, so that ASP.NET can JIT-compile your codebehind.

btw, you never specified which version of the .Net Framework you're using.
I'm assuming you're using 1.1. Is that correct ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<rv****@rogers.com> wrote in message news:O0**************@TK2MSFTNGP09.phx.gbl...I get a security exception error when i try this.

Description: the application attempted to perform an operation not allowed by the
security policy.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl...
My comment assumes, of course, that "file.aspx.vb"
is located in the application's root directory.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eR**************@TK2MSFTNGP15.phx.gbl...
The /bin directory should be a subdirectory
of whichever directory the file "file.aspx.vb" is located in.

The application will find the directory automatically.
You don't have to "tell" the application to look for it.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
<rv****@rogers.com> wrote in message news:Op**************@TK2MSFTNGP12.phx.gbl...
Hi,
Im running IIS and all my data is stored on a network share e.g
\\10.0.0.111\domain.com\main
The problem i'm facing is that i dont know how to point my aspx.vb files to
any dlls in the bin folder, no matter where i place the bin folder.
Nothing is stored on the IIS server, everything is on the network share.
When i create an application, i can change the codebehind to
src=file.aspx.vb, this finds the vb files. But how do i tell my application
to go to the bin folder and look for the dll?

Nov 19 '05 #5

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

Similar topics

2
by: wenfu cho | last post by:
hi I have two machines, one generate files, and copy to the other. I try wscript.shell in my program, but it dit not work. The two machines are not in the same domain. I saw some people's...
0
by: Praveena Adabala | last post by:
Hi, Let me explain you the way the servers are set up, I have a webserver and a fileserver. On the webserver i have VS.NET installed, and i would like to create projects on to the remote fileserver...
0
by: Paul | last post by:
Given test.exe - C++, non-mfc, non-clr bar.dll - C++, non-mfc, non-cr foo.dll - C++, non-mfc, clr, some managed and some unmanaged If I run tests from a local drive, say c:\bin, I can...
4
by: rajesh | last post by:
I am trying to upload a file using .Net's HttpPostedFile.SaveAs() to a share on a remote server. It works fine when the share is on the same server. I looked at the permissions on the share and...
3
by: rfontaine | last post by:
I have a virtual directory on IIS 5.0 to a remote share on a Windows 2003 file server. The "connect as" is a domain user account. The share as read permission for everyone and the NTFS permission...
2
by: pj_servadmin | last post by:
Server Error in '/<applicationName>' Application -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of...
0
by: Craig Burkett | last post by:
I am needing to access a remote share using a set of credentials (ie a userid and a password that are not what I am logged in with) with a UNC name (I am not allowed to access the share by mounting...
3
by: btysgtmajor | last post by:
Hi all, I'm running a Win2003 server w/ IIS 6. The home directory of the website is on a network share. I successfully host html pages and asp apps. However, when it comes to ASP.Net web app,...
5
by: dad59 | last post by:
I've been fighting this for 3 days. In an existing domain we have had a win2k3 Domain controller and 10 workstations. Website has been on this server and finally getting to move it to a brand new...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.