I'm posting a support issue that is already in progress via
support@strataframe.net.
Hi. I'm evaluating a trial and going through the documentation to get the first WinForm VB.NET example working with ES. I'm getting the following exception:
The remote server returned an error: (404) Not Found.
on the following code:
Public Sub FillTop100()
Me.FillDataTable("SELECT TOP 100 * FROM Customers")
End Sub
The exception is as follows:
System.Net.WebException was unhandled by user code
Message="The remote server returned an error: (404) Not Found."
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse() at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.SendRequestCore(BaseParams Params, RemoteDataSourceCommand Command) at MicroFour.StrataFrame.Data.Enterprise.EnterpriseDataSourceItem.ᜀ(DbCommand A_0, Boolean A_1, String A_2) at MicroFour.StrataFrame.Data.DataLayer.GetDataTable(String Statement, Boolean RegisterNotification) at MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(String SelectStatement) at Tutorial_WinVB_1.CustomerBO.FillTop100() in C:\Projects\Strataframe\Tutorial_WinVB_1\Tutorial_WinVB_1\CustomerBO.vb:line 70 at Tutorial_WinVB_1.CustomerMaintenance.CustomerBO1_ParentFormLoading() in C:\Projects\Strataframe\Tutorial_WinVB_1\Tutorial_WinVB_1\CustomerMaintenance.vb:line 4 at MicroFour.StrataFrame.Business.BusinessLayer.raise_ParentFormLoading() at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects() at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m) at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException:
Here is my SetDataSources() method:
Private Shared Sub SetDataSources()
'-- Create the data source
Dim ds As New EnterpriseDataSourceItem("", _
"titan-001v.titanconsultinggroup.com", 80, "MyDataSource", _
New SqlDataSourceItem("MyDataSource"))
''-- Configure the compression and encryption (optional)
ds.IsCompressed = True
ds.IsEncrypted = True
ds.EncryptionKey = New Byte() {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4}
ds.EncryptionVector = New Byte() {1, 2, 3, 4, 5, 6, 7, 8}
''-- Add the EnterpriseDataSourceItem
DataLayer.DataSources.Add(ds)
End Sub
Here is my datasources.config:
<?xml version="1.0" encoding="utf-8" ?>
<DataSources>
<DataSource DataSourceKey="MyDataSource">
<ConnectionString>server=localhost;Integrated Security=SSPI;Database=StrataFrameSample;</ConnectionString>
<TypeFullName>MicroFour.StrataFrame.Data.SqlDataSourceItem</TypeFullName>
<TypeAssemblyName>MicroFour StrataFrame Base</TypeAssemblyName>
<TypeAssemblyVersion>1.6.0.0</TypeAssemblyVersion>
<TypeAssemblyCulture>neutral</TypeAssemblyCulture>
<TypeAssemblyPublicToken>99fe9917f71608a7</TypeAssemblyPublicToken>
<IsEncrypted>True</IsEncrypted>
<IsCompressed>True</IsCompressed>
<EncryptionKey>1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4</EncryptionKey>
<EncryptionVector>1,2,3,4,5,6,7,8</EncryptionVector>
<TransactionTimeout>3600</TransactionTimeout>
</DataSource>
</DataSources>
And attached is a screenshot of the ES Status page. I'm running VS 2008, Vista 64-bit, IIS 6.0 SP1, SQL Server 9.0.1399 64-bit (with StrataFrame and StrataFrameSample databases) all running on the same machine with plenty of memory. I've set the folder permissions to Everyone, Full Control and I'm allowing All Users to access the web service.
Any help would be appreciated.
Thanks,
Brian O'Neil