Solved

how to run ASP Nuke???

Posted on 2004-03-27
6
499 Views
Last Modified: 2012-06-27
Can Anyone tell me how to setup and use ASP Nuke?

Currently I have just installed SQL Server and mapped the ASP Nuke directory to IIS. But when I browse index.asp I get the following error:

Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
Invalid connection string attribute
/anuke/lib/ado_lib.asp, line 87

file ado_lib
-----------------

Sub adoConnect()
      ' open a connection to the database
      Set adoConnection = Server.CreateObject("ADODB.Connection")
      If adoDebug Then Response.Write("CONNECTION: " & Application("adoConn_ConnectionString") & "<BR><BR>")
      ' connection timeout and command timeout are not supported for OLEDB
      ' adoConnection.ConnectionTimeout = Application("adoConn_ConnectionTimeout")
      ' adoConnection.CommandTimeout = Application("adoConn_CommandTimeout")
'~~~~~~~~~ Line 87 follows~~~~~~~~~~
      adoConnection.Open Application("adoConn_ConnectionString")      
End Sub

Then I checked global.asa and here is its code:

global.asa
---------------------
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Const asaConnectionTimeout = 500
Const asaCommandTimeout = 1000

Const asaConnectionString = "Provider=SQLOLEDB;server=127.0.0.1;driver={SQL Server};uid=yourdbusername;pwd=yourdbpassword;database=yourdbname;"
</script>

so tell me what to do and where to go from here....

500 globes will be awarded....thanks..

Khurram.
0
Comment
Question by:khurram007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 21

Expert Comment

by:ap_sajith
ID: 10697872
Const asaConnectionString = "Provider=SQLOLEDB;server=127.0.0.1;driver={SQL Server};uid=yourdbusername;pwd=yourdbpassword;database=yourdbname;"


Change the above string to....

Const asaConnectionString = "Provider=sqloledb;Data Source=ServerName; Initial Catalog=DBName;UID=UserID;PWD=Password"

And pass the correct values for the ServerName,DBName,UserID and Password Parameters.

Cheers!
0
 
LVL 2

Author Comment

by:khurram007
ID: 10698390
can u provide me a sample code...

if
Server Name = localhost or 127.0.0.1
Dbname        = master.mdf
userid           = sa (default)
password      = (default... i m not sure what is the default password)

You are just a line of code away from 500 globes!!!

Khurram

0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10698884
It is better to leave it as is - odbc syntax.

Are you used master database??? It is not supposed to be used for user databases it is system one. Probably it is possible anyway...
I suggest you to make new database and execute the sql script for creation there.
Default sa password is empty - no password

Const asaConnectionString = "Provider=SQLOLEDB;server=127.0.0.1;driver={SQL Server};uid=sa;pwd=;database=master;"
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 21

Assisted Solution

by:ap_sajith
ap_sajith earned 250 total points
ID: 10701507
IF you are running the SQL server in the same server as IIS, then  you can use 127.0.0.1 or localhost to refer the SQL server. Otherwise, if the SQL server is installed in a different server, then you can provide the Server Name parameter with the IP address of the SQL server box.

eg:
Const asaConnectionString = "Provider=sqloledb;Data Source=10.91.5.178; Initial Catalog=Pubs;UID=sa;PWD="

Hope this helps...

Cheers!
0
 
LVL 6

Accepted Solution

by:
BAlexandrov earned 250 total points
ID: 10701623
I have not seen that they was mixed actually (oledb and odbc)

You have mixed them also!

I've said to keep odbc because the spplication may depend on that but they are mixed already so - oledb is better (if application can run with it)

OLEDB Syntax:
Const asaConnectionString = "Provider=sqloledb;Data Source=10.91.5.178;Initial Catalog=Pubs;User ID=sa;Password="

ODBC Syntax:
Const asaConnectionString =  "Driver={SQL Server};Server=10.91.5.178;Database=Pubs;Uid=sa;Pwd="

See the difference?

Bojidar Alexandrov
0
 
LVL 2

Author Comment

by:khurram007
ID: 10701862
well it seems like some othere problem with ASP Nuke... It still not working for me... I created a new page, a new connection to db and checked out the connection. And it is working there... so may be some other problem... I am posting another question for ASP Nuke with ANOTHER 500 GLOBES!!!

While you both invested precious amount with exactly same no. of msgs, I am splitting 500 points with 250 each for you. See u in the next question...

Thanks,

Khurram.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question