ASP.Net Project deploy into web
-
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,
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
-
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
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....
-
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....
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
-
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
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....
-
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....
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!.......
-
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....
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!.......
-
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....
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
-
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
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?
-
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?
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
-
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
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?
-
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?
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
-
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
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?
-
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?
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
-
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
Once again thanks for your patience.... My id: scothy_hut@yahoo.com
-
Once again thanks for your patience.... My id: scothy_hut@yahoo.com
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