I created a user, gave access to the ugcc database and copy/pasted the credentials into Web.config in the website root. But when i try logging in i get this error:
Server Error in '/' Application.
Object cannot be cast from DBNull to other types.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Object cannot be cast from DBNull to other types.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Object cannot be cast from DBNull to other types.]
UGCC_Sharp.dbinterface.() in dbinterface.cs:97
UGCC_Sharp.defaultnew.Button1_Click(Object sender, EventArgs e) in Default.aspx.cs:206
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +121
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +136
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4657
Masher
----------- Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.