How did you managed to compile it on Mono? Once there was situation that seems that mono compiled aspx.cs files on the fly, but I checked this later and it didn't (may I am missing here something). To compile asp.net 2.0 pages on mono there is problem, that visual studio uses partial classes and this stops gmcs for building up dlls. So I saw that VS2005 generates for each aspx page three files: .aspx .aspx.cs .aspx.designer.cs
So by adding to gmcs *.aspx.cs *.aspx.designer.cs files, it sees the definitions of partial class controls (defined in .aspx.designer.cs) and it could be easily compiled to binary version with gmcs. Later put build binaries in bin directory and that should be fine. I sawed that .aspx.designer.cs Visual Studio 2005 builds in cases of WebApplication, not WebSite. Thanks, Madars. On 3/16/07, Jyoti Seth <[EMAIL PROTECTED]> wrote:
Yes I have tried using binaries and it worked with binaries. But I don't want to use binaries for deployment. While publishing it generates the dll in the bin directory. I have checked that dll also and it has the same Namespace and class which I am using ininherits attribute. I am using visual studio 2005 for development. I have also checked the dllwith Moma tool and it is showing no issue. But still on deploying the same on mono linux server it gives "Cannot find type" error. Please suggest how to deploy the application using inherits attributes without using binaries. Thanks, Jyoti ------------------------------ *From:* Madars Vitolins [mailto:[EMAIL PROTECTED] *Sent:* Thursday, March 15, 2007 6:19 PM *To:* Jyoti Seth *Cc:* [email protected] *Subject:* Re: [Mono-list] inherits attribute not working on linux mono machine Hello, For me on xsp2 it works well, I see on my Default.aspx there is something like this: Inherits="PasswordManager._Default" and it works. Seems that there should be in ./bin directory assembly that contains that namespace and class to which Inherits points. I am using binary from MS build, but I had compiled that stuff with mono, without removing Inherits. You could check is Namespace and Class exists to which Inherits points. Madars. On 3/15/07, *Jyoti Seth* < [EMAIL PROTECTED]> wrote: Hello, I am developing an asp.net application using visual studio 2005 on windows xp. When I deployed an asp.net application in which the page directive uses "inherits" attribute on mono linux server it was throwing an error "Cannot find type". When I removed the "inherits" attribute and then deployed it worked fine. Please let me know if mono supports "inherits" attribute. And what can be the best solution in this case. Thanks, Jyoti _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
