PC Review


Reply
Thread Tools Rate Thread

Deploying service tier resources and referencing their filepath

 
 
Richard Collette
Guest
Posts: n/a
 
      8th Sep 2008
I have a web application which references a service tier class
library/assembly. The service tier assembly takes a domain object,
serializes it to xml and then performs a translation to generate HTML. To do
so, the service class utilizes a .xslt file.

1. How do I get the service tier .xslt file to be included in the web
application build without making the .xlst file an embedded resource? When
debugging, the .xslt file is not copied to the web application bin folder (or
any other web related folder) despite trying various settings such as
content/resource and copy always.
2. Once that is accomplished, how do I get XslCompiledTransform to load the
..xlst file without using MapPath. Since this is a service tier library, it
should not have a dependency on the hosting model or any aspect of the tier
it is running in. I prefer not to have to place a full physical path in
the settings file.

I realize I can put the .xslt file in App_Data and pass a filepath string
into the service class to tell it where to load the .xslt file. However,
that takes an implementation detail out of the service tier and puts it in
the service's client which it should not.

Thank you in advance for your help.
Rich
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Referencing/Deploying SQLCE3.1 with VS2008 chris-s@mailcity.com Microsoft Dot NET Compact Framework 1 17th Jan 2008 03:01 PM
File.Exists(filePath) always returns false in release mode if filePath contains a white space snow Microsoft VB .NET 12 14th Feb 2007 06:17 AM
How to update .net components in an XML Service N-Tier app? =?Utf-8?B?TmljZQ==?= Microsoft C# .NET 3 28th Dec 2005 03:02 PM
How to handle versioning, referencing, building, and deploying assemblies for multiple releases loretta.stokes@gmail.com Microsoft Dot NET 1 17th Feb 2005 07:27 PM
Deploying Web Service to my hosting service's server PocketDeveloper Microsoft Dot NET Compact Framework 1 19th Jul 2004 06:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:28 AM.