Click here to Skip to main content
15,921,941 members
Home / Discussions / Database
   

Database

 
GeneralRe: building a query for finding a value Pin
Colin Angus Mackay13-Mar-08 1:39
Colin Angus Mackay13-Mar-08 1:39 
GeneralRe: building a query for finding a value Pin
Khawar Abbas113-Mar-08 0:02
Khawar Abbas113-Mar-08 0:02 
GeneralRe: building a query for finding a value Pin
laziale13-Mar-08 0:10
laziale13-Mar-08 0:10 
GeneralRe: building a query for finding a value Pin
Khawar Abbas113-Mar-08 0:19
Khawar Abbas113-Mar-08 0:19 
GeneralRe: building a query for finding a value Pin
laziale13-Mar-08 0:33
laziale13-Mar-08 0:33 
GeneralRe: building a query for finding a value Pin
Colin Angus Mackay13-Mar-08 1:45
Colin Angus Mackay13-Mar-08 1:45 
GeneralOracle to SQL Server 2005 Migration Pin
dasrimk12-Mar-08 21:23
dasrimk12-Mar-08 21:23 
QuestionClassic ASP with Enterprise Library -Data Block Pin
Neville12-Mar-08 21:12
Neville12-Mar-08 21:12 
Heres the scenario...

An ASP Page calls a c# component registered using regasm /tlb seehash.dll

I know the registration of the dll has gone fine because for testing purposes the dll just returned a simple string 'IamSeeHash' which got displayed on the asp page. Then I went back to my seehash.dll, uncommented the following line
Database db = DatabaseFactory.CreateDatabase();
and recompiled the dll and re-registered it again.

now I get the error 'Object reference not set to an instance of an object.'

I figure this could be because the config file cant be located by the asp process, so I created a copy of the config files in the SystemRoot%\System32 directory as 'dllhost.exe.config' and also 'asp.dll.config'
another copy named as 'index.asp.config' in the asp pages root directory. still I get the same error


I even went back to my seehash.dll and modified the line to add the specific database name
Database db = DatabaseFactory.CreateDatabase("MyDb");
then it says cant locate the database in the configuration file

What is going wrong? Confused | :confused: Please help. Sigh | :sigh:

Thanks.


<b>+Heres my config file +</b>

<configuration>
<configSections>
<section
name="dataConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,
Microsoft.Practices.EnterpriseLibrary.Data" />
</configSections>

<connectionStrings>
<add
name="MyDb"
providerName="System.Data.SqlClient"
connectionString=
"server=(local)\SQLEXPRESS;
database=MyDb;
UID=sa;PWD=usa;" />
</connectionStrings>

<dataConfiguration defaultDatabase="MyDb"/>
</configuration>


<b>+Heres my folder structure +</b>

For the asp page
C:\Inetpub\wwwroot\simpleAspSite

For the dlls (all referenced dlls of the datablock are in this directory)
c:\mydlls\seehash.dll

I am continually amazed by how little code is required to use atomic clocks in satellites 11,000 miles above my head.
GeneralFinding SQL Server Licensing Information Pin
sandeepkavade12-Mar-08 21:10
sandeepkavade12-Mar-08 21:10 
QuestionHow do hierarchy SELECT statement... Pin
RYU^^12-Mar-08 12:46
RYU^^12-Mar-08 12:46 
AnswerRe: How do hierarchy SELECT statement... Pin
Syed Mehroz Alam12-Mar-08 19:38
Syed Mehroz Alam12-Mar-08 19:38 
GeneralRe: How do hierarchy SELECT statement... Pin
RYU^^12-Mar-08 20:25
RYU^^12-Mar-08 20:25 
GeneralRe: How do hierarchy SELECT statement... Pin
Syed Mehroz Alam12-Mar-08 20:52
Syed Mehroz Alam12-Mar-08 20:52 
GeneralRe: How do hierarchy SELECT statement... Pin
Khawar Abbas112-Mar-08 21:53
Khawar Abbas112-Mar-08 21:53 
GeneralRe: How do hierarchy SELECT statement... Pin
Syed Mehroz Alam12-Mar-08 23:22
Syed Mehroz Alam12-Mar-08 23:22 
GeneralRe: How do hierarchy SELECT statement... Pin
RYU^^13-Mar-08 12:33
RYU^^13-Mar-08 12:33 
GeneralRe: How do hierarchy SELECT statement... Pin
RYU^^13-Mar-08 12:41
RYU^^13-Mar-08 12:41 
GeneralRe: How do hierarchy SELECT statement... Pin
RYU^^13-Mar-08 12:52
RYU^^13-Mar-08 12:52 
GeneralExpression Builder Help! Pin
Karma3125112-Mar-08 6:24
Karma3125112-Mar-08 6:24 
Generaljavascript and database Pin
young34512-Mar-08 4:36
young34512-Mar-08 4:36 
GeneralRe: javascript and database Pin
Colin Angus Mackay12-Mar-08 4:59
Colin Angus Mackay12-Mar-08 4:59 
GeneralRe: javascript and database Pin
Paul Conrad12-Mar-08 5:45
professionalPaul Conrad12-Mar-08 5:45 
GeneralRe: javascript and database Pin
young34512-Mar-08 6:47
young34512-Mar-08 6:47 
Generalget changes of programaticaly changed rows Pin
baranils12-Mar-08 3:39
baranils12-Mar-08 3:39 
GeneralObject reference not set to an instance of an object. in ms-sql express vb.net Pin
r_mohd12-Mar-08 2:31
r_mohd12-Mar-08 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.