Cal Holman | 1 Jun 02:39 2005

RE: Help with Log4Net

--b

 

Thanks – but I am really struggling with this.  I tried the binding redirect and I am guessing that I am failing because the Maverick.net version of Log4Net does not have a public key the redirect does not work – or I need to supply some other parameter/file.  If you can review the following and let me know how to straighten out:

 

From Maverick:

// Assembly Reference log4net

 

Version:

1.2.0.33710

Name:

log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=null

 

From nHibernate:

// Assembly Reference log4net

 

Version:

1.2.0.30714

Name:

log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

 

 

Added to web.config:

 

    <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

            <dependentAssembly>

               <assemblyIdentity name="log4net"

                                 publicKeyToken="b32731d11ce58905"

                                 culture="neutral"/>

                <bindingRedirect oldVersion="1.2.0.30714"

                                 newVersion="1.2.0.33710"/>

            </dependentAssembly>

       </assemblyBinding>

    </runtime>

 

 

Result when nHibernate is invoked with nHibernate code:

 

 

=== Pre-bind state information ===

LOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

(Fully-specified)

LOG: Appbase = file:///C:/Inetpub/wwwroot/holmansite

LOG: Initial PrivatePath = bin

Calling assembly : (Unknown).

===

 

LOG: Redirect found in application configuration file: 1.2.0.30714 redirected to 1.2.0.33710.

LOG: Publisher policy file is not found.

LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.

LOG: Post-policy reference: log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=b32731d11ce58905

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net.DLL.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net/log4net.DLL.

LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/holmansite/bin/log4net.DLL.

WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Ben Lowery
Sent: Sunday, May 29, 2005 7:58 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

Quite possibly.. in the application that is using both NHibernate and log4net, you'll need to add some bindingRedirects to your app .config file (web.config if you're inside ASP.NET) telling the framework to load your preferred rev of log4net no matter what.  You can find information on binding redirects on MSDN. [1]

 

--b

 

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassemblybindingredirection.asp

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal
Sent: Sunday, May 29, 2005 7:47 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Help with Log4Net

I am hoping some of you had this issue or can recommend a quick solution.  I have Maverick.net working just fine with log4net – including my own application.  But when I add NHibernate I get an error.  NHibernate is using a different version of log4net than Maverick.net.  So is there a simple method in the web.config to point various .dll files to the same version of log4net?  Can I override the version Maverick.net or NHibernate is using?  How do you move to the next version of log4net?

 

 

Cort Schaefer | 1 Jun 07:06 2005

RE: Help with Log4Net

What version of log4net is NHibernate using?

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal Holman
Sent: Tuesday, May 31, 2005 6:40 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

--b

 

Thanks – but I am really struggling with this.  I tried the binding redirect and I am guessing that I am failing because the Maverick.net version of Log4Net does not have a public key the redirect does not work – or I need to supply some other parameter/file.  If you can review the following and let me know how to straighten out:

 

From Maverick:

// Assembly Reference log4net

 

Version:

1.2.0.33710

Name:

log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=null

 

From nHibernate:

// Assembly Reference log4net

 

Version:

1.2.0.30714

Name:

log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

 

 

Added to web.config:

 

    <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

            <dependentAssembly>

               <assemblyIdentity name="log4net"

                                 publicKeyToken="b32731d11ce58905"

                                 culture="neutral"/>

                <bindingRedirect oldVersion="1.2.0.30714"

                                 newVersion="1.2.0.33710"/>

            </dependentAssembly>

       </assemblyBinding>

    </runtime>

 

 

Result when nHibernate is invoked with nHibernate code:

 

 

=== Pre-bind state information ===

LOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

(Fully-specified)

LOG: Appbase = file:///C:/Inetpub/wwwroot/holmansite

LOG: Initial PrivatePath = bin

Calling assembly : (Unknown).

===

 

LOG: Redirect found in application configuration file: 1.2.0.30714 redirected to 1.2.0.33710.

LOG: Publisher policy file is not found.

LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.

LOG: Post-policy reference: log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=b32731d11ce58905

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net.DLL.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net/log4net.DLL.

LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/holmansite/bin/log4net.DLL.

WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Ben Lowery
Sent: Sunday, May 29, 2005 7:58 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

Quite possibly.. in the application that is using both NHibernate and log4net, you'll need to add some bindingRedirects to your app .config file (web.config if you're inside ASP.NET) telling the framework to load your preferred rev of log4net no matter what.  You can find information on binding redirects on MSDN. [1]

 

--b

 

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassemblybindingredirection.asp

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal
Sent: Sunday, May 29, 2005 7:47 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Help with Log4Net

I am hoping some of you had this issue or can recommend a quick solution.  I have Maverick.net working just fine with log4net – including my own application.  But when I add NHibernate I get an error.  NHibernate is using a different version of log4net than Maverick.net.  So is there a simple method in the web.config to point various .dll files to the same version of log4net?  Can I override the version Maverick.net or NHibernate is using?  How do you move to the next version of log4net?

 

 

Cal Holman | 1 Jun 13:00 2005

RE: Help with Log4Net

From NHibernate:

// Assembly Reference log4net

 

Version:

1.2.0.30714

Name:

log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

 

 

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cort Schaefer
Sent: Wednesday, June 01, 2005 1:07 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

What version of log4net is NHibernate using?

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal Holman
Sent: Tuesday, May 31, 2005 6:40 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

--b

 

Thanks – but I am really struggling with this.  I tried the binding redirect and I am guessing that I am failing because the Maverick.net version of Log4Net does not have a public key the redirect does not work – or I need to supply some other parameter/file.  If you can review the following and let me know how to straighten out:

 

From Maverick:

// Assembly Reference log4net

 

Version:

1.2.0.33710

Name:

log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=null

 

From nHibernate:

// Assembly Reference log4net

 

Version:

1.2.0.30714

Name:

log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

 

 

Added to web.config:

 

    <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

            <dependentAssembly>

               <assemblyIdentity name="log4net"

                                 publicKeyToken="b32731d11ce58905"

                                 culture="neutral"/>

                <bindingRedirect oldVersion="1.2.0.30714"

                                 newVersion="1.2.0.33710"/>

            </dependentAssembly>

       </assemblyBinding>

    </runtime>

 

 

Result when nHibernate is invoked with nHibernate code:

 

 

=== Pre-bind state information ===

LOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

(Fully-specified)

LOG: Appbase = file:///C:/Inetpub/wwwroot/holmansite

LOG: Initial PrivatePath = bin

Calling assembly : (Unknown).

===

 

LOG: Redirect found in application configuration file: 1.2.0.30714 redirected to 1.2.0.33710.

LOG: Publisher policy file is not found.

LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.

LOG: Post-policy reference: log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=b32731d11ce58905

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net.DLL.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net/log4net.DLL.

LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/holmansite/bin/log4net.DLL.

WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Ben Lowery
Sent: Sunday, May 29, 2005 7:58 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

Quite possibly.. in the application that is using both NHibernate and log4net, you'll need to add some bindingRedirects to your app .config file (web.config if you're inside ASP.NET) telling the framework to load your preferred rev of log4net no matter what.  You can find information on binding redirects on MSDN. [1]

 

--b

 

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassemblybindingredirection.asp

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal
Sent: Sunday, May 29, 2005 7:47 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Help with Log4Net

I am hoping some of you had this issue or can recommend a quick solution.  I have Maverick.net working just fine with log4net – including my own application.  But when I add NHibernate I get an error.  NHibernate is using a different version of log4net than Maverick.net.  So is there a simple method in the web.config to point various .dll files to the same version of log4net?  Can I override the version Maverick.net or NHibernate is using?  How do you move to the next version of log4net?

 

 

Mihalcea Vlad | 4 Jun 20:26 2005
Picon

Hi guys

I have a question regarding the forward commands. I
have a controller that stores some messages in a
special model, and it forward the response to another
command. The problem is that this forward clears the
model, so if i have a problem in the first controller,
i can't see the error message i set, in the final view
that was choosen by the second controller. There is a
special feature that i missed to add in the
maverick.config file?

Vlad - le createur de bien-etre.

		
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Cal Holman | 4 Jun 23:32 2005

RE: Help with Log4Net

Cort>> Any suggestions on how to use log4net, Maverick.Net and NHibernate in the same solution?

 

 

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cort Schaefer
Sent: Wednesday, June 01, 2005 1:07 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

What version of log4net is NHibernate using?

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal Holman
Sent: Tuesday, May 31, 2005 6:40 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

--b

 

Thanks – but I am really struggling with this.  I tried the binding redirect and I am guessing that I am failing because the Maverick.net version of Log4Net does not have a public key the redirect does not work – or I need to supply some other parameter/file.  If you can review the following and let me know how to straighten out:

 

From Maverick:

// Assembly Reference log4net

 

Version:

1.2.0.33710

Name:

log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=null

 

From nHibernate:

// Assembly Reference log4net

 

Version:

1.2.0.30714

Name:

log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

 

 

Added to web.config:

 

    <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

            <dependentAssembly>

               <assemblyIdentity name="log4net"

                                 publicKeyToken="b32731d11ce58905"

                                 culture="neutral"/>

                <bindingRedirect oldVersion="1.2.0.30714"

                                 newVersion="1.2.0.33710"/>

            </dependentAssembly>

       </assemblyBinding>

    </runtime>

 

 

Result when nHibernate is invoked with nHibernate code:

 

 

=== Pre-bind state information ===

LOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken=b32731d11ce58905

(Fully-specified)

LOG: Appbase = file:///C:/Inetpub/wwwroot/holmansite

LOG: Initial PrivatePath = bin

Calling assembly : (Unknown).

===

 

LOG: Redirect found in application configuration file: 1.2.0.30714 redirected to 1.2.0.33710.

LOG: Publisher policy file is not found.

LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).

LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.

LOG: Post-policy reference: log4net, Version=1.2.0.33710, Culture=neutral, PublicKeyToken=b32731d11ce58905

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net.DLL.

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/holmansite/5bf290d5/6092c187/log4net/log4net.DLL.

LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/holmansite/bin/log4net.DLL.

WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Ben Lowery
Sent: Sunday, May 29, 2005 7:58 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Help with Log4Net

 

Quite possibly.. in the application that is using both NHibernate and log4net, you'll need to add some bindingRedirects to your app .config file (web.config if you're inside ASP.NET) telling the framework to load your preferred rev of log4net no matter what.  You can find information on binding redirects on MSDN. [1]

 

--b

 

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconassemblybindingredirection.asp

 

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Cal
Sent: Sunday, May 29, 2005 7:47 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Help with Log4Net

I am hoping some of you had this issue or can recommend a quick solution.  I have Maverick.net working just fine with log4net – including my own application.  But when I add NHibernate I get an error.  NHibernate is using a different version of log4net than Maverick.net.  So is there a simple method in the web.config to point various .dll files to the same version of log4net?  Can I override the version Maverick.net or NHibernate is using?  How do you move to the next version of log4net?

 

 

Walter Wang | 5 Jun 17:15 2005
Picon

newbie question - where to put redirect destination

hi,

i have two web forms, search.aspx and result.aspx.

when a user clicks on the search button, i would like the page be 
redirected to the result page.
in my maverick.config, i have the following codes:

        <command name="Search">
            <controller class="MySearchController, MyCore" />
            <view name="Success" path="Search.aspx"/>
        </command>   

        <command name="Result">
            <view path="Result.aspx">
            </view>
        </command>

in my search button click event, i put:

Response.Redirect((string)Context.Items["Destination"]);

in my controller (inherited from Throwaway ), i put this in the perform:
        public override string Perform()
        {
            this.ControllerContext.HttpContext.Items.Add("Destination", 
"Result.m");
            return "Success";
        }

But it appears that the destination is never passed to the search form. 
it always throws null exception when converting the context item to string.
how should i go about to do the redirection?
in the controller, which form does the context refer to? the search form?
one last question: is there a tutorial somewhere on how to use maverick 
and how to create controllers?

thanks for any advice..
Walter

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
Mihalcea Vlad | 6 Jun 09:48 2005
Picon

Re: Mavnet-user digest, Vol 1 #205 - 1 msg

In Maverick.NET you have full support for redirect views. All you have to do is to take a look on the Frienbook example, u'll find some redirects there. You don;t habve to use the response.redirect() command, but to declare the result view as type="redirect", and give the path="YourResultPage.aspx" 

mavnet-user-request <at> lists.sourceforge.net wrote:
Send Mavnet-user mailing list submissions to
mavnet-user <at> lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/mavnet-user
or, via email, send a message with subject or body 'help' to
mavnet-user-request <at> lists.sourceforge.net

You can reach the person managing the list at
mavnet-user-admin <at> lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Mavnet-user digest..."


Today's Topics:

1. newbie question - where to put redirect destination (Walter Wang)

--__--__--

Message: 1
Date: Mon, 06 Jun 2005 01:15:21 +1000
To: mavnet-user <at> lists.sourceforge.net
From: Walter Wang
Subject: [Mavnet-user] newbie question - where to put redirect destination
Reply-To: mavnet-user <at> lists.sourceforge.net

hi,

i have two web forms, search.aspx and result.aspx.

when a user clicks on the search button, i would like the page be
redirected to the result page.
in my maverick.config, i have the following codes:











in my search button click event, i put:

Response.Redirect((string)Context.Items["Destination"]);

in my controller (inherited from Throwaway ), i put this in the perform:
public override string Perform()
{
this.ControllerContext.HttpContext.Items.Add("Destination",
"Result.m");
return "Success";
}

But it appears that the destination is never passed to the search form.
it always throws null exception when converting the context item to string.
how should i go about to do the redirection?
in the controller, which form does the context refer to? the search form?
one last question: is there a tutorial somewhere on how to use maverick
and how to create controllers?

thanks for any advice..
Walter



--__--__--

_______________________________________________
Mavnet-user mailing list
Mavnet-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mavnet-user


End of Mavnet-user Digest

Yahoo! Mail
Stay connected, organized, and protected. Take the tour
Mihalcea Vlad | 9 Jun 17:49 2005
Picon

(no subject)


Maverick>net has 2 types of controllers : Throwaway and aspxController. If u want to use the throwaway controllers than ur viws can't work with the aspx dyna mic event driven web components. If u use the aspxcontroller, u can do this but in this case u are not actually using a real MVC pattern, u are just mixing aspx and mvc. I have done the arhitecture of a major .NET application, and beleive me i used the throwaway type controllers even if i coudn't use the event driven web controls, and it was great. I am more a java fun than a .Net one, and i believe in the java way of doing enterprise applications. U can see the calendat example if u want a aspxcontroller example.

Discover Yahoo!
Get on-the-go sports scores, stock quotes, news & more. Check it out!
Neateye | 30 Jun 20:08 2005
Picon

Gouranga

Call out Gouranga be happy!!!
Gouranga Gouranga Gouranga ....
That which brings the highest happiness!!

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click

Gmane