ASProxy on a linux server

88 views
Skip to first unread message

nameserved

unread,
Oct 4, 2009, 3:10:56 PM10/4/09
to ASProxy
I have a linux server but really want to try asproxy on it.

Can anyone lead me in the right direction to getting it setup ?

Thanks in advance.

SalarSoft

unread,
Oct 9, 2009, 4:55:00 AM10/9/09
to ASProxy
I didn't setup an server with ASProxy by apache and mod_mono myself,
but here you can see more info and tips how to config it:
http://www.mono-project.com/ASP.NET
http://www.mono-project.com/Mod_mono

Also you may cause issues with noscript.aspx, it is not necessary,
remove it if you have problems.

John Alvin Salamat

unread,
Oct 11, 2009, 9:04:07 AM10/11/09
to ASProxy
I have have mod_mono on my linux server and I'm trying to install your
application but I'm having some problems:

The section <authentication> can't be defined in this configuration
file

I tried to remove the <authentication> part of the web.config but it
shows another error which has something to do with <sessionState>. I
removed the tag <authentication> and <sessionstate> in the web.config
and now when I try to access the default.aspx I am being redirected to
your default error page which contains the following text:

Oops!!

Unhandled error!...

I am really interested with your application. Please help me having it
publish on a linux server.

Regards,
Alvin



On Oct 9, 1:55 am, SalarSoft <salarsoftwa...@gmail.com> wrote:
> I didn't setup an server with ASProxy by apache and mod_mono myself,
> but here you can see more info and tips how to config it:http://www.mono-project.com/ASP.NEThttp://www.mono-project.com/Mod_mono

SalarSoft

unread,
Oct 11, 2009, 10:29:49 AM10/11/09
to ASProxy
Can you copy the the exact error message about "authentication" and
"sessionState" which is not defined.
Seems you didn't config your server well.

Did you config apache to work with ASProxy? Do you have xsp installed
on your server?
Have a look on this:
http://www.mono-project.com/ASP.NET

John Alvin Salamat

unread,
Oct 11, 2009, 10:45:53 AM10/11/09
to asp...@googlegroups.com
Hello,

Thanks for the prompt reply. Here is what I have on my web.config

    <authentication mode="Forms">
            <forms name="ASProxyUser" timeout="43200" slidingExpiration="true" protection="All" defaultUrl="~/" loginUrl="~/login.aspx"/>
        </authentication>
   
        <sessionState mode="InProc" timeout="20" cookieName="ASProxySession"/>

And this is what I am receiving in your application when trying to access Default.aspx.

The section <authentication> can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/home/asproxy/public_html/test/web.config line 17)

You can check the website using this link: http://www.asproxy.net:8080/test/Default.aspx

I installed all the required application for the mod_mono to work. I can run a simple aspx page but I'm having problem running ASProxy. Hope you can help me with this.

Regards,
Alvin

SalarSoft

unread,
Oct 11, 2009, 12:42:58 PM10/11/09
to ASProxy
The <authentication> element might be put only in the global
machine.config file or in your application's root directory - if it is
put in web.config in any of the subdirectories, the above error will
be reported.
So move the web.config to the root directory or create a virtual
directory for ASProxy and put anything there.

On Oct 11, 5:45 pm, John Alvin Salamat <prok...@gmail.com> wrote:
> Hello,
>
> Thanks for the prompt reply. Here is what I have on my web.config
>
>     <authentication mode="Forms">
>             <forms name="ASProxyUser" timeout="43200"
> slidingExpiration="true" protection="All" defaultUrl="~/"
> loginUrl="~/login.aspx"/>
>         </authentication>
>
>         <sessionState mode="InProc" timeout="20"
> cookieName="ASProxySession"/>
>
> And this is what I am receiving in your application when trying to access
> Default.aspx.
> *The section <authentication> can't be defined in this configuration file
> (the allowed definition context is 'MachineToApplication').
> (/home/asproxy/public_html/test/web.config line 17)*You can check the
> website using this link:http://www.asproxy.net:8080/test/Default.aspx
>
> I installed all the required application for the mod_mono to work. I can run
> a simple aspx page but I'm having problem running ASProxy. Hope you can help
> me with this.
>
> Regards,
> Alvin
>

John Alvin Salamat

unread,
Oct 11, 2009, 1:09:32 PM10/11/09
to asp...@googlegroups.com
Thanks for that, I reuploaded the page on the root directory and I think that fixed the error for <authentication> and <sessionState> problem of the web.config. But I still can't access the default.aspx as it is redirecting me on your default error page. With the title "Oops! Unhandled Error". Please refer to this URL: http://www.asproxy.net:8080/Default.aspx

I have download the mono version on your website. Hope you can enlighten me more.

Thanks,
Alvin

John Alvin Salamat

unread,
Oct 11, 2009, 1:12:48 PM10/11/09
to asp...@googlegroups.com
My bad, I am trying to access Default.aspx instead of default.aspx. It seems that it's working but I'm having some issues like it always has an error "Failed to process some contents." . http://www.asproxy.net:8080/default.aspx Am I missing something?

Thanks,
Alvin

SalarSoft

unread,
Oct 11, 2009, 1:18:42 PM10/11/09
to ASProxy
Seems there is problem with mono in the new version of ASProxy, i
should work on that.

But as a fast solution change the file "App_Data\EngineProviders.xml"
contents to this:


<?xml version="1.0"?>
<ASPorxyProviders active="Default">

<provider name="Default">
<add name="IEngine"
className="SalarSoft.ASProxy.BuiltIn.ASProxyEngine"></add>
<add name="IWebData"
className="SalarSoft.ASProxy.BuiltIn.WebData"></add>
<add name="ICredentialCache"
className="SalarSoft.ASProxy.BuiltIn.ASProxyCredentialCache"></add>
<add name="ILogSystem"
className="SalarSoft.ASProxy.BuiltIn.LogSystem"></add>
<add name="ICssProcessor"
className="SalarSoft.ASProxy.BuiltIn.CSSProcessor"></add>
<add name="IJSProcessor"
className="SalarSoft.ASProxy.BuiltIn.JSProcessor"></add>
<add name="ICookieManager"
className="SalarSoft.ASProxy.BuiltIn.CookieManager"></add>
<add name="IHtmlProcessor"
className="SalarSoft.ASProxy.BuiltIn.HtmlProcessor"></add>

</provider>

<provider name="Custom">
<add name="" className=""></add>
</provider>

</ASPorxyProviders>

actually the IHtmlProcessor is changed to
SalarSoft.ASProxy.BuiltIn.HtmlProcessor

On Oct 11, 8:12 pm, John Alvin Salamat <prok...@gmail.com> wrote:
> My bad, I am trying to access Default.aspx instead of default.aspx. It seems
> that it's working but I'm having some issues like it always has an
> error "Failed
> to process some contents." .http://www.asproxy.net:8080/default.aspxAm I
> missing something?
>
> Thanks,
> Alvin
>
> On Sun, Oct 11, 2009 at 10:09 AM, John Alvin Salamat <prok...@gmail.com>wrote:
>
> > Thanks for that, I reuploaded the page on the root directory and I think
> > that fixed the error for <authentication> and <sessionState> problem of the
> > web.config. But I still can't access the default.aspx as it is redirecting
> > me on your default error page. With the title "Oops! Unhandled Error".
> > Please refer to this URL:http://www.asproxy.net:8080/Default.aspx
>
> > I have download the mono version on your website. Hope you can enlighten me
> > more.
>
> > Thanks,
> > Alvin
>

SalarSoft

unread,
Oct 11, 2009, 1:19:44 PM10/11/09
to ASProxy
....And restart the application!

On Oct 11, 8:12 pm, John Alvin Salamat <prok...@gmail.com> wrote:
> My bad, I am trying to access Default.aspx instead of default.aspx. It seems
> that it's working but I'm having some issues like it always has an
> error "Failed
> to process some contents." .http://www.asproxy.net:8080/default.aspxAm I
> missing something?
>
> Thanks,
> Alvin
>
> On Sun, Oct 11, 2009 at 10:09 AM, John Alvin Salamat <prok...@gmail.com>wrote:
>
> > Thanks for that, I reuploaded the page on the root directory and I think
> > that fixed the error for <authentication> and <sessionState> problem of the
> > web.config. But I still can't access the default.aspx as it is redirecting
> > me on your default error page. With the title "Oops! Unhandled Error".
> > Please refer to this URL:http://www.asproxy.net:8080/Default.aspx
>
> > I have download the mono version on your website. Hope you can enlighten me
> > more.
>
> > Thanks,
> > Alvin
>

John Alvin Salamat

unread,
Oct 11, 2009, 3:57:19 PM10/11/09
to asp...@googlegroups.com
Just to add up I'm also having problem with download.aspx page. Please let me know what should I do.

Thanks,
Alvin

On Sun, Oct 11, 2009 at 12:47 PM, John Alvin Salamat <pro...@gmail.com> wrote:
It's working fine now. Thank you very much for your help.

John Alvin Salamat

unread,
Oct 11, 2009, 3:47:37 PM10/11/09
to asp...@googlegroups.com
It's working fine now. Thank you very much for your help.

On Sun, Oct 11, 2009 at 10:19 AM, SalarSoft <salarso...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages