By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,364 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,364 IT Pros & Developers. It's quick & easy.

Can sub folder be a website?

P: n/a
On my local machine, I've created an ASP.NET website, which will go
into a sub folder of a website on a remote web server. I did this on
my local machine because at some point, this site will have its own
domain and no longer reside in the web server sub folder.

Everything runs fine on my local machine but on the remote web server,
I get this error:

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Source Error:
Line 44: by Microsoft that offers a single logon and core
profile services for member sites.
Line 45: -->
Line 46: <authentication mode="Windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
Is this something to do with having created a website and stuck it into
a sub folder of another website? I also created a bin folder in the
sub and put the sub website's DLL in it. If this is not correct, how
should I be doing it?

Thanks,
Brett

Jan 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You need to create a virtual directory for that subdirectory

"brett" wrote:
On my local machine, I've created an ASP.NET website, which will go
into a sub folder of a website on a remote web server. I did this on
my local machine because at some point, this site will have its own
domain and no longer reside in the web server sub folder.

Everything runs fine on my local machine but on the remote web server,
I get this error:

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Source Error:
Line 44: by Microsoft that offers a single logon and core
profile services for member sites.
Line 45: -->
Line 46: <authentication mode="Windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
Is this something to do with having created a website and stuck it into
a sub folder of another website? I also created a bin folder in the
sub and put the sub website's DLL in it. If this is not correct, how
should I be doing it?

Thanks,
Brett

Jan 3 '06 #2

P: n/a
Under IIS, make the sub folder an application using Properties under the
Application Settings section on the Virtual Directory tab.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"brett" <ac*****@cygen.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
On my local machine, I've created an ASP.NET website, which will go
into a sub folder of a website on a remote web server. I did this on
my local machine because at some point, this site will have its own
domain and no longer reside in the web server sub folder.

Everything runs fine on my local machine but on the remote web server,
I get this error:

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.

Source Error:
Line 44: by Microsoft that offers a single logon and core
profile services for member sites.
Line 45: -->
Line 46: <authentication mode="Windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
Is this something to do with having created a website and stuck it into
a sub folder of another website? I also created a bin folder in the
sub and put the sub website's DLL in it. If this is not correct, how
should I be doing it?

Thanks,
Brett

Jan 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.