Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.Net Project deploy into web

ASP.Net Project deploy into web

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
22 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S scothykonma

    I got the error like this, 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 51: ASP.NET to identify an incoming user. Line 52: --> Line 53: Line 54:

    V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #6

    Firstly Can you Post your Configuration File code, becuase it cannot just Complain if you were not working on it. I suspect that you are Deploying your Application in a Wrong Way. TEll me Step by Step what did you do to Deploy your Application, What Security Options did you Choose, Is Anonymous Access enabled ? , Tell us Step by Step and Dont Forget to Post your Configuration File.

    Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

    S 1 Reply Last reply
    0
    • V Vimalsoft Pty Ltd

      Firstly Can you Post your Configuration File code, becuase it cannot just Complain if you were not working on it. I suspect that you are Deploying your Application in a Wrong Way. TEll me Step by Step what did you do to Deploy your Application, What Security Options did you Choose, Is Anonymous Access enabled ? , Tell us Step by Step and Dont Forget to Post your Configuration File.

      Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

      S Offline
      S Offline
      scothykonma
      wrote on last edited by
      #7

      Hi I am just entering into ASP.Net web hosting..I developed my project in ASP.Net2.0. I just compiled and copy website into web. My web.config is,

      V 1 Reply Last reply
      0
      • S scothykonma

        Hi I am just entering into ASP.Net web hosting..I developed my project in ASP.Net2.0. I just compiled and copy website into web. My web.config is,

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #8

        Try to Write your Connection String like this at the Botton Change the

        and Did you Create a Virtual Directory ? ,try this You do not have a virtual directory for your application This error typically occurs when your application does not have a virtual directory established in the Microsoft IIS web server. Your application needs a virtual directory in order to run. See Creating a Virtual Directory for Your Application for instructions on creating a virtual directory. When you create the Virtual Directory on Windows 2003, you must select the “Run Scripts (such as ASP)” in the Virtual Directory Creation Wizard. Please also check that the .NET Framework version of your application is correctly specified in the virtual directory settings. The folder containing your application is within the root folder of your website For example, if your root website is located in C:\inetpub\wwwroot and it contains a Web.config file and you installed your application in C:\inetpub\wwwroot\MyApp and it also contains a Web.config, then your application’s Web.config file is considered a nested or inherited Web.config file. Web.config files can be nested, however nested Web.config files cannot contain some elements such as the <authentication mode=...>, <httpHandlers> and <httpModules> parameters. Iron Speed Designer creates a Web.config file for your application assuming it is a completely ‘free-standing’ application instead of being part of a larger application and your application does not require the presence of another root Web.config file to run. This can be resolved in a number of ways, but typically the best solution is to move your application to its own folder outside of the web root folder, such as C:\MyApp, and you change your virtual directory setting for MyApp to point to this folder. Other ways to address this (not recommended) are to (a) change your Machine.config file to allow "full" Web.config files in nested sub-folders, (b) delete the Web.config from the web root folder assuming you do not need it; or (c) modify your application's Web.config to remove the authentication, httpHandlers and httpModules sections in order to make your application a subset of the web root application and inherit all of the other settings from the root.

        Vuyiswa Maseko, Sorrow is Be

        S 1 Reply Last reply
        0
        • V Vimalsoft Pty Ltd

          Try to Write your Connection String like this at the Botton Change the

          and Did you Create a Virtual Directory ? ,try this You do not have a virtual directory for your application This error typically occurs when your application does not have a virtual directory established in the Microsoft IIS web server. Your application needs a virtual directory in order to run. See Creating a Virtual Directory for Your Application for instructions on creating a virtual directory. When you create the Virtual Directory on Windows 2003, you must select the “Run Scripts (such as ASP)” in the Virtual Directory Creation Wizard. Please also check that the .NET Framework version of your application is correctly specified in the virtual directory settings. The folder containing your application is within the root folder of your website For example, if your root website is located in C:\inetpub\wwwroot and it contains a Web.config file and you installed your application in C:\inetpub\wwwroot\MyApp and it also contains a Web.config, then your application’s Web.config file is considered a nested or inherited Web.config file. Web.config files can be nested, however nested Web.config files cannot contain some elements such as the <authentication mode=...>, <httpHandlers> and <httpModules> parameters. Iron Speed Designer creates a Web.config file for your application assuming it is a completely ‘free-standing’ application instead of being part of a larger application and your application does not require the presence of another root Web.config file to run. This can be resolved in a number of ways, but typically the best solution is to move your application to its own folder outside of the web root folder, such as C:\MyApp, and you change your virtual directory setting for MyApp to point to this folder. Other ways to address this (not recommended) are to (a) change your Machine.config file to allow "full" Web.config files in nested sub-folders, (b) delete the Web.config from the web root folder assuming you do not need it; or (c) modify your application's Web.config to remove the authentication, httpHandlers and httpModules sections in order to make your application a subset of the web root application and inherit all of the other settings from the root.

          Vuyiswa Maseko, Sorrow is Be

          S Offline
          S Offline
          scothykonma
          wrote on last edited by
          #9

          Ok....But I have tried that also. I explain step by step. First, I create a virtual directory in c:/inetpub/wwwroot/myfolder and paste all the files. Then I compiled it and get in a new folder in C:/compiledfile Then I upload my compiled file. I know there is a problem in web.config. In compiled file i have one compiled web.config and my original web.config file. In order to delete any one of the web.config i got an error. I do not know which one I want to move.And also i could not get your code....

          V 1 Reply Last reply
          0
          • S scothykonma

            Ok....But I have tried that also. I explain step by step. First, I create a virtual directory in c:/inetpub/wwwroot/myfolder and paste all the files. Then I compiled it and get in a new folder in C:/compiledfile Then I upload my compiled file. I know there is a problem in web.config. In compiled file i have one compiled web.config and my original web.config file. In order to delete any one of the web.config i got an error. I do not know which one I want to move.And also i could not get your code....

            V Offline
            V Offline
            Vimalsoft Pty Ltd
            wrote on last edited by
            #10

            Replace

            <?xml version="1.0"?>
            <!--
            Note: As an alternative to hand editing this file you can use the
            web admin tool to configure settings for your application. Use
            the Website->Asp.Net Configuration option in Visual Studio.
            A full list of settings and comments can be found in
            machine.config.comments usually located in
            \Windows\Microsoft.Net\Framework\v2.x\Config
            -->
            <configuration>
            <appSettings>

            	<add key="samplecandConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\samplecand.mdb;Persist Security Info=True"></add>
            
            </appSettings>
            
            <system.web>
            
            
            <!-- 
                    Set compilation debug="true" to insert debugging 
                    symbols into the compiled page. Because this 
                    affects performance, set this value to true only 
                    during development.
                -->
            	<compilation debug="true">
            		<assemblies>
            			<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
            	<!--
                    The <authentication> section enables configuration 
                    of the security authentication mode used by 
                    ASP.NET to identify an incoming user. 
                -->
            	<authentication mode="windows">
                    
                        </authentication>
            	
              
            	<!--
                    The <customErrors> section enables configuration 
                    of what to do if/when an unhandled error occurs 
                    during the execution of a request. Specifically, 
                    it enables developers to configure html error pages 
                    to be displayed in place of a error stack trace.
            
                <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                    <error statusCode="403" redirect="NoAccess.htm" />
                    <error statusCode="404" redirect="FileNotFound.htm" />
                </customErrors>
                -->
            </system.web>
            

            </configuration>

            I want to know , how you created a Virtual Directory. Step by Step

            Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

            S 1 Reply Last reply
            0
            • V Vimalsoft Pty Ltd

              Replace

              <?xml version="1.0"?>
              <!--
              Note: As an alternative to hand editing this file you can use the
              web admin tool to configure settings for your application. Use
              the Website->Asp.Net Configuration option in Visual Studio.
              A full list of settings and comments can be found in
              machine.config.comments usually located in
              \Windows\Microsoft.Net\Framework\v2.x\Config
              -->
              <configuration>
              <appSettings>

              	<add key="samplecandConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\\samplecand.mdb;Persist Security Info=True"></add>
              
              </appSettings>
              
              <system.web>
              
              
              <!-- 
                      Set compilation debug="true" to insert debugging 
                      symbols into the compiled page. Because this 
                      affects performance, set this value to true only 
                      during development.
                  -->
              	<compilation debug="true">
              		<assemblies>
              			<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
              	<!--
                      The <authentication> section enables configuration 
                      of the security authentication mode used by 
                      ASP.NET to identify an incoming user. 
                  -->
              	<authentication mode="windows">
                      
                          </authentication>
              	
                
              	<!--
                      The <customErrors> section enables configuration 
                      of what to do if/when an unhandled error occurs 
                      during the execution of a request. Specifically, 
                      it enables developers to configure html error pages 
                      to be displayed in place of a error stack trace.
              
                  <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                      <error statusCode="403" redirect="NoAccess.htm" />
                      <error statusCode="404" redirect="FileNotFound.htm" />
                  </customErrors>
                  -->
              </system.web>
              

              </configuration>

              I want to know , how you created a Virtual Directory. Step by Step

              Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

              S Offline
              S Offline
              scothykonma
              wrote on last edited by
              #11

              HI I am new for ASP.Net. This is my first website to upload.So kindly help me... In my project(VWD2.0) itself select website->copy website,create a folder in C:/inetpub/wwwroot/new folder Then i copied all the files to new folder. From C:/inetpub/wwwroot/new folder right click->properties, i shared and give the rights to read and write. (Is this procedure correct?) And then from settings->control panel->IIS->right click the folder and gives the authentication mode=none Thats all....

              S V 3 Replies Last reply
              0
              • S scothykonma

                HI I am new for ASP.Net. This is my first website to upload.So kindly help me... In my project(VWD2.0) itself select website->copy website,create a folder in C:/inetpub/wwwroot/new folder Then i copied all the files to new folder. From C:/inetpub/wwwroot/new folder right click->properties, i shared and give the rights to read and write. (Is this procedure correct?) And then from settings->control panel->IIS->right click the folder and gives the authentication mode=none Thats all....

                S Offline
                S Offline
                surender m
                wrote on last edited by
                #12

                hi scothykonma type 'inetmgr' in run command and locate your application right click on the application and then select properties. in that click on create and select asp.net tab and in that select asp 2.0 and then apply. and also set the permissions like iuser_machinename , asp.net and iis_wpg. Regards surender

                No Defeat Is Final Until You Stop Trying!.......

                1 Reply Last reply
                0
                • S scothykonma

                  HI I am new for ASP.Net. This is my first website to upload.So kindly help me... In my project(VWD2.0) itself select website->copy website,create a folder in C:/inetpub/wwwroot/new folder Then i copied all the files to new folder. From C:/inetpub/wwwroot/new folder right click->properties, i shared and give the rights to read and write. (Is this procedure correct?) And then from settings->control panel->IIS->right click the folder and gives the authentication mode=none Thats all....

                  S Offline
                  S Offline
                  surender m
                  wrote on last edited by
                  #13

                  hi scothykonma type 'inetmgr' in run command and locate your application create an application pool with some name. right click on the application and then select properties. in that click on create and set application pool. and select asp.net tab and in that select asp 2.0 and then apply. and also set the permissions like iuser_machinename , asp.net and iis_wpg. Regards surender

                  No Defeat Is Final Until You Stop Trying!.......

                  1 Reply Last reply
                  0
                  • S scothykonma

                    HI I am new for ASP.Net. This is my first website to upload.So kindly help me... In my project(VWD2.0) itself select website->copy website,create a folder in C:/inetpub/wwwroot/new folder Then i copied all the files to new folder. From C:/inetpub/wwwroot/new folder right click->properties, i shared and give the rights to read and write. (Is this procedure correct?) And then from settings->control panel->IIS->right click the folder and gives the authentication mode=none Thats all....

                    V Offline
                    V Offline
                    Vimalsoft Pty Ltd
                    wrote on last edited by
                    #14

                    hi scothykonma After you have Compiled your project. Create a Folder in the machine that has IIS. Go to Control Panel--> Administrators tools->Internet Information Service. Colapse the optons until you get "Default Website", Right Click on it and go to new Virutual Directory ,Browse to the Folder that you created.Give it a name. thats where you file that you had in your App will be copied to. Dont use any tool to copy the Files, just into your Project and copy them to the Folder. After you have created the Virtual Directory, the Instance name that you have created will appear under the Default web site, Right clikc on your Web instance and go to Properties, Go to "Document" tab and click on add, type the name of your startup page with extension like this "login.aspx".when done go to ASP.NET tab and make sure that the version is 2.0. and try it again.

                    Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                    S 1 Reply Last reply
                    0
                    • V Vimalsoft Pty Ltd

                      hi scothykonma After you have Compiled your project. Create a Folder in the machine that has IIS. Go to Control Panel--> Administrators tools->Internet Information Service. Colapse the optons until you get "Default Website", Right Click on it and go to new Virutual Directory ,Browse to the Folder that you created.Give it a name. thats where you file that you had in your App will be copied to. Dont use any tool to copy the Files, just into your Project and copy them to the Folder. After you have created the Virtual Directory, the Instance name that you have created will appear under the Default web site, Right clikc on your Web instance and go to Properties, Go to "Document" tab and click on add, type the name of your startup page with extension like this "login.aspx".when done go to ASP.NET tab and make sure that the version is 2.0. and try it again.

                      Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                      S Offline
                      S Offline
                      scothykonma
                      wrote on last edited by
                      #15

                      Hi Vuyiswa Maseko I have created virtual directory in IIS. But that folder is not available in C:/inetpub/wwwroot. Then how can i copy the files into ftp/http to upload?

                      V 1 Reply Last reply
                      0
                      • S scothykonma

                        Hi Vuyiswa Maseko I have created virtual directory in IIS. But that folder is not available in C:/inetpub/wwwroot. Then how can i copy the files into ftp/http to upload?

                        V Offline
                        V Offline
                        Vimalsoft Pty Ltd
                        wrote on last edited by
                        #16

                        A Virtual Directory doesnt have to be in the "C:/inetpub/wwwroot." it can be anywhere in the machine that host the IIS. i have one more question. Do you use a Payed Domain or you have Physicall Access to the machine that have IIS ?

                        Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                        S 1 Reply Last reply
                        0
                        • V Vimalsoft Pty Ltd

                          A Virtual Directory doesnt have to be in the "C:/inetpub/wwwroot." it can be anywhere in the machine that host the IIS. i have one more question. Do you use a Payed Domain or you have Physicall Access to the machine that have IIS ?

                          Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                          S Offline
                          S Offline
                          scothykonma
                          wrote on last edited by
                          #17

                          payed domain only. In that also I want to copy my project (using core FTPlite software). Before I used to copy file from C:/inetpub/wwwroot/myfolder. Now i have created Virtual Directory then next?

                          V 1 Reply Last reply
                          0
                          • S scothykonma

                            payed domain only. In that also I want to copy my project (using core FTPlite software). Before I used to copy file from C:/inetpub/wwwroot/myfolder. Now i have created Virtual Directory then next?

                            V Offline
                            V Offline
                            Vimalsoft Pty Ltd
                            wrote on last edited by
                            #18

                            After you created a Virutual Directory, User FileZilla and Connect to the Domain and FileZilla will give you an option to see the Files in your Project.Drag them and drop them in the Virtual Directory. you can get filezilla here https://www.ohloh.net/projects/filezilla/download?filename=FileZilla_3.1.5.1_win32-setup.exe[^] Tell me if you have a Problem.

                            Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                            S 1 Reply Last reply
                            0
                            • V Vimalsoft Pty Ltd

                              After you created a Virutual Directory, User FileZilla and Connect to the Domain and FileZilla will give you an option to see the Files in your Project.Drag them and drop them in the Virtual Directory. you can get filezilla here https://www.ohloh.net/projects/filezilla/download?filename=FileZilla_3.1.5.1_win32-setup.exe[^] Tell me if you have a Problem.

                              Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                              S Offline
                              S Offline
                              scothykonma
                              wrote on last edited by
                              #19

                              Hi Vuyiswa Maseko, Thanks for helping me a lot. I downloaded Filezila. Here also I want to copy my folder inside the ftp. I have my folder in IIS. How can i find my folder through filezila and copy that? I want to upload the file(that new Virtual Directory)is it?

                              V 1 Reply Last reply
                              0
                              • S scothykonma

                                Hi Vuyiswa Maseko, Thanks for helping me a lot. I downloaded Filezila. Here also I want to copy my folder inside the ftp. I have my folder in IIS. How can i find my folder through filezila and copy that? I want to upload the file(that new Virtual Directory)is it?

                                V Offline
                                V Offline
                                Vimalsoft Pty Ltd
                                wrote on last edited by
                                #20

                                Give me your E-mail so that i can send you , Screenshots of Filezilla , because i cant send screenshots here. mine is Vuyiswam@tshwane.gov.za

                                Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                                S 1 Reply Last reply
                                0
                                • V Vimalsoft Pty Ltd

                                  Give me your E-mail so that i can send you , Screenshots of Filezilla , because i cant send screenshots here. mine is Vuyiswam@tshwane.gov.za

                                  Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                                  S Offline
                                  S Offline
                                  scothykonma
                                  wrote on last edited by
                                  #21

                                  Once again thanks for your patience.... My id: scothy_hut@yahoo.com

                                  V 1 Reply Last reply
                                  0
                                  • S scothykonma

                                    Once again thanks for your patience.... My id: scothy_hut@yahoo.com

                                    V Offline
                                    V Offline
                                    Vimalsoft Pty Ltd
                                    wrote on last edited by
                                    #22

                                    Welcome :) I have sent the Steps(Screenshots) on how to use Filezilla to upload your site.

                                    Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups