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

Home Posts Topics Members FAQ

Running web.app in subdomain

Hi

I'm trying to run a simpel asp.net 2.0 web appl. on a hosted webserver.

The only place where my app can run is in the root directory on my domain.
It can't run in either a subdomain or a subfolder.

In the subfolder the error is:
It is an error to use a section registered as
allowDefinition ='MachineToAppl ication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
On the subdomain I can't se the detailed error message.

What can I do to enable using other directories than the root on my
web-hotel for web applications.

Benny
Apr 12 '06 #1
3 2427
Benny

Are you saying you can't create apps in subfolders because that's a
limitation of your hosting company, or because you can't get them to
work at all

The error is by design - it's to prevent configuration changes in any
web.config file from overriding those defined in the machine.config
file.

To fix it you'll need to convert your sub-folder into an "Applicatio n".
Right click on the folder in IIS , choose Properties and the click the
Create button on the Application Settings section.

I assume you have remote access to your hosted server

Apr 12 '06 #2
Thanks, I'm new into this asp.net thing, so I could use some advices.

I do not have access to the IIS server at my web hotel. I do only have the
rights to FTP upload files to my domain and to create subdomains.
When the files are placed in the root, my app. works, so the root folder
must already be defined as the Application on the IIS server.

Will I be able to redirect from the root by creating an aspx page here,
which opens a page on my subdomain or subfolder?

Lets say having following files:

Root:
default.aspx
redirecttest.as px
web.config
bin directory
etc.

Sub folder test:
test-aspx

If redirecttest.as px has code for redirecting to \test\test.aspx , will this
work?

Do you get my point?
"Jason Hales" <ja*********@ya hoo.com> skrev i en meddelelse
news:11******** *************@i 40g2000cwc.goog legroups.com...
Benny

Are you saying you can't create apps in subfolders because that's a
limitation of your hosting company, or because you can't get them to
work at all

The error is by design - it's to prevent configuration changes in any
web.config file from overriding those defined in the machine.config
file.

To fix it you'll need to convert your sub-folder into an "Applicatio n".
Right click on the folder in IIS , choose Properties and the click the
Create button on the Application Settings section.

I assume you have remote access to your hosted server

Apr 12 '06 #3
Yes I would imagine the root might have created as an IIS Appllication,
I'd suggest you ask your hosting company to create an IIS application
in the subfolder for you.

This is is useful resource about IIS and ASP.NET
http://authors.aspalliance.com/PaulW...rticles/?id=16

Apr 12 '06 #4

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

Similar topics

0
1526
by: Leon | last post by:
How do I point a sub-domain to a sub-directory or .aspx page of my site using asp.net? I'm using a shared hosting service, that does not offer subdoman forwarding. however, you can write your own asp.net redirect code, and I just want to the best way to accomplish this task. it's possible that I may could have a 1000 subdomain names to redirect, but within the same application, to the same page
2
2241
by: Bill Borg | last post by:
Hello, I have a couple web services that I use across my apps. My isp supports exposing them either via subdomain (e.g. services.mydomain.com) or subfolder (e.g. mydomain.com/services). Are there any implications for doing it one way versus another? Performance? Security? Thanks, Bill
2
10217
by: flip79 | last post by:
Hello and sorry for my english, I'm italian... I manage a site with a normal address like: www.mysite.com I'm using a cookie to store nicks of my users, with a code like this: ---- Response.Cookies("mycookie").Expires = #January 1, 2030# Response.Cookies("mycookie").Path = "" Response.Cookies("mycookie").Secure = FALSE Response.Cookies("mycookie")("nick") = nick ----
1
2487
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and http://picturestore.newpicturestore.com/test - the first one works - the counter using session state increases every time the button is clicked. The second one uses subdomain forwarding with masking. The "picturestore"
0
1696
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User clicks on link that points to the subdomain demo/somesite.com. Is it possible to retain the authentication information for the subdomain, so that there is no need to log in again?
12
3049
by: Tina | last post by:
Our company domain, say, wombat.com needs to create several subdomains: support, training, and purchase are three of the subdomains needed. So when someone browses to //training.wombat.com they will be directed to the IP we have assigned. I have two questions: 1. how can I do this at design time? 2. how can I do this at run time from my asp.net code? Thanks,
3
33601
by: a2rodger | last post by:
I am using the following function and parse_url() to attempt to grab the subdomain from my sites url function selfURL() { $s = empty($_SERVER) ? '' : ($_SERVER == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER), "/").$s; $port = ($_SERVER == "80") ? "" : (":".$_SERVER); return $protocol."://".$_SERVER.$port.$_SERVER; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } $url = selfURL(); $uri =...
0
2152
by: devilsjunk | last post by:
Hello Everybody, In my web application I have created an interface where, if any user register then a subdomain will be created with the user name of the user link this manner E.G. :- http://subdomain.domain.com This works fine. Now if any user name contains special character like underscore then the subdomain only takes the character before underscore. For example if I register with devils_acc06 then the created subdomain URL is...
1
1688
by: Josh | last post by:
I have a question about subdomains. I would like my website to have subdomains that essentially show my regular main website, except that the subdomain passes as a variable on all pages so that I can use the subdomain as a variable to customize details. For example, the home page at www.thesite.com would have a set of information displayed, but the subdomain (subdomain.thesite.com) would display certain additional details. Am I...
0
8739
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7347
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6175
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
5638
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
4171
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
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
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
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.