Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi. I have just opened a system in my employer's folder which was created by the previous developer about 5 years ago.

However, I am having a hard time checking where the connection string is set up
Can you help me identify where it is coming from/setup?

Here is the connection string set up in web.config

Webconfig Connection String Setup

Here is the page that is referring to the unknown connection string

Default.aspx

And then i tried to "go to Definition " of SupplyConnectionString and I was referred to this.

Dropbox - DLL ConnectionStr.JPG[^]

I tried to navigate through that directory of
C#
App_Code.kkxexofb.dll


but I did not find the file.

Any help please?

What I have tried:

I tried to find the file but had no luck
Posted
Updated 7-Mar-16 19:46pm
v2

1 solution

Web.config file contains 2 definitions of connection string:

  1. SUPPLYConStr
  2. conString
 
Share this answer
 
Comments
bjay tiamsic 8-Mar-16 18:29pm    
Yes I understand. but in my page, it refers to the connectionstring "SupplyConnectionString" which is not in web.config
Maciej Los 9-Mar-16 1:54am    
SUPPLYConStr is that what you're looking for. SupplyConnectionString is the name of variable which holds SUPPLYConStr value.
bjay tiamsic 9-Mar-16 18:45pm    
Thanks for the comment. But it seems like it is not.
As you can see in SUPPLYConStr is Datasource=server31/... (this is a test server)

But when I put breakpoint in Default.aspx ConnectionString.SupplyConnectionString, it returns DataSource=[IPAddress]...which is the live server.

Here's the screen cap
https://www.dropbox.com/s/o3xyub97kywmzq4/Untitled.png?dl=0
Maciej Los 10-Mar-16 1:43am    
It doesn't prove i'm wrong. Web based applications settings may be different (development to deployment). Please, read this: How to: Transform Web.config When Deploying a Web Application Project[^]
bjay tiamsic 10-Mar-16 20:09pm    
But why does it return different connectionstring when I put breakpoint?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900