initial commit
This commit is contained in:
commit
252dac3143
1516 changed files with 694271 additions and 0 deletions
8
Troubleshooting/OnlineHelp.js
Normal file
8
Troubleshooting/OnlineHelp.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
function ShowHelp(section) {
|
||||
version = "9.2.0"
|
||||
url = "http://www.ironspeed.com/Designer/" + version + "/WebHelp/" + section
|
||||
newwindow = window.open(url,'name','left=100,top=100,scrollbars=yes,resizable=yes,menubar=yes,location=yes,status=yes,titlebar=yes,toolbar=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
54
Troubleshooting/Readme.txt
Normal file
54
Troubleshooting/Readme.txt
Normal file
|
@ -0,0 +1,54 @@
|
|||
|
||||
The Troubleshooting folder in your application contains a number of web pages
|
||||
that test various aspects of your configuration to make sure that everything
|
||||
is working correctly.
|
||||
|
||||
|
||||
PURPOSE:
|
||||
|
||||
These tests use generic Microsoft .NET Framework code. No Iron Speed Designer
|
||||
specific code is used in these tests. A test that fails generally indicates a
|
||||
configuration problem with your system.
|
||||
|
||||
|
||||
DELETE AFTER DEPLOYMENT:
|
||||
|
||||
Once your application has been tested and deployed, this folder can be deleted
|
||||
in its entirety without any problems. No part of your application is dependent
|
||||
on any files in this folder.
|
||||
|
||||
|
||||
TESTS INCLUDED:
|
||||
|
||||
The following tests are included in the system.
|
||||
|
||||
Test0: Calls Response.Write ASPX function to test if a basic ASPX page can be
|
||||
displayed. If this test fails then most likely Microsoft .NET Framework is not
|
||||
installed or not configured properly.
|
||||
|
||||
Test1: A more advanced Microsoft .NET Framework test. This test prints out
|
||||
a number of server variables indicating the version of Microsoft .NET Framework,
|
||||
the version of the browser, etc. If this test fails, then most likely
|
||||
Microsoft .NET Framework is not installed or configured properly.
|
||||
|
||||
Test2: This test checks to see if the Microsoft Access database can be properly
|
||||
accessed and used by your application. If this test fails, then it could be
|
||||
because (1) the virtual directory has not been created; (2) the user account
|
||||
under which your application is running does not have read/write access to the
|
||||
Microsoft Access database file or folder; or (3) the user account does not
|
||||
have read/write access to the temporary folder of your Windows server.
|
||||
|
||||
Test3: This test checks to see if you can access the Microsoft SQL Server database.
|
||||
If this test fails, then it could be because (1) you are using Windows Authentication
|
||||
in Impersonate mode and the SQL Server and is located on a different machine
|
||||
(double hops are not allowed); (2) you are using Windows Authentication
|
||||
in Impersonate mode and the user connecting to the application does not have
|
||||
access to the SQL Server; (3) you are using SQL Server authentication and your
|
||||
server does not recognize the user name and password.
|
||||
|
||||
In all of these cases, you can search the Knowledge Base with the text of
|
||||
the error message to find a solution to the problem. The knowledge base is
|
||||
available at http://www.ironspeed.com/kb.
|
||||
|
||||
Updated: 9/21/2005
|
||||
|
87
Troubleshooting/Test0.aspx
Normal file
87
Troubleshooting/Test0.aspx
Normal file
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Run Microsoft .NET Framework (Basic) Test</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest() {
|
||||
url = "Test0Do.aspx"
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Microsoft .NET Framework Installation Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Run this test to see if you have Microsoft .NET Framework installed.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Run Microsoft .NET Framework Installation Test Now" onclick="return DoTest();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
<input type="button" value="Go to Next Test" onclick="parent.location='Test1.aspx'" />
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ASPX_HTML_is_Displayed_Instead_of_Your_Application.htm');return false;">ASPX (HTML) is Displayed Instead of Your Application</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Parser_Error_Unrecognized_attribute_validateRequest.htm');return false;">Configuration Error: Unrecognized attribute 'validateRequest'...</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/HTTP_Error_403_-_Forbidden_You_are_not_authorized_to_view_this_page.htm');return false;">HTTP Error 403 - Forbidden. You are not authorized to view this page...</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/HTTP_Error_404_-_Page_Not_Found.htm');return false;">HTTP Error 404 - Page Not Found</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/HTTP_Error_500_-_Page_Cannot_be_Displayed.htm');return false;">HTTP Error 500 - Page cannot be displayed...</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Application_Error_Messages.htm#Application_Error');return false;">Lookup additional error messages...</a>
|
||||
<br /><br />
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
17
Troubleshooting/Test0Do.aspx
Normal file
17
Troubleshooting/Test0Do.aspx
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Test Failed -->
|
||||
<%@ Page Language="cs" AutoEventWireup="false" Debug="true" %>
|
||||
<% Response.Write("Test Successful!"); %>
|
||||
<br />
|
||||
<input type="button" value="Close Window" onclick="javascript:window.close();" />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
89
Troubleshooting/Test1.aspx
Normal file
89
Troubleshooting/Test1.aspx
Normal file
|
@ -0,0 +1,89 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Run Microsoft .NET Framework (Advanced) Test</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest() {
|
||||
url = "Test1Do.aspx"
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Microsoft .NET Framework Configuration Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Run this test to check if the Microsoft .NET Framework is configured properly.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Run Microsoft .NET Framework Configuration Test Now" onclick="return DoTest();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
<input type="button" value="Go to Next Test" onclick="parent.location='Test2.aspx'" />
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ASPX_HTML_is_Displayed_Instead_of_Your_Application.htm');return false;">ASPX (HTML) is Displayed Instead of Your Application</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Parser_Error_Unrecognized_attribute_validateRequest.htm');return false;">Configuration Error: Unrecognized attribute 'validateRequest'...</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/HTTP_Error_403_-_Forbidden_You_are_not_authorized_to_view_this_page.htm');return false;">HTTP Error 403 - Forbidden. You are not authorized to view this page...</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/HTTP_Error_404_-_Page_Not_Found.htm');return false;">HTTP Error 404 - Page Not Found</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/HTTP_Error_500_-_Page_Cannot_be_Displayed.htm');return false;">HTTP Error 500 - Page cannot be displayed...</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Server_Application_Unavailable.htm');return false;">Server Application Unavailable</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/System_IO_FileNotFoundException.htm');return false;">System.IO.FileNotFoundException</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Application_Error_Messages.htm#Application_Error');return false;">Lookup additional error messages...</a>
|
||||
<br /><br />
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
125
Troubleshooting/Test1Do.aspx
Normal file
125
Troubleshooting/Test1Do.aspx
Normal file
|
@ -0,0 +1,125 @@
|
|||
<!--
|
||||
Test Failed.
|
||||
|
||||
We tested whether you can execute a very simple ASPX page containing
|
||||
a Response.Write statement.
|
||||
|
||||
If you see this text displayed in your browser window, it means that
|
||||
this test has failed. Go back to the previous window and look at
|
||||
possible fixes for this problem.
|
||||
-->
|
||||
<%@ Page Language="cs" AutoEventWireup="false" Debug="true" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Run ASPX Test Results</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<%
|
||||
Response.Write("Testing Microsoft .NET Framework...");
|
||||
%>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
<%
|
||||
if (Request.Browser.Type.StartsWith("IE")) {
|
||||
// Internet Explorer
|
||||
if ((System.Environment.Version.ToString().StartsWith("2.0.50727")
|
||||
|| System.Environment.Version.ToString().StartsWith("3.0.4506")
|
||||
|| System.Environment.Version.ToString().StartsWith("3.5.21022")
|
||||
|| System.Environment.Version.ToString().StartsWith("3.5.30729")
|
||||
|| System.Environment.Version.ToString().StartsWith("4.0.30319")) &&
|
||||
((Request.Browser.MajorVersion >= 5 && Request.Browser.MinorVersion >= 5) ||
|
||||
Request.Browser.MajorVersion >= 6)) {
|
||||
Response.Write("Test Successful!");
|
||||
//Response.Write("<br /><br />The primary version of the Microsoft .NET Framework installed on your system is " +
|
||||
// System.Environment.Version.ToString());
|
||||
} else {
|
||||
Response.Write("<span class=\"description_node\">");
|
||||
Response.Write("<font color=\"red\"><b>Test Failed.</b></font><br /><br />");
|
||||
if (!System.Environment.Version.ToString().StartsWith("2.0.50727")
|
||||
&& !System.Environment.Version.ToString().StartsWith("3.0.4506")
|
||||
&& !System.Environment.Version.ToString().StartsWith("3.5.21022")
|
||||
&& !System.Environment.Version.ToString().StartsWith("3.5.30729")
|
||||
&& !System.Environment.Version.ToString().StartsWith("4.0.30319") ) {
|
||||
Response.Write("The primary version of the Microsoft .NET Framework installed on your system is " +
|
||||
System.Environment.Version.ToString() +
|
||||
".<br /><br />Applications created with Iron Speed Designer currently require either " +
|
||||
"Microsoft .NET Framework 2.0 (2.0.50727), or<br />" +
|
||||
"Microsoft .NET Framework 3.0 (3.0.4506), or<br />" +
|
||||
"Microsoft .NET Framework 3.5 (3.5.21022), or<br />" +
|
||||
"Microsoft .NET Framework 3.5 (3.5.30729), or<br />" +
|
||||
"Microsoft .NET Framework 4.0 (4.0.30319).");
|
||||
}
|
||||
if (!((Request.Browser.MajorVersion >= 5 && Request.Browser.MinorVersion >= 5) ||
|
||||
Request.Browser.MajorVersion >= 6)) {
|
||||
Response.Write("The version of the browser you are using is." + Request.Browser.Version + "<br />");
|
||||
}
|
||||
Response.Write("</span>");
|
||||
}
|
||||
} else {
|
||||
// Firefox, Netscape or some other browser.
|
||||
Response.Write("Test Successful!");
|
||||
Response.Write("<br /><br /><span class=\"description_node\">");
|
||||
Response.Write("It seems you are using a browser other than Microsoft Internet Explorer.<br />");
|
||||
Response.Write("It seems you can run .NET applications, but we could not test your specific version of Microsoft .NET Framework.<br />");
|
||||
Response.Write("If you encounter problems, please try the Version Check utility on the previous page.<br />");
|
||||
Response.Write("</span>");
|
||||
|
||||
}
|
||||
%>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
.NET Framework Version (Client): <%=System.Environment.Version%>
|
||||
<br />
|
||||
Browser Version: <%=Request.Browser.Version%>
|
||||
<br />
|
||||
Operating System: <%=Request.Browser.Platform%>
|
||||
<br />
|
||||
Browser String: <%=Request.ServerVariables["http_user_agent"]%>
|
||||
<br />
|
||||
Browser Language: <%=Request.ServerVariables["http_accept_language"]%>
|
||||
<br />
|
||||
Browser Type: <%=Request.Browser.Type %>
|
||||
<br />
|
||||
Browser Beta: <%=Request.Browser.Beta%>
|
||||
<br />
|
||||
Supports ActiveX controls: <%=Request.Browser.ActiveXControls %>
|
||||
<br />
|
||||
Supports Cookies: <%=Request.Browser.Cookies%>
|
||||
<br />
|
||||
Supports Frames: <%=Request.Browser.Frames%>
|
||||
<br />
|
||||
Supports HTML Tables: <%=Request.Browser.Tables%>
|
||||
<br />
|
||||
Supports Java Applets: <%=Request.Browser.JavaApplets%>
|
||||
<br />
|
||||
Supports Java Scripts: <%=Request.Browser.EcmaScriptVersion%>
|
||||
<br />
|
||||
Supports MS DOM Version: <%=Request.Browser.MSDomVersion%>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Close Window" onclick="javascript:window.close();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
101
Troubleshooting/Test2.aspx
Normal file
101
Troubleshooting/Test2.aspx
Normal file
|
@ -0,0 +1,101 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Test 2</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest2() {
|
||||
if (document.getElementById('DatabaseRadioButton').checked) database = ""
|
||||
else database = document.forms[0]['File'].value
|
||||
|
||||
url = "Test2Do.aspx?Database=" + database + "&Table=" + document.forms[0]['Table'].value
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
function GoToURL(url) {
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Microsoft Access Connection Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Run this test if your application uses Microsoft Access. Otherwise <a href="Test3.aspx">Go to Next Test</a>.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left:20px">
|
||||
<input type="radio" id="DatabaseRadioButton" name="DatabaseRadioButton" value="Default" checked="checked" /> Default database file (TestConfiguration.mdb, Customers table)<br />
|
||||
<input type="radio" id="DatabaseRadioButton2" name="DatabaseRadioButton" value="New" /> Your database file: <input type="file" name="File" value="Browse" size="35" class="description_node" /><br />
|
||||
|
||||
Database table: <input type="text" name="Table" class="description_node" /> First 5 rows will be displayed from this table.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Run Microsoft Access Connection Test Now" onclick="return DoTest2();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
<input type="button" value="Go to Next Test" onclick="parent.location='Test3.aspx'" />
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Localhost_is_Not_Properly_Configured.htm');return false;">Localhost is Not Properly Configured</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Cannot_Connect_to_Your_Database.htm');return false;">Cannot Connect to Your Database</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ASP_NET_User_Does_Not_Have_Permissions_to_Your_Application_Folder.htm');return false;">ASP.NET User Does Not Have Permissions to Your Application Folder</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Microsoft_Jet_OLEDB_4_0_provider_is_not_registered.htm');return false;">'Microsoft.Jet.OLEDB.4.0' provider is not registered...</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b>
|
||||
<br />
|
||||
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
140
Troubleshooting/Test2Do.aspx
Normal file
140
Troubleshooting/Test2Do.aspx
Normal file
|
@ -0,0 +1,140 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Microsoft Access Connection Test Results</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<%@ Page Language="vb" AutoEventWireup="false"%>
|
||||
<script language="VB" runat="server">
|
||||
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
'=============================================================================================
|
||||
' CHANGE ONLY THE FOLLOWING SIX STRINGS
|
||||
'=============================================================================================
|
||||
Dim ServerName As String = "TestConfiguration.mdb"
|
||||
Dim DatabaseName As String = "TestConfiguration"
|
||||
Dim Trusted As String = "no" ' "yes" if using Windows Authentication
|
||||
Dim UserId As String = "sa"
|
||||
Dim Password As String = ""
|
||||
Dim SQLQuery As String = "SELECT TOP 5 * FROM "
|
||||
Dim TableName As String = "Customers"
|
||||
'=============================================================================================
|
||||
'=============================================================================================
|
||||
|
||||
If Request.QueryString("database") <> "" Then
|
||||
ServerName = Request.QueryString("database")
|
||||
If Request.QueryString("table") <> "" Then
|
||||
TableName = "[" & Request.QueryString("table") & "]"
|
||||
End If
|
||||
Else
|
||||
' Determine the full path of the default file.
|
||||
' We assume the default file is in the same folder as this file.
|
||||
Dim appDir As String = System.Web.HttpContext.Current.Server.MapPath(".")
|
||||
ServerName = System.IO.Path.Combine(appDir, ServerName)
|
||||
End If
|
||||
|
||||
SQLQuery += TableName
|
||||
|
||||
ServerNameLabel.Text = ServerName
|
||||
TableNameLabel.Text = TableName
|
||||
|
||||
' EVERYTHING BELOW SHOULD WORK AS IS WITHOUT ANY CHANGES
|
||||
|
||||
' Use a string variable to hold the ConnectionString.
|
||||
Dim connectString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
|
||||
"Data Source=" & ServerName & ";"
|
||||
|
||||
' Create an OleDbConnection object,
|
||||
' and then pass in the ConnectionString to the constructor.
|
||||
Dim cn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(connectString)
|
||||
|
||||
'Open the connection.
|
||||
cn.Open()
|
||||
|
||||
' Create an OleDbCommand object.
|
||||
' Notice that this line passes in the SQL statement and the OleDbConnection object.
|
||||
Dim cmd As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand(SQLQuery, cn)
|
||||
|
||||
' Send the CommandText to the connection, and then build an OleDbDataReader.
|
||||
' Note: The OleDbDataReader is forward-only.
|
||||
Dim reader As System.Data.OleDb.OleDbDataReader = cmd.ExecuteReader()
|
||||
|
||||
' Loop through the resultant data selection and add the data value
|
||||
' for each respective column in the table.
|
||||
Dim r As Integer
|
||||
For r = 1 to 5
|
||||
If (reader.Read()) Then
|
||||
Dim row As TableRow = New TableRow
|
||||
Dim cell As TableCell
|
||||
|
||||
cell = New TableCell
|
||||
cell.Text = "<b>" & r & "</b>"
|
||||
row.Cells.Add(cell)
|
||||
|
||||
Dim c As Integer
|
||||
For c = 0 To reader.FieldCount-1
|
||||
cell = New TableCell
|
||||
cell.Text = reader(c).ToString()
|
||||
row.Cells.Add(cell)
|
||||
Next c
|
||||
|
||||
'Add the new row to the table.
|
||||
DisplayTable.Rows.Add(row)
|
||||
End If
|
||||
|
||||
Next r
|
||||
|
||||
Result.Text = "Test Successful!"
|
||||
|
||||
' Close the reader and the related connection.
|
||||
reader.Close()
|
||||
cn.Close()
|
||||
End Sub
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="Form1" method="post" runat="server">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
<b><asp:label id="Result" runat="server" Text="Test Failed"/></b><br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Check to make sure up to five rows of data are displayed from the Microsoft Access database.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Database File: <asp:Label Id="ServerNameLabel" runat="server"/><br />
|
||||
Database Table: <asp:Label Id="TableNameLabel" runat="server"/>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Table id="DisplayTable" runat="server" CellSpacing="0" CellPadding="3"
|
||||
GridLines="Both"
|
||||
BorderStyle="Solid"
|
||||
BorderWidth="1"></asp:Table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Close Window" onclick="javascript:window.close();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
138
Troubleshooting/Test3.aspx
Normal file
138
Troubleshooting/Test3.aspx
Normal file
|
@ -0,0 +1,138 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Microsoft SQL Server Connection Test</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest3() {
|
||||
if (document.getElementById('TrustedConnection_0').checked) trusted = "yes"
|
||||
else trusted = "no"
|
||||
|
||||
url = "Test3Do.aspx?server=" + document.forms[0]['ServerName'].value +
|
||||
"&database="+ document.forms[0]['DatabaseName'].value +
|
||||
"&trusted=" + trusted +
|
||||
"&user=" + document.forms[0]['UserName'].value +
|
||||
"&password=" + document.forms[0]['Password'].value +
|
||||
"&table=" + document.forms[0]['TableName'].value
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank" runat=server>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Microsoft SQL Server Connection Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
This test is to ensure that your application can connect to a Microsoft SQL Server database.
|
||||
<br /><br />
|
||||
Please provide the Microsoft SQL Server name, database name, whether to use Windows Authentication, user name, password and the name of a database table.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align:right; width: 140px;">Server Name</td>
|
||||
<td style="width: 180px;"><asp:textbox id="ServerName" runat="server" Text="(local)" CssClass="description_node"/></td>
|
||||
<td style="width: 280px;">Specify (local) if using a local machine.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Database Name</td>
|
||||
<td><asp:textbox id="DatabaseName" runat="server" Text="Northwind" CssClass="description_node"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right;">Trusted Connection</td>
|
||||
<td>
|
||||
<asp:RadioButtonList id="TrustedConnection" runat="server">
|
||||
<asp:ListItem Value="yes" selected="True">Windows Authentication</asp:ListItem>
|
||||
<asp:ListItem Value="no">SQL Server Authentication</asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">User Name</td>
|
||||
<td><asp:textbox id="UserName" runat="server" Text="sa" CssClass="description_node"/></td>
|
||||
<td>Only if using SQL Server Authentication.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Password</td>
|
||||
<td><asp:textbox id="Password" runat="server" TextMode="Password" CssClass="description_node"/></td>
|
||||
<td>Only if using SQL Server Authentication.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Database Table</td>
|
||||
<td><asp:textbox id="TableName" runat="server" Text="Products" CssClass="description_node"/></td>
|
||||
<td>(e.g., Products). First 5 rows will be displayed from this table.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" value="Run Microsoft SQL Server Connection Test Now" onclick="return DoTest3();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="600">
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
<input type="button" value="Go to Next Test" onclick="parent.location='Test4.aspx'" />
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Database_Permission_Settings_or_Path_Are_Not_Configured_Properly.htm');return false;">Database Permission Settings or Path Are Not Configured Properly</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Localhost_is_Not_Properly_Configured.htm');return false;">Localhost is Not Properly Configured</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Cannot_Connect_to_Your_Database.htm');return false;">Cannot Connect to Your Database</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ASP_NET_User_Does_Not_Have_Permissions_to_Your_Application_Folder.htm');return false;">ASP.NET User Does Not Have Permissions to Your Application Folder</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Application_Runs_But_No_Data_is_Displayed.htm#Application_Runs_But_No');return false;">Lookup additional error messages...</a>
|
||||
<br /><br />
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
158
Troubleshooting/Test3Do.aspx
Normal file
158
Troubleshooting/Test3Do.aspx
Normal file
|
@ -0,0 +1,158 @@
|
|||
<%@ Page Language="vb" AutoEventWireup="false" Debug="true" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>SQL Server Connection Test Results</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<script language="VB" runat="server">
|
||||
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
'=============================================================================================
|
||||
' CHANGE ONLY THE FOLLOWING SIX STRINGS
|
||||
'=============================================================================================
|
||||
Dim ServerName As String = "(local)"
|
||||
Dim DatabaseName As String = "Northwind"
|
||||
Dim Trusted As String = "no" ' "yes" if using Windows Authentication
|
||||
Dim UserId As String = "sa"
|
||||
Dim Password As String = ""
|
||||
Dim SQLQuery As String = "SELECT TOP 5 * FROM "
|
||||
Dim TableName As String = "Customer"
|
||||
'=============================================================================================
|
||||
'=============================================================================================
|
||||
|
||||
If Request.QueryString("server") <> "" Then
|
||||
ServerName = Request.QueryString("server")
|
||||
End If
|
||||
|
||||
If Request.QueryString("database") <> "" Then
|
||||
DatabaseName = Request.QueryString("database")
|
||||
End If
|
||||
|
||||
If Request.QueryString("trusted") <> "" Then
|
||||
Trusted = Request.QueryString("trusted")
|
||||
End If
|
||||
|
||||
If Request.QueryString("user") <> "" Then
|
||||
UserId = Request.QueryString("user")
|
||||
End If
|
||||
|
||||
If Request.QueryString("password") <> "" Then
|
||||
Password = Request.QueryString("password")
|
||||
End If
|
||||
|
||||
If Request.QueryString("table") <> "" Then
|
||||
TableName = "[" & Request.QueryString("table") & "]"
|
||||
End If
|
||||
|
||||
SQLQuery += TableName
|
||||
|
||||
ServerNameLabel.Text = ServerName
|
||||
DatabaseNameLabel.Text = DatabaseName
|
||||
TableNameLabel.Text = TableName
|
||||
|
||||
' EVERYTHING BELOW SHOULD WORK AS IS WITHOUT ANY CHANGES
|
||||
|
||||
' Use a string variable to hold the ConnectionString.
|
||||
Dim connectString As String = "Provider=SQLOLEDB;" & _
|
||||
"Data Source=" & ServerName & ";" & _
|
||||
"Database=" & DatabaseName & ";" & _
|
||||
"Trusted_Connection=" & Trusted & ";" & _
|
||||
"User Id=" & UserId & ";" & _
|
||||
"Password=" & Password & ";"
|
||||
|
||||
' Create an OleDbConnection object,
|
||||
' and then pass in the ConnectionString to the constructor.
|
||||
Dim cn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(connectString)
|
||||
|
||||
'Open the connection.
|
||||
cn.Open()
|
||||
|
||||
' Create an OleDbCommand object.
|
||||
' Notice that this line passes in the SQL statement and the OleDbConnection object.
|
||||
Dim cmd As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand(SQLQuery, cn)
|
||||
|
||||
' Send the CommandText to the connection, and then build an OleDbDataReader.
|
||||
' Note: The OleDbDataReader is forward-only.
|
||||
Dim reader As System.Data.OleDb.OleDbDataReader = cmd.ExecuteReader()
|
||||
|
||||
' Loop through the resultant data selection and add the data value
|
||||
' for each respective column in the table.
|
||||
Dim r As Integer
|
||||
For r = 1 to 5
|
||||
If (reader.Read()) Then
|
||||
Dim row As TableRow = New TableRow
|
||||
Dim cell As TableCell
|
||||
|
||||
cell = New TableCell
|
||||
cell.Text = "<b>" & r & "</b>"
|
||||
row.Cells.Add(cell)
|
||||
|
||||
Dim c As Integer
|
||||
For c = 0 To reader.FieldCount-1
|
||||
cell = New TableCell
|
||||
cell.Text = reader(c).ToString()
|
||||
row.Cells.Add(cell)
|
||||
Next c
|
||||
|
||||
'Add the new row to the table.
|
||||
DisplayTable.Rows.Add(row)
|
||||
End If
|
||||
|
||||
Next r
|
||||
|
||||
Result.Text = "Test Successful!"
|
||||
|
||||
' Close the reader and the related connection.
|
||||
reader.Close()
|
||||
cn.Close()
|
||||
End Sub
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="Form1" method="post" runat="server">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<b><asp:label id="Result" runat="server" Text="Test Failed"/></b><br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Check to make sure up to five rows of data are displayed from your Microsoft SQL Server database.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Server name: <asp:Label Id="ServerNameLabel" runat="server"/><br />
|
||||
Database name: <asp:Label Id="DatabaseNameLabel" runat="server"/><br />
|
||||
Database Table: <asp:Label Id="TableNameLabel" runat="server"/>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Table id="DisplayTable" runat="server" CellSpacing="0" CellPadding="3"
|
||||
GridLines="Both"
|
||||
BorderStyle="Solid"
|
||||
BorderWidth="1"></asp:Table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Close Window" onclick="javascript:window.close();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
136
Troubleshooting/Test4.aspx
Normal file
136
Troubleshooting/Test4.aspx
Normal file
|
@ -0,0 +1,136 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Oracle Connection Test</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest4() {
|
||||
if (document.getElementById('TrustedConnection_0').checked) trusted = "yes"
|
||||
else trusted = "no"
|
||||
|
||||
url = "Test4Do.aspx?server=" + document.forms[0]['ServerName'].value +
|
||||
"&database="+ document.forms[0]['DatabaseName'].value +
|
||||
"&trusted=" + trusted +
|
||||
"&user=" + document.forms[0]['UserName'].value +
|
||||
"&password=" + document.forms[0]['Password'].value +
|
||||
"&table=" + document.forms[0]['TableName'].value
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank" runat=server>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Oracle Connection Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
This test is to ensure that your application can connect to an Oracle database.
|
||||
<br /><br />
|
||||
Please provide the Oracle net service Name, schema name, whether to use Windows Authentication, user name, password and the name of a table.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align:right; width: 140px;">Server Name</td>
|
||||
<td style="width: 200px;"><asp:textbox id="ServerName" runat="server" Text="" CssClass="description_node"/></td>
|
||||
<td style="width: 300px;">Oracle Net Service Name.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Schema Name</td>
|
||||
<td><asp:textbox id="DatabaseName" runat="server" Text="Northwind" CssClass="description_node"/></td>
|
||||
<td>If schema name is a reserved word or contains spaces, it must be enclosed in quotes and is case-sensitive.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right;">Trusted Connection</td>
|
||||
<td>
|
||||
<asp:RadioButtonList id="TrustedConnection" runat="server">
|
||||
<asp:ListItem Value="yes">Windows Authentication</asp:ListItem>
|
||||
<asp:ListItem Value="no" selected="True">Oracle user name/password</asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">User Name</td>
|
||||
<td><asp:textbox id="UserName" runat="server" Text="" CssClass="description_node"/></td>
|
||||
<td>When using Oracle user name/password.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Password</td>
|
||||
<td><asp:textbox id="Password" runat="server" TextMode="Password" CssClass="description_node"/></td>
|
||||
<td>When using Oracle user name/password.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Table Name</td>
|
||||
<td><asp:textbox id="TableName" runat="server" Text="Products" CssClass="description_node"/></td>
|
||||
<td>(e.g., Products). First 5 rows will be displayed from this table. If table name is a reserved word or contains spaces, it must be enclosed in quotes and is case-sensitive.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" value="Run Oracle Connection Test Now" onclick="return DoTest4();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="600">
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
<input type="button" value="Go to Next Test" onclick="parent.location='Test5.aspx'" />
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/OraOLEDB_Oracle_provider_is_not_registered.htm');return false;">OraOLEDB.Oracle' provider is not registered</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/System_Data_OracleClient_requires_Oracle_client_software_version_8_1_7_or_greater.htm');return false;">System.Data.OracleClient requires Oracle client software version 8.1.7 or greater</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ORA-12154_TNS_could_not_resolve_service_name.htm');return false;">ORA-12154: TNS:could not resolve service name</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Application_Runs_But_No_Data_is_Displayed.htm#Application_Runs_But_No');return false;">Lookup additional error messages...</a>
|
||||
<br /><br />
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
161
Troubleshooting/Test4Do.aspx
Normal file
161
Troubleshooting/Test4Do.aspx
Normal file
|
@ -0,0 +1,161 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Oracle Connection Test Results</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<%@ Page Language="vb" AutoEventWireup="false" Debug="true" %>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<script language="VB" runat="server">
|
||||
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
'=============================================================================================
|
||||
' CHANGE ONLY THE FOLLOWING SIX STRINGS
|
||||
'=============================================================================================
|
||||
Dim ServerName As String = "(local)"
|
||||
Dim DatabaseName As String = "Northwind"
|
||||
Dim Trusted As String = "no" ' "yes" if using Windows Authentication
|
||||
Dim UserId As String = "sa"
|
||||
Dim Password As String = ""
|
||||
Dim SQLQuery As String = "SELECT * FROM "
|
||||
Dim TableName As String = "Customer"
|
||||
Dim SQLWhereClause As String = " WHERE ROWNUM <= 5"
|
||||
'=============================================================================================
|
||||
'=============================================================================================
|
||||
|
||||
If Request.QueryString("server") <> "" Then
|
||||
ServerName = Request.QueryString("server")
|
||||
End If
|
||||
|
||||
If Request.QueryString("database") <> "" Then
|
||||
DatabaseName = Request.QueryString("database")
|
||||
End If
|
||||
|
||||
If Request.QueryString("trusted") <> "" Then
|
||||
Trusted = Request.QueryString("trusted")
|
||||
End If
|
||||
|
||||
If Request.QueryString("user") <> "" Then
|
||||
UserId = Request.QueryString("user")
|
||||
End If
|
||||
|
||||
If Request.QueryString("password") <> "" Then
|
||||
Password = Request.QueryString("password")
|
||||
End If
|
||||
|
||||
If Request.QueryString("table") <> "" Then
|
||||
TableName = Request.QueryString("table")
|
||||
End If
|
||||
TableName = DatabaseName + "." + TableName
|
||||
|
||||
SQLQuery += TableName + SQLWhereClause
|
||||
|
||||
ServerNameLabel.Text = ServerName
|
||||
DatabaseNameLabel.Text = DatabaseName
|
||||
TableNameLabel.Text = TableName
|
||||
|
||||
' EVERYTHING BELOW SHOULD WORK AS IS WITHOUT ANY CHANGES
|
||||
|
||||
' Use a string variable to hold the ConnectionString.
|
||||
Dim connectString As String = "Provider=OraOleDb.Oracle;" & _
|
||||
"Data Source=" & ServerName & ";" & _
|
||||
"Database=" & DatabaseName & ";" & _
|
||||
"Trusted_Connection=" & Trusted & ";" & _
|
||||
"User Id=" & UserId & ";" & _
|
||||
"Password=" & Password & ";"
|
||||
|
||||
' Create an OleDbConnection object,
|
||||
' and then pass in the ConnectionString to the constructor.
|
||||
Dim cn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(connectString)
|
||||
|
||||
'Open the connection.
|
||||
cn.Open()
|
||||
|
||||
' Create an OleDbCommand object.
|
||||
' Notice that this line passes in the SQL statement and the OleDbConnection object.
|
||||
Dim cmd As System.Data.OleDb.OleDbCommand = New System.Data.OleDb.OleDbCommand(SQLQuery, cn)
|
||||
|
||||
' Send the CommandText to the connection, and then build an OleDbDataReader.
|
||||
' Note: The OleDbDataReader is forward-only.
|
||||
Dim reader As System.Data.OleDb.OleDbDataReader = cmd.ExecuteReader()
|
||||
|
||||
' Loop through the resultant data selection and add the data value
|
||||
' for each respective column in the table.
|
||||
Dim r As Integer
|
||||
For r = 1 to 5
|
||||
If (reader.Read()) Then
|
||||
Dim row As TableRow = New TableRow
|
||||
Dim cell As TableCell
|
||||
|
||||
cell = New TableCell
|
||||
cell.Text = "<b>" & r & "</b>"
|
||||
row.Cells.Add(cell)
|
||||
|
||||
Dim c As Integer
|
||||
For c = 0 To reader.FieldCount-1
|
||||
cell = New TableCell
|
||||
cell.Text = reader(c).ToString()
|
||||
row.Cells.Add(cell)
|
||||
Next c
|
||||
|
||||
'Add the new row to the table.
|
||||
DisplayTable.Rows.Add(row)
|
||||
End If
|
||||
|
||||
Next r
|
||||
|
||||
Result.Text = "Test Successful!"
|
||||
|
||||
' Close the reader and the related connection.
|
||||
reader.Close()
|
||||
cn.Close()
|
||||
End Sub
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="Form1" method="post" runat="server">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<b><asp:label id="Result" runat="server" Text="Test Failed"/></b><br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Check to make sure up to five rows of data are displayed from your Oracle database.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Server name: <asp:Label Id="ServerNameLabel" runat="server"/><br />
|
||||
Database name: <asp:Label Id="DatabaseNameLabel" runat="server"/><br />
|
||||
Database Table: <asp:Label Id="TableNameLabel" runat="server"/>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Table id="DisplayTable" runat="server" CellSpacing="0" CellPadding="3"
|
||||
GridLines="Both"
|
||||
BorderStyle="Solid"
|
||||
BorderWidth="1"></asp:Table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Close Window" onclick="javascript:window.close();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
131
Troubleshooting/Test5.aspx
Normal file
131
Troubleshooting/Test5.aspx
Normal file
|
@ -0,0 +1,131 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Microsoft SQL Server Connection Test</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest5() {
|
||||
|
||||
url = "Test5Do.aspx?server=" + document.forms[0]['ServerName'].value +
|
||||
"&database="+ document.forms[0]['DatabaseName'].value +
|
||||
"&port="+ document.forms[0]['PortNumber'].value +
|
||||
"&user=" + document.forms[0]['UserName'].value +
|
||||
"&password=" + document.forms[0]['Password'].value +
|
||||
"&table=" + document.forms[0]['TableName'].value
|
||||
newwindow = window.open(url,'name','height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) {newwindow.focus()}
|
||||
return false;
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank" runat=server>
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
MySQL Server Connection Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
This test is to ensure that your application can connect to a MySQL Server database.
|
||||
<br /><br />
|
||||
Please provide the MySQL Server name, database name, whether to use user name, password and the name of a database table.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td style="text-align:right; width: 140px;">Server Name</td>
|
||||
<td style="width: 180px;"><asp:textbox id="ServerName" runat="server" Text="(local)" CssClass="description_node"/></td>
|
||||
<td style="width: 280px;">Specify (local) if using a local machine.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Database Name</td>
|
||||
<td><asp:textbox id="DatabaseName" runat="server" Text="Northwind" CssClass="description_node"/></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Port Number</td>
|
||||
<td><asp:textbox id="PortNumber" runat="server" Text="3306" CssClass="description_node"/></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">User Name</td>
|
||||
<td><asp:textbox id="UserName" runat="server" Text="sa" CssClass="description_node"/></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Password</td>
|
||||
<td><asp:textbox id="Password" runat="server" TextMode="Password" CssClass="description_node"/></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:right">Database Table</td>
|
||||
<td><asp:textbox id="TableName" runat="server" Text="Products" CssClass="description_node"/></td>
|
||||
<td>(e.g., Products). First 5 rows will be displayed from this table.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="submit" value="Run MySQL Server Connection Test Now" onclick="return DoTest5();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="600">
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
<input type="button" value="Go to Next Test" onclick="parent.location='Test6.aspx'" />
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Database_Permission_Settings_or_Path_Are_Not_Configured_Properly.htm');return false;">Database Permission Settings or Path Are Not Configured Properly</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Localhost_is_Not_Properly_Configured.htm');return false;">Localhost is Not Properly Configured</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Cannot_Connect_to_Your_Database.htm');return false;">Cannot Connect to Your Database</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ASP_NET_User_Does_Not_Have_Permissions_to_Your_Application_Folder.htm');return false;">ASP.NET User Does Not Have Permissions to Your Application Folder</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Application_Runs_But_No_Data_is_Displayed.htm#Application_Runs_But_No');return false;">Lookup additional error messages...</a>
|
||||
<br /><br />
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
162
Troubleshooting/Test5Do.aspx
Normal file
162
Troubleshooting/Test5Do.aspx
Normal file
|
@ -0,0 +1,162 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>MySQL Server Connection Test Results</title>
|
||||
|
||||
<script language="javascript" src="OnlineHelp.js" type="text/javascript"></script>
|
||||
<link href="TestConfiguration.css" rel="stylesheet" rev="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<%@ page autoeventwireup="false" debug="true" language="vb" %>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<script runat="server" language="VB">
|
||||
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
'=============================================================================================
|
||||
' CHANGE ONLY THE FOLLOWING SIX STRINGS
|
||||
'=============================================================================================
|
||||
Dim ServerName As String = "(local)"
|
||||
Dim DatabaseName As String = "Northwind"
|
||||
Dim UserId As String = "3306"
|
||||
Dim Port As String = "sa"
|
||||
Dim Password As String = ""
|
||||
Dim MySQLQuery As String = "SELECT * FROM "
|
||||
Dim TableName As String = "Customer"
|
||||
'=============================================================================================
|
||||
'=============================================================================================
|
||||
|
||||
If Request.QueryString("server") <> "" Then
|
||||
ServerName = Request.QueryString("server")
|
||||
End If
|
||||
|
||||
If Request.QueryString("database") <> "" Then
|
||||
DatabaseName = Request.QueryString("database")
|
||||
End If
|
||||
|
||||
If Request.QueryString("port") <> "" Then
|
||||
Port = Request.QueryString("port")
|
||||
End If
|
||||
|
||||
If Request.QueryString("user") <> "" Then
|
||||
UserId = Request.QueryString("user")
|
||||
End If
|
||||
|
||||
If Request.QueryString("password") <> "" Then
|
||||
Password = Request.QueryString("password")
|
||||
End If
|
||||
|
||||
If Request.QueryString("table") <> "" Then
|
||||
TableName = Request.QueryString("table")
|
||||
End If
|
||||
|
||||
MySQLQuery += TableName
|
||||
|
||||
ServerNameLabel.Text = ServerName
|
||||
DatabaseNameLabel.Text = DatabaseName
|
||||
TableNameLabel.Text = TableName
|
||||
|
||||
' EVERYTHING BELOW SHOULD WORK AS IS WITHOUT ANY CHANGES
|
||||
|
||||
' Use a string variable to hold the ConnectionString.
|
||||
Dim connectString As String = "Data Source=" & ServerName & ";" & _
|
||||
"Port=" & Port & ";" & _
|
||||
"Database=" & DatabaseName & ";" & _
|
||||
"User Id=" & UserId & ";" & _
|
||||
"Password=" & Password & ""
|
||||
|
||||
' Create an OleDbConnection object,
|
||||
' and then pass in the ConnectionString to the constructor.
|
||||
'Dim cst As String = "Data Source=qaxp-net;Port=3306;User Id=root;Password=sa"
|
||||
Dim cn As MySql.Data.MySqlClient.MySqlConnection = New MySql.Data.MySqlClient.MySqlConnection(connectString)
|
||||
|
||||
'Open the connection.
|
||||
cn.Open()
|
||||
' MySQLQuery = "select * from customers"
|
||||
' Create an OleDbCommand object.
|
||||
' Notice that this line passes in the SQL statement and the OleDbConnection object.
|
||||
Dim cmd As MySql.Data.MySqlClient.MySqlCommand = New MySql.Data.MySqlClient.MySqlCommand(MySQLQuery, cn)
|
||||
|
||||
' Send the CommandText to the connection, and then build an OleDbDataReader.
|
||||
' Note: The OleDbDataReader is forward-only.
|
||||
Dim reader As MySql.Data.MySqlClient.MySqlDataReader = cmd.ExecuteReader()
|
||||
|
||||
' Loop through the resultant data selection and add the data value
|
||||
' for each respective column in the table.
|
||||
Dim r As Integer
|
||||
For r = 1 to 5
|
||||
If (reader.Read()) Then
|
||||
Dim row As TableRow = New TableRow
|
||||
Dim cell As TableCell
|
||||
|
||||
cell = New TableCell
|
||||
cell.Text = "<b>" & r & "</b>"
|
||||
row.Cells.Add(cell)
|
||||
|
||||
Dim c As Integer
|
||||
For c = 0 To reader.FieldCount-1
|
||||
cell = New TableCell
|
||||
cell.Text = reader(c).ToString()
|
||||
row.Cells.Add(cell)
|
||||
Next c
|
||||
|
||||
'Add the new row to the table.
|
||||
DisplayTable.Rows.Add(row)
|
||||
End If
|
||||
|
||||
Next r
|
||||
|
||||
Result.Text = "Test Successful!"
|
||||
|
||||
' Close the reader and the related connection.
|
||||
reader.Close()
|
||||
cn.Close()
|
||||
End Sub
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<form id="Form1" runat="server" method="post">
|
||||
<table border="0" cellpadding="3," cellspacing="0">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
<b>
|
||||
<asp:Label ID="Result" runat="server" Text="Test Failed"></asp:Label></b><br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Check to make sure up to five rows of data are displayed from your MySQL Server
|
||||
database.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Server name:
|
||||
<asp:Label ID="ServerNameLabel" runat="server"></asp:Label><br />
|
||||
Database name:
|
||||
<asp:Label ID="DatabaseNameLabel" runat="server"></asp:Label><br />
|
||||
Database Table:
|
||||
<asp:Label ID="TableNameLabel" runat="server"></asp:Label>
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Table ID="DisplayTable" runat="server" BorderStyle="Solid" BorderWidth="1" CellPadding="3"
|
||||
CellSpacing="0" GridLines="Both">
|
||||
</asp:Table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input onclick="javascript:window.close();" type="button" value="Close Window" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
145
Troubleshooting/Test6.aspx
Normal file
145
Troubleshooting/Test6.aspx
Normal file
|
@ -0,0 +1,145 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Test 6</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function DoTest6() {
|
||||
if (document.getElementById('DatabaseRadioButton').checked) database = ""
|
||||
else database = document.forms[0]['File'].value
|
||||
|
||||
url = "Test6Do.aspx?Database=" + database + "&Table=" + document.forms[0]['Table'].value + "&Password=" + document.forms[0]['Password'].value
|
||||
newwindow = window.open(url, 'name', 'height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) { newwindow.focus() }
|
||||
return false;
|
||||
}
|
||||
function GoToURL(url) {
|
||||
newwindow = window.open(url, 'name', 'height=500,width=650,left=100,top=100,scrollbars=yes,resizable=yes');
|
||||
if (window.focus) { newwindow.focus() }
|
||||
return false;
|
||||
}
|
||||
|
||||
-->
|
||||
</script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
<%@ Page Language="vb" AutoEventWireup="false"%>
|
||||
<script language="VB" runat="server">
|
||||
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
Me.installedCE.Text = ""
|
||||
Try
|
||||
System.Reflection.Assembly.ReflectionOnlyLoad("System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") '.LoadWithPartialName("Microsoft.SharePoint")
|
||||
Me.installedCE.Text &= "3.5.0.0"
|
||||
Me.installedCE.Text &= ", "
|
||||
Catch
|
||||
End Try
|
||||
|
||||
Try
|
||||
System.Reflection.Assembly.ReflectionOnlyLoad("System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") '.LoadWithPartialName("Microsoft.SharePoint")
|
||||
Me.installedCE.Text &= "3.5.1.0"
|
||||
Me.installedCE.Text &= ", "
|
||||
Catch
|
||||
End Try
|
||||
|
||||
Try
|
||||
System.Reflection.Assembly.ReflectionOnlyLoad("System.Data.SqlServerCe, Version=3.5.2.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") '.LoadWithPartialName("Microsoft.SharePoint")
|
||||
Me.installedCE.Text &= "3.5.2.0"
|
||||
Me.installedCE.Text &= ", "
|
||||
Catch
|
||||
End Try
|
||||
|
||||
Try
|
||||
System.Reflection.Assembly.ReflectionOnlyLoad("System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") '.LoadWithPartialName("Microsoft.SharePoint")
|
||||
Me.installedCE.Text &= "4.0.0.0"
|
||||
Catch
|
||||
End Try
|
||||
Me.installedCe.Text = Me.installedCe.Text.Trim(","c, " "c)
|
||||
If Me.installedCe.Text = "" Then Me.installedCe.Text = "None"
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<body>
|
||||
<form id="gsr" method="get" action="http://search.ironspeed.com/search" target="_blank" runat=server>
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Microsoft SQL Server Compact Edition Test
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
This test is to ensure that your application can connect to a Microsoft SQL Server Compact Edition database. If your application is configured to use SQL Server CE database version which is not installed, testing connection could potentially cause wizard failure. Restart the wizard if that happens.
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left:20px">
|
||||
<input type="radio" id="DatabaseRadioButton" name="DatabaseRadioButton" value="Default" checked="checked" /> Default database file (TestConfiguration.sdf, Customers table)<br />
|
||||
<input type="radio" id="DatabaseRadioButton2" name="DatabaseRadioButton" value="New" /> Your database file: <input type="file" name="File" value="Browse" size="35" class="description_node" /><br />
|
||||
|
||||
Database table: <input type="text" name="Table" class="description_node" /> First 5 rows will be displayed from this table.
|
||||
<br />
|
||||
|
||||
Database password: <input type="password" name="Password" class="description_node" />
|
||||
<br />
|
||||
<br /><br />
|
||||
Installed Microsoft SQL CE driver(s): <asp:literal id="installedCE" runat="server"/>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Run Microsoft SQL Server Compact Edition Connection Test Now" onclick="return DoTest6();" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Test Successful?</b>
|
||||
<br />
|
||||
You have completed these tests. <a href="../default.aspx" target="_blank">Run your application</a> now
|
||||
and if you continue to have problems, <a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">submit a support case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
<li>
|
||||
<b>Errors? Is it one of these?</b>
|
||||
<br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Localhost_is_Not_Properly_Configured.htm');return false;">Localhost is Not Properly Configured</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Cannot_Connect_to_Your_Database.htm');return false;">Cannot Connect to Your Database</a><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/ASP_NET_User_Does_Not_Have_Permissions_to_Your_Application_Folder.htm');return false;">ASP.NET User Does Not Have Permissions to Your Application Folder</a><br />
|
||||
</li>
|
||||
<li>
|
||||
<b>Can't find your error message?</b><br />
|
||||
<a href="#" onclick="ShowHelp('Part_VI/Application_Runs_But_No_Data_is_Displayed.htm#Application_Runs_But_No');return false;">Lookup additional error messages...</a>
|
||||
<br /><br />
|
||||
Search our knowledge base:
|
||||
<!-- Search -->
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" class="description_node"/>
|
||||
<input type="submit" name="btnI" value="Search"/>
|
||||
<input type="hidden" name="site" value="AllHelp" />
|
||||
<input type="hidden" name="output" value="xml_no_dtd" />
|
||||
<input type="hidden" name="client" value="c1" />
|
||||
<input type="hidden" name="proxystylesheet" value="kb" />
|
||||
<!-- End Search -->
|
||||
</li>
|
||||
<li>
|
||||
<b>Still having problems?</b>
|
||||
<br />
|
||||
<a href="http://www.ironspeed.com/Support1/Case/AddCaseFromDesigner.aspx" target="_blank">Submit a Support Case</a>. Please include a screen shot of the error message.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
164
Troubleshooting/Test6Do.aspx
Normal file
164
Troubleshooting/Test6Do.aspx
Normal file
|
@ -0,0 +1,164 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Microsoft SQL Server Compact Edition Connection Test Results</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<%@ Page Language="vb" AutoEventWireup="false"%>
|
||||
<script language="VB" runat="server">
|
||||
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
|
||||
If Not BaseClasses.Configuration.ApplicationSettings.Current.UseSQLCE() Then
|
||||
Me.Result.Text = "Microsoft SQL CE is not enabled in this application."
|
||||
Return
|
||||
End If
|
||||
|
||||
Dim Password As String = ""
|
||||
Dim TableName As String = "Customers"
|
||||
|
||||
|
||||
If Request.QueryString("database") <> "" Then
|
||||
Dim file As String = Request.QueryString("database")
|
||||
If Request.QueryString("table") <> "" Then
|
||||
TableName = Request.QueryString("table")
|
||||
End If
|
||||
If Request.QueryString("password") <> "" Then
|
||||
Password = Request.QueryString("password")
|
||||
End If
|
||||
Try
|
||||
TestConnection(file, TableName, Password)
|
||||
Catch ex As Exception
|
||||
Result.Text = ex.Message
|
||||
ServerNameLabel.Text = file
|
||||
End Try
|
||||
Else
|
||||
' Determine the full path of the default file.
|
||||
' We assume the default file is in the same folder as this file.
|
||||
Dim appDir As String = System.Web.HttpContext.Current.Server.MapPath(".")
|
||||
Dim file35 As String = System.IO.Path.Combine(appDir, "TestConfiguration35.sdf")
|
||||
Dim file40 As String = System.IO.Path.Combine(appDir, "TestConfiguration40.sdf")
|
||||
Try
|
||||
TestConnection(file35, "Customers", "")
|
||||
Catch ex As Exception
|
||||
Try
|
||||
TestConnection(file40, "Customers", "")
|
||||
Catch ex2 As Exception
|
||||
Result.Text = ex.Message & "<br/>" & ex2.Message
|
||||
ServerNameLabel.Text = file35 & " and " & file40
|
||||
End Try
|
||||
End Try
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
Public Sub TestConnection(ByVal ServerName As String, ByVal Tablename As String, ByVal Password As String)
|
||||
Dim SQLQuery As String = "SELECT TOP (5) * FROM "
|
||||
|
||||
|
||||
SQLQuery &= "[" & Tablename & "]"
|
||||
|
||||
ServerNameLabel.Text = ServerName
|
||||
TableNameLabel.Text = Tablename
|
||||
|
||||
' EVERYTHING BELOW SHOULD WORK AS IS WITHOUT ANY CHANGES
|
||||
|
||||
' Use a string variable to hold the ConnectionString.
|
||||
Dim connectString As String = "Data Source=" & ServerName & ";"
|
||||
If Password <> "" Then
|
||||
connectString &= "SSCE:Database Password=" & Password
|
||||
End If
|
||||
|
||||
' Create an OleDbConnection object,
|
||||
' and then pass in the ConnectionString to the constructor.
|
||||
'Open the connection.
|
||||
Dim cn As System.Data.IDbConnection = BaseClasses.Data.SqlProvider.SqlProvider.GetConnection(BaseClasses.Configuration.DatabaseConnection.ConnectionType.SQLCECLIENT, connectString)
|
||||
cn.Open()
|
||||
|
||||
' Create an OleDbCommand object.
|
||||
' Notice that this line passes in the SQL statement and the OleDbConnection object.
|
||||
Dim cmd As System.Data.IDbCommand = BaseClasses.Data.SqlProvider.SqlProvider.GetCommand(SQLQuery, cn)
|
||||
|
||||
' Send the CommandText to the connection, and then build an OleDbDataReader.
|
||||
' Note: The OleDbDataReader is forward-only.
|
||||
Dim reader As System.Data.IDataReader = cmd.ExecuteReader()
|
||||
|
||||
' Loop through the resultant data selection and add the data value
|
||||
' for each respective column in the table.
|
||||
Dim r As Integer
|
||||
For r = 1 To 5
|
||||
If (reader.Read()) Then
|
||||
Dim row As TableRow = New TableRow
|
||||
Dim cell As TableCell
|
||||
|
||||
cell = New TableCell
|
||||
cell.Text = "<b>" & r & "</b>"
|
||||
row.Cells.Add(cell)
|
||||
|
||||
Dim c As Integer
|
||||
For c = 0 To reader.FieldCount - 1
|
||||
cell = New TableCell
|
||||
cell.Text = reader(c).ToString()
|
||||
row.Cells.Add(cell)
|
||||
Next c
|
||||
|
||||
'Add the new row to the table.
|
||||
DisplayTable.Rows.Add(row)
|
||||
End If
|
||||
|
||||
Next r
|
||||
|
||||
Result.Text = "Test Successful!"
|
||||
|
||||
' Close the reader and the related connection.
|
||||
reader.Close()
|
||||
cn.Close()
|
||||
|
||||
End Sub
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
||||
<form id="Form1" method="post" runat="server">
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
<b><asp:label id="Result" runat="server" Text="Test Failed"/></b><br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Check to make sure up to five rows of data are displayed from the Microsoft SQL Server Compact Edition database.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
Database File: <asp:Label Id="ServerNameLabel" runat="server"/><br />
|
||||
Database Table: <asp:Label Id="TableNameLabel" runat="server"/>
|
||||
<br /><br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Table id="DisplayTable" runat="server" CellSpacing="0" CellPadding="3"
|
||||
GridLines="Both"
|
||||
BorderStyle="Solid"
|
||||
BorderWidth="1"></asp:Table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Close Window" onclick="javascript:window.close();" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
36
Troubleshooting/TestConfiguration.css
Normal file
36
Troubleshooting/TestConfiguration.css
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
.description_node, td {
|
||||
font-family: Verdana, Geneva, ms sans serif;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.heading_node {
|
||||
font-family: Verdana, Geneva, ms sans serif;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.page_heading {
|
||||
font-family: Verdana, Geneva, ms sans serif;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
li {
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin-left: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
a:hover, :link, a:visited {
|
||||
color: #0000ff;
|
||||
}
|
||||
|
BIN
Troubleshooting/TestConfiguration.mdb
Normal file
BIN
Troubleshooting/TestConfiguration.mdb
Normal file
Binary file not shown.
BIN
Troubleshooting/TestConfiguration35.sdf
Normal file
BIN
Troubleshooting/TestConfiguration35.sdf
Normal file
Binary file not shown.
BIN
Troubleshooting/TestConfiguration40.sdf
Normal file
BIN
Troubleshooting/TestConfiguration40.sdf
Normal file
Binary file not shown.
45
Troubleshooting/default.aspx
Normal file
45
Troubleshooting/default.aspx
Normal file
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
<title>Troubleshooting Wizard</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Troubleshooting Wizard
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
The following pages test various aspects of your
|
||||
configuration to make sure that everything is working correctly.
|
||||
<br />
|
||||
<br />
|
||||
These tests use generic Microsoft .NET Framework code. No Iron Speed Designer
|
||||
specific code is used in these tests. A test that fails generally indicates a
|
||||
configuration problem with your system.
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Start Testing Now" onclick="parent.location='Test0.aspx'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br /><br /><br />
|
||||
default.aspx
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
45
Troubleshooting/default.htm
Normal file
45
Troubleshooting/default.htm
Normal file
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1">
|
||||
<title>Troubleshooting Wizard</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Troubleshooting Wizard
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
The following pages test various aspects of your
|
||||
configuration to make sure that everything is working correctly.
|
||||
<br />
|
||||
<br />
|
||||
These tests use generic Microsoft .NET Framework code. No Iron Speed Designer
|
||||
specific code is used in these tests. A test that fails generally indicates a
|
||||
configuration problem with your system.
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Start Testing Now" onclick="parent.location='Test0.aspx'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br /><br /><br />
|
||||
default.htm
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
45
Troubleshooting/default.html
Normal file
45
Troubleshooting/default.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1">
|
||||
<title>Troubleshooting Wizard</title>
|
||||
<script src="OnlineHelp.js" language="javascript" type="text/javascript"></script>
|
||||
<link rel="stylesheet" rev="stylesheet" type="text/css" href="TestConfiguration.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<table cellpadding="3" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class="page_heading">
|
||||
Troubleshooting Wizard
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
The following pages test various aspects of your
|
||||
configuration to make sure that everything is working correctly.
|
||||
<br />
|
||||
<br />
|
||||
These tests use generic Microsoft .NET Framework code. No Iron Speed Designer
|
||||
specific code is used in these tests. A test that fails generally indicates a
|
||||
configuration problem with your system.
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" value="Start Testing Now" onclick="parent.location='Test0.aspx'" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<br /><br /><br />
|
||||
default.html
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue