c# - how to host an ASP .NET 3.5 website to world wide web. like www.mynewwebsite.com -


how host asp .net 3.5 website world wide web. -- need know ftp process, means how upload new files -- steps should take upload website.

here project's webconfig file

<?xml version="1.0"?> 

<configsections>   <sectiongroup name="system.web.extensions" type="system.web.configuration.systemwebextensionssectiongroup, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35">     <sectiongroup name="scripting" type="system.web.configuration.scriptingsectiongroup, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35">       <section name="scriptresourcehandler" type="system.web.configuration.scriptingscriptresourcehandlersection, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" allowdefinition="machinetoapplication"/>       <sectiongroup name="webservices" type="system.web.configuration.scriptingwebservicessectiongroup, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35">         <section name="jsonserialization" type="system.web.configuration.scriptingjsonserializationsection, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" allowdefinition="everywhere" />         <section name="profileservice" type="system.web.configuration.scriptingprofileservicesection, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" allowdefinition="machinetoapplication" />         <section name="authenticationservice" type="system.web.configuration.scriptingauthenticationservicesection, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" allowdefinition="machinetoapplication" />         <section name="roleservice" type="system.web.configuration.scriptingroleservicesection, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" allowdefinition="machinetoapplication" />       </sectiongroup>     </sectiongroup>   </sectiongroup> </configsections>    <appsettings /> <connectionstrings /> <system.web>     <compilation debug="true">        <assemblies>         <add assembly="system.core, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>         <add assembly="system.data.datasetextensions, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>         <add assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>         <add assembly="system.xml.linq, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/>       </assemblies>      </compilation>     <!--         <authentication> section enables configuration          of security authentication mode used          asp.net identify incoming user.      -->     <authentication mode="windows" />     <!--         <customerrors> section enables configuration          of if/when unhandled error occurs          during execution of request. specifically,          enables developers configure html error pages          displayed in place of error stack trace.      <customerrors mode="remoteonly" defaultredirect="genericerrorpage.htm">         <error statuscode="403" redirect="noaccess.htm" />         <error statuscode="404" redirect="filenotfound.htm" />     </customerrors>     -->    <pages>     <controls>       <add tagprefix="asp" namespace="system.web.ui" assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>       <add tagprefix="asp" namespace="system.web.ui.webcontrols" assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>     </controls>   </pages>    <httphandlers>     <remove verb="*" path="*.asmx"/>     <add verb="*" path="*.asmx" validate="false" type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>     <add verb="*" path="*_appservice.axd" validate="false" type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>     <add verb="get,head" path="scriptresource.axd" type="system.web.handlers.scriptresourcehandler, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" validate="false"/>   </httphandlers>   <httpmodules>     <add name="scriptmodule" type="system.web.handlers.scriptmodule, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>   </httpmodules>  </system.web>  <system.codedom>   <compilers>     <compiler language="c#;cs;csharp" extension=".cs" warninglevel="4"               type="microsoft.csharp.csharpcodeprovider, system, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089">       <provideroption name="compilerversion" value="v3.5"/>       <provideroption name="warnaserror" value="false"/>     </compiler>  </compilers> </system.codedom>  <!--      system.webserver section required running asp.net ajax under internet     information services 7.0.  not necessary previous version of iis. --> <system.webserver>   <validation validateintegratedmodeconfiguration="false"/>   <modules>     <remove name="scriptmodule" />     <add name="scriptmodule" precondition="managedhandler" type="system.web.handlers.scriptmodule, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>   </modules>   <handlers>     <remove name="webservicehandlerfactory-integrated"/>     <remove name="scripthandlerfactory" />     <remove name="scripthandlerfactoryappservices" />     <remove name="scriptresource" />     <add name="scripthandlerfactory" verb="*" path="*.asmx" precondition="integratedmode"          type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>     <add name="scripthandlerfactoryappservices" verb="*" path="*_appservice.axd" precondition="integratedmode"          type="system.web.script.services.scripthandlerfactory, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/>     <add name="scriptresource" precondition="integratedmode" verb="get,head" path="scriptresource.axd" type="system.web.handlers.scriptresourcehandler, system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />   </handlers> </system.webserver> <runtime>   <assemblybinding appliesto="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">     <dependentassembly>       <assemblyidentity name="system.web.extensions" publickeytoken="31bf3856ad364e35"/>       <bindingredirect oldversion="1.0.0.0-1.1.0.0" newversion="3.5.0.0"/>     </dependentassembly>     <dependentassembly>       <assemblyidentity name="system.web.extensions.design" publickeytoken="31bf3856ad364e35"/>       <bindingredirect oldversion="1.0.0.0-1.1.0.0" newversion="3.5.0.0"/>     </dependentassembly>   </assemblybinding> </runtime> 

for adding custom host local network or machine should following procedure:

  1. update local host file
  2. create new website in iis , map custom host

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -