I have been following the Quick Start Examples, pulling apart etc to learn when I think I've found a Source Code error. The application works fine when using IE through the localhost and browsing etc - No problems there, however I copied the source code to a local directory to create me own login etc. I've made sure my global.asax & web.config files are exact so I know all my namespaces & inheritance are ok.
When stripping the login page down to bare essentials & running, I kept getting the error of BC30456: 'Security' is not a member of 'Commerce' - I couldn't figure out why Security wasn't a member of this namesapce. Then I checked the mk.bat of the components directory to see that the Security.VB file wasn't added to the list so therefore was not being compiled to the ASPNETCommerce.dll file.
So I adjusted the batch file to include the Security.vb script, which of cource brought up a compiler error of Error BC30002: Type byte is not defined. I checked the Security.vb file to see the Public Class Security calls on the second line Dim clearBytes As [Byte]() - I'm not sure why the []'s are required but this line calls hte sub/function Byte() which of course doesn't exist so I get the compiler error.
Frustrated that I couldn't get my login.aspx page up, I removed the code & left the Public Shared Function Encrypt empty. Sure this made my page at least appear without error until I tried to check my details & the Stored Procedure required a hashed password string to be parsed through itself. Fine I have no problems with the logic there.
But then I noticed the file size of the ASPNETCommerce.dll file on the sample that worked fine to the size of the .dll created with the mk.bat batch file - there's around 3Kb difference.
I think the existing SDK Sample includes the security.vb in it's ASPNETCommerce.dll file, but the batch file supplied that is meant to compile the source negates the Security.vb file & therefore throws the "not a member" error - when I've tried to fix the batch file I then get the compile error of the Type byte is not defined.
Has anyone elese found this - is there a fix. I went to download again but it's the same version. As much as I can copy over the original .dll file - I'd like to re-compile with my own attributes etc & keep the learning process going - thanks Kyle