Hello,
I have an application on my desktop where I have hardcoded the connection
string. Now I need to move the application to our test webserver. Here I need
to use the server.mappath method to connect to the database. The database is
in the same directory as the new application named gwis. Hence the database
is in the gwis directory in the test webserver. I made the changes in my
connection string as follows:
myDSN="DRIVER={Microsoft Access Driver (*.mdb)}; "
'myDSN=myDSN & "DBQ=C:\_______GWISBRANDNEWREADY3\GMISDATA.mdb "
myDSN = myDSN & "DBQ=" & Server.MapPath("/gwisbrandnewready3/GMISDATA.mdb"
Set CN=server.createobject("ADODB.Connection")
CN.Open myDSN
Set RS = Server.CreateObject("ADODB.Recordset")
RS.ActiveConnection=CN
The old hardcoded string is commented out. However, with this change, the
application is not still working.
It goes through the verify.asp routine. However, it displays the following
message:
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be
displayed.
HTTP 500 - Internal server error
Any help is appreciated in advance. Thanks. 4 1502
Disable "simplied http errors" in your IE config so that you see the exact
error...
Patrice
--
"Jack" <Ja**@discussions.microsoft.com> a écrit dans le message de
news:07**********************************@microsof t.com... Hello, I have an application on my desktop where I have hardcoded the connection string. Now I need to move the application to our test webserver. Here I
need to use the server.mappath method to connect to the database. The database
is in the same directory as the new application named gwis. Hence the
database is in the gwis directory in the test webserver. I made the changes in my connection string as follows:
myDSN="DRIVER={Microsoft Access Driver (*.mdb)}; " 'myDSN=myDSN & "DBQ=C:\_______GWISBRANDNEWREADY3\GMISDATA.mdb " myDSN = myDSN & "DBQ=" & Server.MapPath("/gwisbrandnewready3/GMISDATA.mdb" Set CN=server.createobject("ADODB.Connection") CN.Open myDSN
Set RS = Server.CreateObject("ADODB.Recordset") RS.ActiveConnection=CN
The old hardcoded string is commented out. However, with this change, the application is not still working. It goes through the verify.asp routine. However, it displays the following message:
The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed.
HTTP 500 - Internal server error
Any help is appreciated in advance. Thanks.
Thanks Patrice for your suggestion. I already got it.
"Patrice" wrote: Disable "simplied http errors" in your IE config so that you see the exact error...
Patrice
--
"Jack" <Ja**@discussions.microsoft.com> a écrit dans le message de news:07**********************************@microsof t.com... Hello, I have an application on my desktop where I have hardcoded the connection string. Now I need to move the application to our test webserver. Here I need to use the server.mappath method to connect to the database. The database is in the same directory as the new application named gwis. Hence the database is in the gwis directory in the test webserver. I made the changes in my connection string as follows:
myDSN="DRIVER={Microsoft Access Driver (*.mdb)}; " 'myDSN=myDSN & "DBQ=C:\_______GWISBRANDNEWREADY3\GMISDATA.mdb " myDSN = myDSN & "DBQ=" & Server.MapPath("/gwisbrandnewready3/GMISDATA.mdb" Set CN=server.createobject("ADODB.Connection") CN.Open myDSN
Set RS = Server.CreateObject("ADODB.Recordset") RS.ActiveConnection=CN
The old hardcoded string is commented out. However, with this change, the application is not still working. It goes through the verify.asp routine. However, it displays the following message:
The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed.
HTTP 500 - Internal server error
Any help is appreciated in advance. Thanks.
So that means your problem is solved?
Jack wrote: Thanks Patrice for your suggestion. I already got it.
"Patrice" wrote:
Disable "simplied http errors" in your IE config so that you see the exact error...
Patrice
--
"Jack" <Ja**@discussions.microsoft.com> a écrit dans le message de news:07**********************************@microsof t.com... Hello, I have an application on my desktop where I have hardcoded the connection string. Now I need to move the application to our test webserver. Here I need to use the server.mappath method to connect to the database. The database is in the same directory as the new application named gwis. Hence the database is in the gwis directory in the test webserver. I made the changes in my connection string as follows:
myDSN="DRIVER={Microsoft Access Driver (*.mdb)}; " 'myDSN=myDSN & "DBQ=C:\_______GWISBRANDNEWREADY3\GMISDATA.mdb " myDSN = myDSN & "DBQ=" & Server.MapPath("/gwisbrandnewready3/GMISDATA.mdb" Set CN=server.createobject("ADODB.Connection") CN.Open myDSN
Set RS = Server.CreateObject("ADODB.Recordset") RS.ActiveConnection=CN
The old hardcoded string is commented out. However, with this change, the application is not still working. It goes through the verify.asp routine. However, it displays the following message:
The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed.
HTTP 500 - Internal server error
Any help is appreciated in advance. Thanks.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Thanks Bob for asking. Actually, my problem is resolved here. However,
I have a different problem which I posted in the database section which is
yet to
be resolved. It is about connecting from asp to a database located in a
different
server. Regards.
"Bob Barrows [MVP]" wrote: So that means your problem is solved?
Jack wrote: Thanks Patrice for your suggestion. I already got it.
"Patrice" wrote:
Disable "simplied http errors" in your IE config so that you see the exact error...
Patrice
--
"Jack" <Ja**@discussions.microsoft.com> a écrit dans le message de news:07**********************************@microsof t.com... Hello, I have an application on my desktop where I have hardcoded the connection string. Now I need to move the application to our test webserver. Here I need to use the server.mappath method to connect to the database. The database is in the same directory as the new application named gwis. Hence the database is in the gwis directory in the test webserver. I made the changes in my connection string as follows:
myDSN="DRIVER={Microsoft Access Driver (*.mdb)}; " 'myDSN=myDSN & "DBQ=C:\_______GWISBRANDNEWREADY3\GMISDATA.mdb " myDSN = myDSN & "DBQ=" & Server.MapPath("/gwisbrandnewready3/GMISDATA.mdb" Set CN=server.createobject("ADODB.Connection") CN.Open myDSN
Set RS = Server.CreateObject("ADODB.Recordset") RS.ActiveConnection=CN
The old hardcoded string is commented out. However, with this change, the application is not still working. It goes through the verify.asp routine. However, it displays the following message:
The page cannot be displayed There is a problem with the page you are trying to reach and it cannot be displayed.
HTTP 500 - Internal server error
Any help is appreciated in advance. Thanks.
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
...
|
by: Tom |
last post by:
I have a .net v2 asp.net problem.
I develop on my workstation and deploy to a production server.
I use compile on demand, so no pre-compile is done.
When I deploy, I first must move in my new or...
|
by: antonyliu2002 |
last post by:
I was able to view table content easily before, but after I
reinstalled everything, I cannot find the option to view table content
in MS SQL Server Express. I can define table with no problem. ...
|
by: DressageRider |
last post by:
I need your help. Desperately. Someone has to be able to fix the utter balls up I've made after dinking around in Flash for the last four days.
I have no prior knowledge of anything other than...
|
by: Fawad Ahsan |
last post by:
Hi
i am having problem with the microsoft enterprise library. i have uploaded
the site to the hosting server and it gives the following error
it works well in my server. can some one help me...
|
by: =?Utf-8?B?RGVubmlzIE1jQ2FydGh5?= |
last post by:
I am trying to add users to the default ASP.NET membership provider (SQL
Express) using the ASP.NET Configuration Tool.
When I launch the ASP.NET Configuration Tool from the Web Site menu in...
|
by: =?Utf-8?B?V2FubmFiZQ==?= |
last post by:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionState is set to true, either
in a...
|
by: php_mysql_beginer911 |
last post by:
Hi .. hope someone will help
i am trying to figure it out why i cannot post string "union select"
every time i try to post data which content union and select ..
the page doesn't get posted and...
|
by: Miro |
last post by:
I am going throug a vb 2005 book, but I am using vs 2008 professional, and I
cant seem to find a menu option its talking about.
I am wondering if this has moved - i cannot seem to find it for the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |