473,396 Members | 1,683 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.

How to Publish aspx pages without configuring an application?

I seem to have read somewhere that one can do this by copying the
code-behind page into the .aspx file. Is there an easier way?

I tried to create a simple web page (I just need a quick registration page
that is temporary). Do I really need to logon to the server, create a
virtual directory and all that junk, just to publish my page? I tried
simply to publish using the FTP publish and here is what I got:
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 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorssection enables configuration
I am so used to years of ASP, where you can build an entire app in notepad,
publish it and you are up and running. Something simple like that would be
my favorite.

Any advice?
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
Jun 27 '08 #1
6 2088
Not sutre what kind of junk you are talking about. Do you have a web site
uop and running ? If yes you shouldn't have any problem to publish. HEre it
lloks like that the web .config file is not correct (yu perhaps palceed it
not in the rror folder ???)

--
Patrice
"Anil Gupte/iCinema.com" <an*******@icinema.coma écrit dans le message de
groupe de discussion : eY**************@TK2MSFTNGP02.phx.gbl...
I seem to have read somewhere that one can do this by copying the
code-behind page into the .aspx file. Is there an easier way?

I tried to create a simple web page (I just need a quick registration page
that is temporary). Do I really need to logon to the server, create a
virtual directory and all that junk, just to publish my page? I tried
simply to publish using the FTP publish and here is what I got:
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 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorssection enables configuration
I am so used to years of ASP, where you can build an entire app in
notepad, publish it and you are up and running. Something simple like
that would be my favorite.

Any advice?
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
Jun 27 '08 #2
If you don't understand what I am talking about, why are you replying?

--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"Patrice" <http://www.chez.com/scribe/wrote in message
news:79**********************************@microsof t.com...
Not sutre what kind of junk you are talking about. Do you have a web site
uop and running ? If yes you shouldn't have any problem to publish. HEre
it lloks like that the web .config file is not correct (yu perhaps palceed
it not in the rror folder ???)

--
Patrice
"Anil Gupte/iCinema.com" <an*******@icinema.coma écrit dans le message
de groupe de discussion : eY**************@TK2MSFTNGP02.phx.gbl...
>I seem to have read somewhere that one can do this by copying the
code-behind page into the .aspx file. Is there an easier way?

I tried to create a simple web page (I just need a quick registration
page that is temporary). Do I really need to logon to the server, create
a virtual directory and all that junk, just to publish my page? I tried
simply to publish using the FTP publish and here is what I got:
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 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorssection enables configuration
I am so used to years of ASP, where you can build an entire app in
notepad, publish it and you are up and running. Something simple like
that would be my favorite.

Any advice?
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv

Jun 27 '08 #3
Because I wanted to let you know that some more details could help. From
your post it's not crystal clear if you expect to never have anyhting to do
or if you configured a web site prior to your first publication attempt.
Also I'm not sure if you published your app (especially the web.config file)
in an application root folder...

That said it's likely better to put me in your blocked address list as I'll
do fo you (no need to respond).

Good luck and have a nice day.

"Anil Gupte/iCinema.com" <an*******@icinema.coma écrit dans le message de
groupe de discussion : eG**************@TK2MSFTNGP04.phx.gbl...
If you don't understand what I am talking about, why are you replying?

--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"Patrice" <http://www.chez.com/scribe/wrote in message
news:79**********************************@microsof t.com...
>Not sutre what kind of junk you are talking about. Do you have a web site
uop and running ? If yes you shouldn't have any problem to publish. HEre
it lloks like that the web .config file is not correct (yu perhaps
palceed it not in the rror folder ???)

--
Patrice
"Anil Gupte/iCinema.com" <an*******@icinema.coma écrit dans le message
de groupe de discussion : eY**************@TK2MSFTNGP02.phx.gbl...
>>I seem to have read somewhere that one can do this by copying the
code-behind page into the .aspx file. Is there an easier way?

I tried to create a simple web page (I just need a quick registration
page that is temporary). Do I really need to logon to the server,
create a virtual directory and all that junk, just to publish my page?
I tried simply to publish using the FTP publish and here is what I got:
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 49: ASP.NET to identify an incoming user.
Line 50: -->
Line 51: <authentication mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorssection enables configuration
I am so used to years of ASP, where you can build an entire app in
notepad, publish it and you are up and running. Something simple like
that would be my favorite.

Any advice?
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv

Jun 27 '08 #4
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.
This error is most likely because you do not have the application in a
Virtual Directory in IIS. Unfortunately, the ASP.NET page must reside
in a Virtual Directory that is configured as an ASP.NET application
(make sure you set it to use 2.0 as that's most likely what you'll
need).

The other option is to drop it under an existing ASP.NET site if you
have one you can use (since it'll already be configured as a Virtual
Directory)

Thanks,

Seth Rowe [MVP]

Jun 27 '08 #5
Thanx, that is the bad news I was expecting. I often write some small apps
to do specific things and I had to create a virtual directoy for each, I
would be swimming in them. Perhaps I will try your suggestion of dropping
it into an existing application. Of course the automated FTP publishing
won't work then - I think I will have to make sure not to ftp the web.config
or perhaps use the automated approach and then delete the web.config.

If I do manually plop the files under an exiting app, do I have to tell it
that the original app that it has some new friends? Or will it compile
them. I guess I can just try it and see.

Thanx for your help.
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:d1**********************************@a1g2000h sb.googlegroups.com...
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.
This error is most likely because you do not have the application in a
Virtual Directory in IIS. Unfortunately, the ASP.NET page must reside
in a Virtual Directory that is configured as an ASP.NET application
(make sure you set it to use 2.0 as that's most likely what you'll
need).

The other option is to drop it under an existing ASP.NET site if you
have one you can use (since it'll already be configured as a Virtual
Directory)

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #6
On Jun 25, 8:37*am, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
Thanx, that is the bad news I was expecting. *I often write some small apps
to do specific things and I had to create a virtual directoy for each, I
would be swimming in them. *Perhaps I will try your suggestion of dropping
it into an existing application. *Of course the automated FTP publishing
won't work then - I think I will have to make sure not to ftp the web.config
or perhaps use the automated approach and then delete the web.config.

If I do manually plop the files under an exiting app, do I have to tell it
that the original app that it has some new friends? *Or will it compile
them. *I guess I can just try it and see.

Thanx for your help.
--
Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv"row e_newsgroups" <rowe_em...@yahoo.comwrote in message

news:d1**********************************@a1g2000h sb.googlegroups.com...
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.

This error is most likely because you do not have the application in a
Virtual Directory in IIS. Unfortunately, the ASP.NET page must reside
in a Virtual Directory that is configured as an ASP.NET application
(make sure you set it to use 2.0 as that's most likely what you'll
need).

The other option is to drop it under an existing ASP.NET site if you
have one you can use (since it'll already be configured as a Virtual
Directory)

Thanks,

Seth Rowe [MVP]
Yeah, try it and see, it sorta depends on how the application is set
up. Also remember that web.configs are inherited, so if you drop your
stuff in a sub folder you can add in some pieces just for the new page
in a web.config that lives in that subfolder.

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #7

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

Similar topics

0
by: Tony Lewis | last post by:
I'm running IIS on a Windows 2k server and have just installed the .NET framework 1.1 so I can deploy ASP.NET applications on my server through .NET Studios. All my normal ASP applications run fine...
3
by: Christopher Baldwin | last post by:
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from...
2
by: wschaub | last post by:
When publishing Web Applications different rules are applied than those applied to Building. This is sometimes a little late in the process to discover bugs at least give us a warning when...
1
by: VB Programmer | last post by:
My ASP.NET 2.0 site takes about 10 min to publish to my webserver. There's only 3 ASPX pages, VERY MINIMAL code (< 100 lines) and I'm not using any membership stuff etc... (even though the...
24
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX...
1
by: Scott | last post by:
Is it possible to publish a vb.net windows application as an aspx file (rather than a .htm) file? The real goal we are after is using then using the web.config file to control security to the...
9
by: Jason | last post by:
Hi all, I am no longer able to publish a web site project using Visual Studio 2005 Professional. I am publishing it to an FTP url, and this used to work just fine. I enter the username and...
3
by: Learner | last post by:
Hello, I recently converted a VS 2003 application to VS 2005. When I compile it in VS 2005 every thing gets compiled with no errors. But when I try publishing the website I get all different...
3
by: Frank Rizzo | last post by:
I get a ton of warning that are similar to "Unable to apply publish properties for item "microsoft.visualstudio.shell.interop". The warning appears for pretty much every reference. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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,...
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...

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.