# Configuration of an ASP.NET Web Application

**URL:** <https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [May 27, 2004, 12:30am UTC](https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171 "2004-05-27T00:30:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rabia](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Rabia](https://techcommunity.softwareag.com/u/Rabia)\
**Post date:** [May 27, 2004, 12:30am UTC](https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171/1 "2004-05-27T00:30:36Z")

</div>

Our CSD team has currently started developing [ASP.NET](http://ASP.NET) applications on Windows 2000 server using EntireX V7.1.1.30.   
  
The application seem to be getting default service settings (RPC/SRV1/CALLNAT)if run on the production server. However does successfully access the targeted Broker and Service on an OS/390 mainframe if it is run in debug mode.   
  
We tried setting the server and broker ids in web.config, but had no success here.  
  
Would you know why the application behaves different when run in debug mode?  
  
Thanks in advance,  
Rabia Hidirlar

---

<div class="post-metadata">

**Author:** ![Dietmar\_Gartner](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dietmar_gartner/32/127_2.png) [@Dietmar\_Gartner](https://techcommunity.softwareag.com/u/Dietmar_Gartner)\
**Post date:** [June 1, 2004, 4:06pm UTC](https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171/2 "2004-06-01T16:06:49Z")

</div>

Hi Rabia,  
  
I cannot find any information that could explain why your application behaves different when run in debug mode. Is this problem still there? If, yes, can you provide more info about your application. Does the Broker name property specified in web.config work as expected?  
  
Regards, Dietmar.

---

<div class="post-metadata">

**Author:** ![Rabia](https://avatars.discourse-cdn.com/v4/letter/r/6f9a4e/32.png) [@Rabia](https://techcommunity.softwareag.com/u/Rabia)\
**Post date:** [June 2, 2004, 11:42pm UTC](https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171/3 "2004-06-02T23:42:00Z")

</div>

Hallo Dietmar,  
  
I am not sure, if we are handling this in a correct manner??!  
  
While generating the client via the Workbench, we set the values for Broker anme and service etc… The generated stub contains the correct settings:  
 [EntireXVersion(“7.1.1.30”)]  
 [Library(“TRKLIB”)]  
 [Broker(“ETBRKR”)]  
 [Service(“RPC/SRVZAMU/CALLNAT”)]  
 public class Trklib : ServiceHolder  
  
IS this not sufficient or is it still required to maintain the settings in web.config?   
  
Thanks ,  
Rabia

---

<div class="post-metadata">

**Author:** ![Dietmar\_Gartner](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dietmar_gartner/32/127_2.png) [@Dietmar\_Gartner](https://techcommunity.softwareag.com/u/Dietmar_Gartner)\
**Post date:** [June 3, 2004, 3:36pm UTC](https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171/4 "2004-06-03T15:36:34Z")

</div>

Hello Rabia,  
  
the default attributes (Broker, Service, Library) take effect when  
no values are provided to the constructor or in the App.config  
(or Web.config) file.  
  
Example:  
 Broker b = new Broker();  
  
 The the implementation of the default constructor Broker(),  
 as it gets no value for the Broker ID, first tries to find a  
 value in the App.config/Web.config file. If it does not find  
 one there it tries to get a value from the [Broker(“…”)]  
 attribute and if this also fails it takes the hard-wired default  
 value “localhost:1971”. Similar behaviour for Service and Library.  
  
So, the answer to your question is: No, you do not need to provide  
an App.config file (or Web.config entries). The runtime uses the  
intelligence described above to get the required values.  
  
However, the most flexible method is to have these properties configured  
in an App.config / Web.config to be able to alter them without changing  
code.  
  
Regards, Dietmar.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/configuration-of-an-asp-net-web-application/59171/5 "2021-04-02T14:39:41Z")

</div>


