[Mono-aspnet-list] System.Web.UI problem

Daniel Lo Nigro lists at dan.cx
Sun Jul 7 13:59:50 UTC 2013


The .cs files are compiled into the assembly (.dll file) at compile time
and aren't needed at runtime :)

If you do Build -> Publish in Visual Studio and publish into a temporary
directory, this will give you the bare minimum files required to deploy the
site. This generally includes the .aspx files, Web.config, the whole bin
folder, any assets (for example, CSS, JavaScript and images), and any other
files your server-side code reads at runtime. For deployment with Mono I
usually publish into a temp directory via MSBuild, and then rsync the temp
directory to the server.


On Sun, Jul 7, 2013 at 11:55 PM, Wardell Castles
<wardellcastles at yahoo.com>wrote:

> All,
>
> I figured out my problem.   Not only are the *.cs files required from VS
> in Linux but also the /bin/*.dll file from VS.
>
> Apparently, mono knows that System.Web.UI can be found in the bin/*.dll
> file.
>
> So in order to get the site to work, one needs all the *.cs files in the
> site's directory AND ALSO the application's dll in a bin subdirectory.    I
> am not sure where this is specifically stated, so I am stating it here for
> others that may have the same problem in the future.
>
> Thanks to all for their input!
>
> Now on to making some more aspx sites on Linux!!!
>
> (Actually I am doing this on my Raspberry Pi.   It makes for a great low
> power low-volume web server running Apache).
>
>   ------------------------------
>  *From:* Daniel Lo Nigro <lists at dan.cx>
> *To:* Wardell Castles <wardellcastles at yahoo.com>
> *Cc:* "mono-aspnet-list at lists.ximian.com" <
> mono-aspnet-list at lists.ximian.com>
> *Sent:* Sunday, July 7, 2013 6:31 AM
> *Subject:* Re: [Mono-aspnet-list] System.Web.UI problem
>
> How are you compiling the site? What commands are you using?
>
>
> On Sun, Jul 7, 2013 at 9:30 AM, Wardell Castles <wardellcastles at yahoo.com>wrote:
>
> Hi all,
>
> I have an ASPX application that I am trying to compile.  It's my first one
> on mod-mono.  However I am getting the error "The type or namespace 'UI'
> does not exist in the namespace 'System.Web. Are you missing an assembly
> reference"
>
> In Googling the net, I see others have had this problem.  However I
> haven't seen any replies to these posts.
>
> Can someone clue me in on what I need to do to fix this?
>
> It seems to me in the Mono documentation, that System.Web.UI has been
> around Mono for a long time.
>
> Regards,
> Wardell
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130707/75b41a17/attachment.html>


More information about the Mono-aspnet-list mailing list