Mono WebForms: setting the default page to start when debugging starts

Is it possible to set a default page to start when debugging starts? In Visual Studio, you can set the default page either through the context menu in Solution Explorer or in the project properties. I did not find something like this in MonoDevelop. When I start debugging, the browser will always look for the root of the application.

http://localhost:8080 

Since the XSP does not have a default setting for this application, I get an error message and always fix it manually.

 http://localhost:8080/home.aspx 

Thank you for your help.

+4
source share
1 answer

I have found a solution. I did not find xsp.exe.config, but it also works when you add this parameter globally to machine.config (being in / etc / mono / [version]) or when creating the web.config file in the root of the application. Values ​​are separated by a comma.

 <appSettings> <add key="MonoServerDefaultIndexFiles" value="Home.aspx, home.aspx" /> </appSettings> 

The help page http://www.mono-project.com/Config does not tell you that the appSettings section is allowed, but I think the documentation is simply incomplete. For example, appSettings are used here http://www.mono-project.com/ASP.NET_Settings_Mapping#Inhibiting_the_settings_mapping .

+7
source

All Articles