

#Appcode folder in asp.net code
Block all source code on left pane and copy them to the right paneĪlternative 2, Create a new website with web location of HTTP.Choose Local IIS or FTP or Remote and then click create new web application icon name it ‘AspNetCode’.🙂Īlternative 1, you can right click website app at solution explorer and then click copy website. Try again with url: (without aspapp part because aspnetcode is virtual dir now) then it is ok now. Browse to ‘AspNetCode’ folder and then make sure you choose ‘write’ and ‘execute’ checkbox, finish.Open IIS and create new virtual directory and names alias as ‘AspNetCode’.The solution is quite simple, make this ‘AspNetCode’ web app folder as a virtual directory. So if I access the web app with url: then it should be ok but I was wrong. Let’s try using users point of view via IIS.įYI, I have IIS virtual directory ‘aspapp’ and this web app location is in folder ‘AspNetCode’ under ‘aspapp’ virtual dir. So, when this website launched via Visual Studio no error occured.

The page contains Hello World text without error. Right click Default.aspx from solution explorer and then view in browser.So when page is load the msg label control text will be set to ‘Hello World’ Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load At Code behind Default.aspx write inside Page_load event:.

Hello class have one function only to return ‘Hello World’:
#Appcode folder in asp.net .dll
dll file in Bin folder.Īlternatively classes may be write inside WebService. Net classes or bussiness objects inside App_Code or using compiled library.
