[Mono-list] inherits attribute not working on linux mono machine
Stephen March
steve at enerds.ca
Tue Mar 20 02:27:37 EDT 2007
I had a similar error on deploying a Visual Studio 2005 developed site on my
mono 1.2.3-1 installation for Linux (using RHEL rpms). It would not
resolve classes placed in the App_Code\ directory and would give the
annoying cannot find type error.
Example:
My-app-root
App_Code\
MyMembershipProvider.cs
I had to grab the latest mono / xsp / mod_mono source from the Subversion
repository and do a manual compile. Once I did this it worked by deploying
my custom classes to the App_Code\ directory instead of manually compiling
as a binary and placing it into the Bin\ directory
Hope this helps (thanks Mike)
Cheers,
~Stephen
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Juan C. Olivares
Sent: Sunday, March 18, 2007 3:13 PM
To: Jyoti Seth
Cc: mono-list at lists.ximian.com
Subject: Re: [Mono-list] inherits attribute not working on linux mono
machine
Common mistakes with ASP.NET deployment:
1.- Place a "Bin" directory instead of "bin"
2.- Don't place all the required DLLs in the bin dierctory (or GAC)
3.- Running xsp[2], not configuring the --aplications parameter (or
application in the root dierctory)
4.- Running mod-mono, not configuring the MonoApplications directive (more
info with man mod_mono)
Juan C. Olivares
www.juancri.com
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 in
inherits attribute.
I am using visual studio 2005 for development. I have also checked the dll
with 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
<mailto: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
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
--
Juan Cristóbal Olivares
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070320/43501399/attachment.html
More information about the Mono-list
mailing list