Re: [Mono-aspnet-list] Can Default.aspx be renamed

2011-10-06 Thread Nathan Bridgewater
I think you may be confusing the Visual Studio tool with the behavior of a
typical web server. Visual Studio allows you to set the startup page for
debugging and testing. On the flip side, a web server has configured default
documents (typically Default.aspx, index.html, etc).

Alberto has the idea by either checking authentication in the default page
and then redirecting you to a login page.  Another thing you can look at is
using the built-in Asp.Net authentication/authorization functionality, where
you can lock down all your pages except for the login. You can then provide
a default redirect for unauthorized users that will bounce to login.aspx
regardless of what page they try to visit.

http://msdn.microsoft.com/en-us/library/ff647070.aspx will give you a basic
idea of how this works in 2.0 Asp.NET.  4.0 is nearly identical minus the
few unnecessary modules.

You can set specific permissions on urls using the location
path=login.aspx configuration. You would drop a system.web and
authorization to allow all users.

For the default authorization, you would simply set deny users=* under
authorization.

Hope that helps!
-Nathan

2011/10/5 Alberto León leontis...@gmail.com

 The best way is continue using Default.aspx as start page.
 In Default.asxp page_load method you should check if the user is logged /
 authenticated. If not you should redirect to login.aspx

 Another option is put in Default.aspx a login controller...

 Please, read asp.net membership provider articles to have some knowleadge
 about login patterns.



 2011/9/22 nalinirrajan nalinirra...@gmail.com

 Hello all,

 I had developed a project using Visual Studio Web developer Express
 edition.
 The startup page in the project was login.aspx.

 I am now using MonoDevelop. If I build the app and run it, it gives Server
 Error - Resources not found error.

 If I rename login.aspx to Default.aspx it works fine.

 Is there any way of keeping the file name as login.aspx and setting it as
 the startup page ?

 Regards,
 Nalini



 --
 View this message in context:
 http://mono.1490590.n4.nabble.com/Can-Default-aspx-be-renamed-tp3832951p3832951.html
 Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
 ___
 Mono-aspnet-list mailing list
 Mono-aspnet-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-aspnet-list



 ___
 Mono-aspnet-list mailing list
 Mono-aspnet-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


Re: [Mono-dev] Socket.Accept() causes [1]+ Stopped

2011-10-06 Thread ykm
well, i'm afraid I haven't so I could not comment on its usability. But the
whole idea behind asynchonous sockets was to shift the socket programming to
a seperate thread rather than the main thread. And we can achieve it
programmatically.

--
View this message in context: 
http://mono.1490590.n4.nabble.com/Socket-Accept-causes-1-Stopped-tp3847351p3877545.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Error using xsd

2011-10-06 Thread Stefano Canepa
Dear all,
I'm trying to generate a .cs based on an xsd but I get following error:

[s.canepa@proj13 VectorGraphicAnimation]$ xsd Vga.xsd /classes
/namespace:VectorGraphicAnimation /language:CS
System.InvalidCastException: Cannot cast from source type to destination
type.
  at
System.Xml.Serialization.XmlSchemaImporter.CollectAttributeUsesNonOverlap 
(System.Xml.Schema.XmlSchemaObjectCollection
src, System.Xml.Serialization.ClassMap map) [0x0] in filename
unknown:0
  at System.Xml.Serialization.XmlSchemaImporter.ImportAttributes
(System.Xml.XmlQualifiedName typeQName,
System.Xml.Serialization.ClassMap cmap,
System.Xml.Schema.XmlSchemaObjectCollection atts,
System.Xml.Schema.XmlSchemaAnyAttribute anyat,
System.Xml.Serialization.CodeIdentifiers classIds) [0x0] in
filename unknown:0
  at System.Xml.Serialization.XmlSchemaImporter.BuildClassMap
(System.Xml.Serialization.XmlTypeMapping map,
System.Xml.XmlQualifiedName typeQName,
System.Xml.Schema.XmlSchemaComplexType stype) [0x0] in filename
unknown:0
  at System.Xml.Serialization.XmlSchemaImporter.BuildPendingMaps ()
[0x0] in filename unknown:0
  at System.Xml.Serialization.XmlSchemaImporter.ImportTypeCommon
(System.Xml.XmlQualifiedName name, System.Xml.XmlQualifiedName qname,
System.Xml.Schema.XmlSchemaType stype, Boolean isNullable) [0x0] in
filename unknown:0
  at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping
(System.Xml.XmlQualifiedName name) [0x0] in filename unknown:0
  at Mono.Util.Driver.GenerateClasses () [0x0] in filename unknown:0
  at Mono.Util.Driver.Run (System.String[] args) [0x0] in filename
unknown:0
  at Mono.Util.Driver.Main (System.String[] args) [0x0] in filename
unknown:0
[s.canepa@proj13 VectorGraphicAnimation]$

What's going wrong?

If you need I can provide the XSD. Microsoft xsd utility generates a
correct cs I can use with mono but I would like to develop on Linux with
mono.

Bye
Stefano

-- 
Stefano Canepa aka sc: s...@linux.it - http://www.stefanocanepa.it
Three great virtues of a programmer: laziness, impatience and hubris.
Le tre grandi virtù di un programmatore: pigrizia, impazienza e
arroganza. (Larry Wall)
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] Mono tool for Visual studio, How to switch xsp2 to xsp4

2011-10-06 Thread Vovik Bilyachat
Hello Every one
How i can switch debugger to run xsp4 instead of xsp2
Thanks
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] .NET libraries

2011-10-06 Thread Stifu
Hi,

Your DLL may work if:
- It's fully managed (all .NET, no native code / P/Invokes)
- It doesn't have Windows-specific bits (hard-coded paths, etc)
- It doesn't hit Mono-specific bugs or unimplemented stuff

That said, if it fails, I'd usually expect it to fail at run time, not at
compile time. Might be a Mono C# compiler bug (I guess it should at least
fail gracefully, no matter what).


fala70 wrote:
 
 Hi,
 
 Can I used dll .NET libraries builded under windows, and using them on
 Mono Project under Mac ?
 I am trying to do that, but I can't compile I receive the error:
 
 Error - 9.00.41 - C# compiler crashed. Response file
 '/var/folders/m1/lfz2vfhd235g8rks4bhvlw18gn/T/tmp71460652.tmp', stdout
 file '/var/folders/m1/lfz2vfhd235g8rks4bhvlw18gn/T/tmp45dc0931.tmp',
 stderr file
 '/var/folders/m1/lfz2vfhd235g8rks4bhvlw18gn/T/tmp199e4728.tmp'
 


--
View this message in context: 
http://mono.1490590.n4.nabble.com/NET-libraries-tp3877288p3877345.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Is mono 2.10.6 stable?

2011-10-06 Thread Brent Hamilton

The download page of the mono website 
(http://www.go-mono.com/mono-downloads/download.html) says that the latest 
stable version of mono is 2.10.5, however Mono Sources has a Mono 2.10.6 
download available.
Is mono 2.10.6 stable too?  I'm asking because the mono site appears to be 
having less updates (e.g. http://www.mono-project.com/News/).
Thanks,
Dev-Up___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list