The remote server returned an error: (404) Not Found.


Author
Message
Brian M O'neil
Brian M O'neil
StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)
Group: Forum Members
Posts: 5, Visits: 1
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

 

Replies
Brian M O'neil
Brian M O'neil
StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)StrataFrame Beginner (35 reputation)
Group: Forum Members
Posts: 5, Visits: 1
I changed the project as follows:

Private Shared Sub SetDataSources()

'-- Create the data source

Dim ds As New EnterpriseDataSourceItem("", "titan-001v.titanconsultinggroup.com", 80, "", _

New SqlDataSourceItem(""))

''-- 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

And changed the datasources.config:

<DataSources>
 <DataSource DataSourceKey="">
  <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>

I did an iisreset after the changes and my ES status page is displaying.  I receive the following exception on the same line of code:

Public Sub FillTop100()

Me.FillDataTable("SELECT TOP 100 * FROM Customers")

End Sub

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:

I didn't load the beta because since I'm new to SF I would rather eval a production release.

Any help is appreciated.

 


Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I didn't load the beta because since I'm new to SF I would rather eval a production release.

The only reason 1.6.6 is dubbed "beta" is because we have not updated the docs...but if you want to really evaluate StrataFrame, I would recommend loading this release.  This is already in production in our medical software as well as many other major development shops around the world.  So don't let the word "beta" get in the way on this one Wink

Also, be sure that you get the SMTP stuff working properly as any errors will be sent to that address.  The error message you are getting is a standard HTTPRequest error message that indicates that the destination cannot be found. Start with the SMTP details first and see if any error messages appear. 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search