By Chris Diesel - 11/18/2008
I'm having a hard time testing our project using ES. I created and installed a SDK CAL with the server name srv09. I access the status page via: http://srv09/strataframees/status.aspx. Should I have activated the licenses using srv09/strataframees instead? I keep getting a message: "The remote server returned an error: (500) Internal Server Error." when I try to run in developer mode on srv09.
|
By Trent L. Taylor - 11/18/2008
It isn't the server name that you enter but rather the hostname. The hostname would be the named address to which the ES server is accessed. For example, "myes.mydomain.com."
|
By Chris Diesel - 11/18/2008
So even though I can access the status page using srv09 it's not the host name? I just want to be able to do a test from my dev workstation and another workstation on the same lan (didn't want to use localhost).
|
By Trent L. Taylor - 11/18/2008
No. When you reference the machine directly, this may not be the hostname. It has to be a qualified name respected by IIS. When you use the machine name, it redirects to an IP in the browse internally, which doens't qualify as a host name in some cases. Just FYI, I have reset your activation so you can try again.
|
By Chris Diesel - 11/18/2008
Thanks I activated and downloaded the license again with the "correct" host name but I'm still getting error (500) Internal Server Error. Here's my SetDataSources() code: //-- Create the data sourceEnterpriseDataSourceItem ds = new EnterpriseDataSourceItem("IwSystemsSQL", "srv09.stllv.insware.com", 80, "IwSystemsES", new SqlDataSourceItem("IwSystemsES"));//-- 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 EnterpriseDataSourceItemDataLayer.DataSources.Add(ds);//Set the data source key for the security tablesSecurityBasics.SecurityDataSourceKey = "IwSystemsSQL"; Here's my DataSources.config code: <? xml version="1.0" encoding="utf-8" ?>< DataSources>< DataSource DataSourceKey="IwSystemsES">< ConnectionString>server=srv09;Database=IwSystems;User Id=IwSystemsES;Password=IwSystemsES;</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>
|
By Chris Diesel - 11/18/2008
Never mind. Working now somehow...
|
By Trent L. Taylor - 11/19/2008
It was because the application pool was reset. When you made the changes, you either needed to restart IIS, or recycle the application pool. If you wait long enough, it will do this itself. Glad its working
|
By lastcanary - 9/16/2011
My problem seems to be similar so I thought that it is better to post here.
My hostname is server2008.outsource and I used this name together with the MAC address to create a license dll and put it to the bin folder.
I have installed the enterprise server by specifying server2008.outsource as the host name.
http://server2008.outsource/ Server status link gives access denied error
http://server2008.outsource/RemoteDataSource.ashx This link gives 5.7.1 Unable to relay for admin@mydomain.com error
In program.cs
EnterpriseDataSourceItem ds = new EnterpriseDataSourceItem("", "server2008.outsource", 80, "MyDataSource", new OracleDataSourceItem("MyDataSource")); DataLayer.DataSources.Add(ds);
In DataSources.config
<?xml version="1.0" encoding="utf-8" ?>
<DataSources> <DataSource DataSourceKey="MyDataSource"> <ConnectionString>Data Source=orcl_tr;User Id =CONTACTS; Password =CONTACTS;</ConnectionString> <TypeFullName>MicroFour.StrataFrame.Data.SqlDataSourceItem</TypeFullName> <TypeAssemblyName>MicroFour StrataFrame Base</TypeAssemblyName> <TypeAssemblyVersion>1.7.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>
When I try to execute the following line HTTP 500 error is received
DataLayer.DataSources[0].ExecuteNonQuery(sSql);
Could you please help me to fix this problem?
|
|