Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Wheres the "exe"?

Ok, say I have a web project set up. I debug it with VS and it runs like a well-oiled machine. However, if I attempt to open the files individually with internet explorer, it's just text, no running controls or anything.

I have determined that there is more than likely a running file I have to go through and it will access the different pages for me when it's published on my server.

I have successfully created this exe through IIS. However, I haven't the faintest where this exe is. If I've created it, how would I be able to get to it from another computer just browsing the site? I go to the individual aspx pages from another computer and they're there, but again, no text. What gives? Where is this exe? All I know is that VS uses something at runtime that I am not. What is it?
[829 byte] By [Mobius] at [2007-11-11 8:28:54]
# 1 Re: Wheres the "exe"?
The EXE is IIS. Your application compiles to a DLL in the \bin folder under your project directory.

When you say that you "open the files individually with internet explorer," what do you mean? In order for your application to work, you must navigate to the pages via a Web server, e.g., http://localhost/projectname/default.aspx, rather than through the file system.
Phil Weber at 2007-11-11 23:13:11 >
# 2 Re: Wheres the "exe"?
Okay, you used something called "default.aspx". Is this what I need to type in, regardless of what I want my default page to be? I tried this and it said it cannot find the page specified. The dll is also in the project folder.

The page I am talking about isn't actually running. It's just text. To see it, do a Select All because the text showed up as black instead of white, while the background stayed black, so you can't see anything unless you highlight it first. Click here (http://www.algorithminc.com/oswalt/dramapage/dramaforumhome.aspx) to go to the page.
Mobius at 2007-11-11 23:14:11 >
# 3 Re: Wheres the "exe"?
You can either specify the start page for the application or omit the page reference altogether if you have configured your app for a default page. Phil just used default.aspx as an example.

As he also mentioned, the application executable (DLL) belongs in the bin folder of your project.
pclement at 2007-11-11 23:15:16 >
# 4 Re: Wheres the "exe"?
Thanks. I just need to know if I navigate to the DLL or an aspx page. If I have the DLL, which I do, do I need to use it in the URL bar?
Mobius at 2007-11-11 23:16:16 >
# 5 Re: Wheres the "exe"?
There is no need to specify the DLL. Use of the DLL is handled via the .NET Framework.
pclement at 2007-11-11 23:17:15 >
# 6 Re: Wheres the "exe"?
Cool, then what do I specify in the URL bar?
Mobius at 2007-11-11 23:18:14 >
# 7 Re: Wheres the "exe"?
You specify the name of the .aspx page you want to view. At the top of the .aspx file, in the @Page directive, there should be an Inherits attribute which refers to the name of the code-behind class. This class is implemented in a .cs file, and gets compiled into your project's DLL.
Phil Weber at 2007-11-11 23:19:13 >
# 8 Re: Wheres the "exe"?
You specify the name of the .aspx page you want to view. At the top of the .aspx file, in the @Page directive, there should be an Inherits attribute which refers to the name of the code-behind class. This class is implemented in a .cs file, and gets compiled into your project's DLL.

Just remember, your not pointing to the ASPX file in your project directory, but the one via the IIS site.
edburdo at 2007-11-11 23:20:16 >