Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I've got ES installed (I think). I have the data sources set. Web.config is set. I've restarted IIS. How do I tell if the derned thing is working? I tried updating my client to use it, but it says that is can't find the server. I'm thinking I need to see if it is running first. Do I have to turn it on (I wouldn't think so...but...)?
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Can you paste the code snippet from your AppMain where you are adding the EnterpriseDataSourceItem to your DataSources collection? You're so close... I'm sure you can probably taste it...
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Here is the code that creates the EnterpriseDataSourceItems. It bombs when it goes to get the global security data (first data call in app). Dim dsApp As New EnterpriseDataSourceItem("" _
, "ramstest.foxsys.com/StrataFrameES" _
, 80 _
, "RamsApp" _
, New SqlDataSourceItem(""))
'-- Configure the compression and encryption (optional)
dsApp.IsCompressed = True
dsApp.IsEncrypted = True
dsApp.EncryptionKey = New Byte() {...}
dsApp.EncryptionVector = New Byte() {...}
'-- Add the EnterpriseDataSourceItem
DataLayer.DataSources.Add(dsApp)
Dim dsSec As New EnterpriseDataSourceItem("security" _
, "ramstest.foxsys.com/StrataFrameES" _
, 80 _
, "RamsSecurity" _
, New SqlDataSourceItem(""))
'-- Configure the compression and encryption (optional)
dsSec.IsCompressed = True
dsSec.IsEncrypted = True
dsSec.EncryptionKey = New Byte() {...}
dsSec.EncryptionVector = New Byte() {...}
'-- Add the EnterpriseDataSourceItem
DataLayer.DataSources.Add(dsSec)
This returns a 400 bad requestion. If I change "ramstest.foxsys.com/StrataFrameES" to "ramstest.foxsys.com" I get a 404 not found error. Yep, I can taste it...
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Does your encryption and vector key match? They should be identical on each side...the application data source definition and the definition on the server.
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Yes. I copied and pasted them (and just double checked them).
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I just created a new app to test ES. Exact same results. Any ideas? I really need to get this working ASAP so I can make a recommendation about my app using it. Thanks!
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
400 Bad Request means that you can talk to the server but there is an issue with the license, don't have the encryption keys lined up, or something of that nature generally. When you see this message it is generally a configuration error. If you go to the status page of the ES on the server, is your license activated?
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
It appears the license is fine. I says it is active until 11/20/2007.
I'm wondering if I have the wrong host name. If I put in "ramstest.foxsys.com" I get a 404 error, file not found. If I put in "ramstest.foxsys.com/StrataFrameES" I get the 400, bad request (in the app .net client). The license is under "ramstest.foxsys.com". I thought I didn't need to have the virtual folder.
I triple checked the keys and they line up.
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Guys, I really would like to figure this out today. I gotta be close. The sooner I get this working, the sooner I can test it, the sooner I can figure out if I need to buy it.
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
The problem is that your host name is incorrect. It must include the host name and the virtual name as well. However you get to the site...the license must be activated to match exactly! This is covered in the docs, which may have been what clued you in here. I have reset your account so you can log back in and activate with the "correct" host name. Hope this helps.
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Thanks! This makes sense. I actually tried to clarify this before I got the license, but I apparently didn't state the question clearly (or misunderstood both your answer and the help). I might make the suggest that they offer an example that includes a virtual directory. I just read else where that you guys took today off! Sorry I was a smidge pushy in my last post.  I hope you have a good Easter weekend!
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
I went and checked the code Greg, and apparently, the ES assumes that you won't have a virtual server... it's expecting to be able to put the hostname:portnumber directly, so if you have a virtual server, then the url ends up looking like this: http://hostname/virtual:portnumber/RemoteDataSource.ashx not http://hostname:portnumber/virtual/RemoteDataSource.ashx like it should. Give me a few minutes to figure a way out of this and I'll send you a new MicroFour StrataFrame Enterprise Client.dll.
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
OK, Greg, give this DLL a try... you'll have to dump it into your C:\Program Files\Common Files\MicroFour\StrataFrame folder as well as drag it into your GAC (C:\Windows\Assembly). As for the hostname in the license file, it has to match the hostname, not the hostname + virtual server... so, in your case, the ramstest.foxsys.com is correct. The problem wasn't with the hostname not matching, it was with the URL being created within the Enterprise Client.
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
Ah, thanks Ben. I'm about to give this a try.
So, my license host name is "ramstest.foxsys.com" (used to create license file and to configure ES), but when I create my ES datasource, on the client, I'd still use "ramstest.foxsys.com/StrataFrameES" right?
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
No joy. I still get a bad request (400).
I was going to attempt to just install it at the root level of my website, but I cannot do that with your installer. It either creates a new web site or it installs into a virtual folder.
I'll try Trent's suggest of getting a new license file that includes the virtual folder in the host name.
|
|
|
Greg McGuffey
|
|
Group: Forum Members
Posts: 2K,
Visits: 6.6K
|
I can't seem to create a new license file. It says my MAC address is bad. I've triple checked it. It's good. It is the same one I used originally (same computer). Thus I'm stuck
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
The Enterprise Client DLL only needs to be put on your client computer... it's not used on the server at all... As for the MAC address, it has to be hex, exactly 12 characters either separated by dashes every 2 characters or all together. Casing does not matter. So, the following are valid: 01-23-45-67-89-ab 0123456789AB Email me if you keep having problems getting it reactivated.
|
|
|