.
ASP NET 4.6 Development Using Visual Studio 2015
1-Create ASP NET 4.6 Project
2-Select empty project
3-Check packages.config
4-Check web.config
5-Add a web form
6-Select Web/Web_Form
7-Switch to Design mode.
8-Test run on localhost
9-Browse web root
10-Add system webserver code
11-Select Publish
12-Select Custom Publish
13-Enter FTP credential
14-Select debug configuration
15-Publish
16-Wait for the process to complete.
17-Convert uploaded folder to Application
18-Browse the remote url
1-Create ASP NET 4.6 ProjectGive a name aspnet46 |
2-Select empty projectNo selection for Folders and Core References No selection for Azure Cloud host |
3-Check packages.config |
<?xml version="1.0" encoding="utf-8"?> <packages> <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net46" /> <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net46" developmentDependency="true" /> </packages> |
4-Check web.config |
<?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <system.web> <compilation debug="true" targetFramework="4.6"/> <httpRuntime targetFramework="4.6"/> </system.web> <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/> </compilers> </system.codedom> </configuration> |
5-Add a web formSelect Project_Name/Add/New_Item… |
6-Select Web/Web_FormGive a name home.aspx |
7-Switch to Design mode.Add a text Hello World. |
8-Test run on localhost |
9-Browse web root |
10-Add system webserver code |
<system.webServer> <defaultDocument enabled="true"> <files> <add value="home.aspx" /> </files> </defaultDocument> </system.webServer> |
11-Select Publish |
12-Select Custom PublishEnter profile name e.e. aspnet46_profile |
13-Enter FTP credential |
14-Select debug configuration |
15-Publish |
16-Wait for the process to complete.Observe the messages in the Output window. |
17-Convert uploaded folder to ApplicationIn the server IIS Application window, select the folder and then click the button convert folder to application. |
18-Browse the remote url |
.
No comments:
Post a Comment