473,890 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ='MachineToAppl ication' 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: <authenticati on mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorsse ction 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 2108
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*******@icin ema.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 ='MachineToAppl ication' 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: <authenticati on mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorsse ction 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******** *************** ***********@mic rosoft.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*******@icin ema.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:
Configuratio n 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
allowDefinitio n='MachineToApp lication' 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: <authenticati on mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorsse ction 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*******@icin ema.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******** *************** ***********@mic rosoft.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*******@icin ema.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:
Configurati on 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
allowDefiniti on='MachineToAp plication' 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: <authenticati on mode="Windows"/>
Line 52: <!--
Line 53: The <customErrorsse ction 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 ='MachineToAppl ication' 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_newsgroup s" <ro********@yah oo.comwrote in message
news:d1******** *************** ***********@a1g 2000hsb.googleg roups.com...
Parser Error Message: 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.
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.co m>
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.keenin c.netwww.icinem a.comwww.wizo.t v"rowe_newsgrou ps" <rowe_em...@yah oo.comwrote in message

news:d1******** *************** ***********@a1g 2000hsb.googleg roups.com...
Parser Error Message: 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.

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
1728
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 in IIS but I can't run any ASP.NET pages. Everything in IIS was configured to handle the .aspx file extension by the .NET framework installation and it installed with no errors. When I try to view a simple ASP.NET page through a web browser I...
3
2914
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 "test.aspx" to "test.extx", where .extx extensions are handled in exactly the same way as aspx pages. In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element (below) to web.config, and adding a IIS mapping of "extx" to
2
1617
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 building. Also when using Master pages and publishing we receive an error that the page is Ambiguous because it is contained within all the dll's. When we do not use publish the site works fine. When we use a previous page and cast it to an object at...
1
1395
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 ASPNETDB.MDF is over 10MB) Any ideas how I can speed up the process, or better yet, JUST copy over certain files (ie the things that have changed?) Thanks!
24
2776
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 is Microsoft's attempt to "dumb down" web application development to help unskilled developers such as web design agencies achieve some results. For high quality applications IHttpHandlers are the way to go.
1
1278
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 deployment page (we would prefer this over NTFS permissions on the directory itself). Thanks in advance.
9
2938
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 password and select "passive mode" when publishing the site, like I have always done. Visual Studio deletes the existing files, but then doesn't write the new ones, though it tells me the operation was
3
1944
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 kinds of errors... just to give you a number of errors it is 888 :) All these errors aren't syntax errors in code behind files. I see all these in .aspx pages for instanse...
3
8531
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 application is a click-once winform app. How can I get rid of these warnings? Regards
0
9814
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,...
0
11214
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10801
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...
1
10903
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,...
0
10449
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7158
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
5834
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...
2
4257
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3266
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.