473,657 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accessing problem in subwebs

Hi, I'm getting the following error when I run/debug my application:

Could not load type 'MyApplication. SomeNamespace.S omeClassInNames pace'

To give you more background information I have an application, with the
following folder structure:

MyRootFolder

- MySubFolder

Inside MySubFolder I have a user control that any file inside this folder
calls. This user control has an .ascx file with the Inherits=".." statement
like any user control would. So when I run my application there are no
problems with displaying/running the user control. But then I wanted to
restrict access to that folder (MySubFolder) so I dropped a web.config file
inside it and turned the folder into an application folder/sub web. But when
I do that, I get the 'Could not load type' error message.

Can anyone help me out? Is there some permissions that I need to set?

Thank you.

Peter
Nov 17 '05 #1
1 1047
You cannot load user controls from a different web application. So, when
you made it a web app (by putting in the web.config file), you made it
impossible for MyRootFolder to use controls from MySubFolder.

What I'd recommend is to remove the web.config file and make MySubFolder a
folder again (and not an app). To secure MySubFolder, you can add something
like the following to the web.config in MyRootFolder:
<location path="MySubFold er/*.*"> <-- What is being secured

<system.web>

<authorizatio n>

<allow users="?" /> <-- Change this to the security that
should apply to this folder.

</authorization>

</system.web>

</location>

(I'm not positive about the format of the path in the location node.)

This will let you specify different levels of security for different parts
of your web.

HTH

"Peter" <pe*****@shaw.c a> wrote in message
news:Of******** *****@TK2MSFTNG P11.phx.gbl...
Hi, I'm getting the following error when I run/debug my application:

Could not load type 'MyApplication. SomeNamespace.S omeClassInNames pace'

To give you more background information I have an application, with the
following folder structure:

MyRootFolder

- MySubFolder

Inside MySubFolder I have a user control that any file inside this folder
calls. This user control has an .ascx file with the Inherits=".." statement like any user control would. So when I run my application there are no
problems with displaying/running the user control. But then I wanted to
restrict access to that folder (MySubFolder) so I dropped a web.config file inside it and turned the folder into an application folder/sub web. But when I do that, I get the 'Could not load type' error message.

Can anyone help me out? Is there some permissions that I need to set?

Thank you.

Peter

Nov 17 '05 #2

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

Similar topics

1
4237
by: Amy Tseng | last post by:
Hi, I am having a problem accessing SQL Server 2000 via UNIX. I am accessing SQL Server 2000 from Solaris using Sybase Open Client (CT-Lib). Here is the error message: CT-LIBRARY error: ct_connect(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
5
2408
by: Sandeep | last post by:
Hi, In the following code, I wonder how a private member of the class is being accessed. The code compiles well in Visual Studio 6.0. class Sample { private: int x; public:
6
2736
by: Chris Styles | last post by:
Dear All, I've been using some code to verify form data quite happily, but i've recently changed the way my form is structured, and I can't get it to work now. Originally : The form is called "form1", and I have selects called "PORTA", "PORTB" ... etc...
3
4312
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different geographical locations. I have been completely unsucessful in acheiving this goal so far however. Things I have tried: Create a shortcut to ftp sight via browser then tried to map local drive to
47
5268
by: fb | last post by:
Hi Everyone. Thanks for the help with the qudratic equation problem...I didn't think about actually doing the math...whoops. Anyway... I'm having some trouble getting the following program to work. I want to output a bit pattern from base 10 input. All I get is a zero after the input...I've looked over the code but can't see the problem...any ideas? /* display the bit pattern corresponding to a signed decimal integer */
3
3339
by: AdamM | last post by:
Hi all, When I run my VbScript, I get the error: "ActiveX component can't create object: 'getobject'. Error 800A01AD". Any ideas what I did wrong? Here's my VBScript: dim o set o=getobject(,"ConsoleApplication2.Program") msgbox o.TestString
1
1337
by: Pete Mahoney | last post by:
Our company has just started the move from ASP to ASP.Net. We have just finished our first .Net projects, and are now in the process of deploying them. We use FrontPage at our company to allow other departments to add content to our intranet. Along with using FrontPage comes lots of Subwebs for keeping track of permissions. So here is the problem: Now having these new ASP.Net projects finished I am looking to deploy them on our...
5
3051
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet explorer would do in this case. The headers I am getting are: Headers {Content-Disposition: attachment; filename="dynamic_file.mdb" Connection: close Cache-Control: private Content-Type: application/octet-stream
2
2518
by: gurnandank | last post by:
Hi, I have a web application which uses SSL on one the folders. When I developed application the set up was webroot and under that folder called 'secure'. My ISP has provided a folder called 'secure' on the server which has shared SSL and is sitting outside of the web root, hence the set up called 'secure' and then at the same level a folder called web root. Now, I have two issues:
0
863
by: Tory Collum | last post by:
I'm interested in monitoring a little basic information on subwebs under IIS. Things like number of hits per day, and a handful of other statistics. What's the best way to go about doing this?
0
8385
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
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,...
1
8502
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,...
1
6162
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.