[Mono-list] inherits attribute not working on linux mono machine
Madars Vitolins
madars.vitolins at gmail.com
Sun Mar 18 17:23:55 EDT 2007
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 <jyotiseth2001 at gmail.com> 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:madars.vitolins at gmail.com]
> *Sent:* Thursday, March 15, 2007 6:19 PM
> *To:* Jyoti Seth
> *Cc:* mono-list at lists.ximian.com
> *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* < jyotiseth2001 at gmail.com> 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 - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070318/75ba24a7/attachment.html
More information about the Mono-list
mailing list