Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
one db - multiple websites?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
seanrockster@googlemail.c om  
View profile  
 More options Jun 10 2008, 6:50 am
From: "seanrocks...@googlemail.com" <seanrocks...@googlemail.com>
Date: Tue, 10 Jun 2008 03:50:24 -0700 (PDT)
Local: Tues, Jun 10 2008 6:50 am
Subject: one db - multiple websites?
Hi

sorry if this has been asked before. Is it possible to use ELMAH on
multiple websites using a single database? These sites will be on the
same server.

thanks and regards
Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Atif Aziz  
View profile  
 More options Jun 10 2008, 7:21 am
From: Atif Aziz <Atif.A...@skybow.com>
Date: Tue, 10 Jun 2008 13:21:17 +0200
Local: Tues, Jun 10 2008 7:21 am
Subject: RE: [ELMAH] one db - multiple websites?

Is it possible to use ELMAH on
multiple websites using a single database? These sites will be on the
same server.
<<

Yes, there are two ways to achieve this:

1. You setup each application for ELMAH. This involves dropping the ELMAH binaries into the bin folder of each web site and then making the necessary changes to web.config.

2. You download the sources, strong-name the assembly by signing it (requires re-compilation) and then deploy it into the GAC. You then setup machine.config to enable ELMAH. Since that is inherited, all web site now and in the future will be using ELMAH without further ado.

In either case, you can setup a single SQL Server or Oracle database to log the errors. In case 1, you need to specify the same connection string in the configuration of each application. In case 2, you specify the connection string in the machine.config and this gets inherited by all web applications (with each application still having the option to override it).

Hope this helps,
- Atif


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Schoolcraft  
View profile  
 More options Jun 10 2008, 8:00 am
From: "Jeff Schoolcraft" <jeffrey.schoolcr...@gmail.com>
Date: Tue, 10 Jun 2008 08:00:12 -0400
Local: Tues, Jun 10 2008 8:00 am
Subject: Re: [ELMAH] Re: one db - multiple websites?

Is there an easy way to distinguish between those multiple applications if
they're on the same host?

--
Jeff Schoolcraft
http://thequeue.net/blog/
Microsoft MVP

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Atif Aziz  
View profile  
 More options Jun 10 2008, 8:04 am
From: Atif Aziz <Atif.A...@skybow.com>
Date: Tue, 10 Jun 2008 14:04:24 +0200
Local: Tues, Jun 10 2008 8:04 am
Subject: RE: [ELMAH] Re: one db - multiple websites?

Is there an easy way to distinguish between those multiple applications if they're on the same host?
Yes, this is done automatically, but you can also set an application name in the web.config of each application. For example, if you're using SqlErrorLog, the configuration entry would look like this:

<errorLog type="Elmah.SqlErrorLog, Elmah"
    connectionStringName="..."
    applicationName="WebApp1" />

- Atif

From: elmah@googlegroups.com [mailto:elmah@googlegroups.com] On Behalf Of Jeff Schoolcraft
Sent: Tuesday, June 10, 2008 2:00 PM
To: elmah@googlegroups.com
Subject: [ELMAH] Re: one db - multiple websites?

Is there an easy way to distinguish between those multiple applications if they're on the same host?

On Tue, Jun 10, 2008 at 7:21 AM, Atif Aziz <Atif.A...@skybow.com<mailto:Atif.A...@skybow.com>> wrote:

Is it possible to use ELMAH on
multiple websites using a single database? These sites will be on the
same server.
<<
Yes, there are two ways to achieve this:

1. You setup each application for ELMAH. This involves dropping the ELMAH binaries into the bin folder of each web site and then making the necessary changes to web.config.

2. You download the sources, strong-name the assembly by signing it (requires re-compilation) and then deploy it into the GAC. You then setup machine.config to enable ELMAH. Since that is inherited, all web site now and in the future will be using ELMAH without further ado.

In either case, you can setup a single SQL Server or Oracle database to log the errors. In case 1, you need to specify the same connection string in the configuration of each application. In case 2, you specify the connection string in the machine.config and this gets inherited by all web applications (with each application still having the option to override it).

Hope this helps,
- Atif


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seanrockster@googlemail.c om  
View profile  
 More options Jun 10 2008, 8:28 am
From: "seanrocks...@googlemail.com" <seanrocks...@googlemail.com>
Date: Tue, 10 Jun 2008 05:28:00 -0700 (PDT)
Subject: Re: one db - multiple websites?
thanks!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »