Click to See Complete Forum and Search --> : ASP with firefox and Opera Authentication


wesley
12-24-2005, 06:11 AM
Hi

i am desiging a website with Asp.net and i want it to be cross-platform. But when ever i run the project and open it with firefox or opera it ask's for the login authentication. This never happens with IE and in Fire fox it ask's for my system login password and ID and for Opera it says "The server requested a login authentication method that is not supported"


what can i do for this.

TheBearMay
12-24-2005, 08:17 AM
Believe it's more of an IIS problem than FF or Opera. Unless there's a good reason not to, set the security for the directory of your project to allow anynomous access in IIS. IE will use Windows Authentification in the background, everyone else won't.

wesley
12-24-2005, 10:48 AM
HI thank's for your reply

your suggestion is correct but now it's not letting me to access the database using OleddbAdapter


thank you

chrismartz
12-24-2005, 04:06 PM
Do you get any sort of error?

russell
12-24-2005, 09:02 PM
this has absolutely nothing to do with the browser. how are u accessing the db? as chrids asks...what error are u getting?

TheBearMay
12-25-2005, 06:43 AM
Just a guess, but you may have to grant Connect, Select, etc at the DB.

wesley
12-29-2005, 06:40 AM
when i am tring to access the database using oleDbAdapter it gives me an "UnSpecified Error"

And it's noy letting me to open the Database.
you can see the error message below.






Server Error in '/SES' Application.
--------------------------------------------------------------------------------

Unspecified error
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.Data.OleDb.OleDbException: Unspecified error

Source Error:


Line 34: ClearErrorMessage()
Line 35: Dim Cmd1 As OleDb.OleDbDataAdapter
Line 36: con.Open()
Line 37:
Line 38: Try


Source File: C:\Inetpub\wwwroot\SES\Classes\clsDBQueries.vb Line: 36

Stack Trace:


[OleDbException (0x80004005): Unspecified error]
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
System.Data.OleDb.OleDbConnection.InitializeProvider()
System.Data.OleDb.OleDbConnection.Open()
SES.clsDBQueries.SelectSQL(String strSQL) in C:\Inetpub\wwwroot\SES\Classes\clsDBQueries.vb:36
SES.clsCustomer.CheckPinandPassword(String UserPin, String Password) in C:\Inetpub\wwwroot\SES\Classes\clsCustomer.vb:50
SES.Login.butLogin_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\SES\Login.aspx.vb:42
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1292

russell_g_1
12-29-2005, 09:14 AM
so what kind of object is con exactly and what does your connection string look like?

wesley
12-30-2005, 10:47 AM
con = OleDbConnection(ConnectionString)

Connection string = the string which gives the jet connection to the database

Ubik
12-30-2005, 11:59 AM
You have this code:

con = OleDbConnection(ConnectionString)

Please code this around that code:

response.write "<p>My Connection string is: '" & ConnectionString & "'.</p>"
con = OleDbConnection(ConnectionString)
response.end

Then, copy and paste that output here.