aspx web page

BabyJam

New Member
Messages
9
Reaction score
0
Points
0
I have a Default.aspx file on my server, Basically hello world :frown: but when I open my browser and point to the url it asks me to download instead of opening. Can someone please help.

I have edited my htaccess file and added the following.
AddType application/mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
 

kbjradmin

New Member
Messages
512
Reaction score
2
Points
0
i'm not exactly an expert on asp, but do you need any sort of language binaries to use an asp page?
 

BabyJam

New Member
Messages
9
Reaction score
0
Points
0
I have a test directory, in here is a test.aspx file and a web.config file. there is a sub directory that also contains a test.dll and a test.pdp. I created the webpage using visual studio 2005 and then used MoMa to ensure that the dll file was ok for mono.

Don't know if this helps???:eek4:
 

nightscream

New Member
Messages
948
Reaction score
0
Points
0
for aspx you need IIS server installed on the webpage. Not every webhost provides this.
I don't think x10hosting provide IIS, only apache(php)
 

BabyJam

New Member
Messages
9
Reaction score
0
Points
0
I thought that's what mono was for and thats why you declare that you want mono to open these pages in the htaccess file. Im no good at this stuff maybe I should just give up :eek4:
 

kbjradmin

New Member
Messages
512
Reaction score
2
Points
0
so, you are telling the system that you want to open .aspx pages with this program 'mono'. i'm not sure about this, but i think ther is a way to, not change what the file is run with, but simply tell it that it needs to pre-read through the file on the server before sending it to the computer. you shouldn't need to to run it with a different program, right?

again, i'm not sure; so no promises.
 

Jeremia0

New Member
Messages
30
Reaction score
0
Points
0
The current method for mono to work is not working (at least for me). File a support ticket and wait for a response.
 

Submariner

New Member
Messages
44
Reaction score
1
Points
0
Here is a quote from the MONO page (Mono Guidelines:Application Portability):

Developing on Windows, running on Unix
You can continue to use Visual Studio to develop your applications on Windows, the binaries produced by Visual Studio are binary compatible with Mono, so you only need to get these files to your Linux/Unix server.

You can do this by either manually copying the files (a directory, using XCopy deployment is probably the easiest), but ideally you would want to have a network share between Unix and Windows:

  • You could mount from Linux, a Windows share.
  • You could mount from Windows, a Linux share.

Important Visual Studio can produce "incremental" executables, these are executables that do not have some of their tables compressed, and they are used by Visual Studio during development.

These assemblies do not work with Mono, as Mono does not support them, you must turn off "incremental" builds.

The incremental option can be set from the Project's Configuration/Advanced properties.

Based on this I would also ensure you have the setting for incremental building disabled.

James
 
Top