Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix .NET Extensions | New ThreadView:  Search:  
 Author  Thread: "Security Access Failure" message in SLX 7 using .Net Application
Irakli Laliashvili
Posts: 3
 
"Security Access Failure" message in SLX 7 using .Net ApplicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Apr 07 4:03 PM
fiogf49gjkf0d
Hi All,

I'm working on vb.net with SLX v7 project which will insert record into custom table in SLX Database.

I created username "temp" with "pass" password
Temp username needs to insert record into database. But when I try to save data my application gives this message.

"Security Access Failure"
"Connection limited to read only queries"

Temp username is able to view data; I can successfully log into my .Net application and can view data in a DataGrid as well. But I can't save it.
if I use Admin username, I can save data successfully though. I realize it should be something very simple but if oyu could share your ideas and experience I really appreciate

Thanks

Irakli
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: "Security Access Failure" message in SLX 7 using .Net ApplicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Apr 07 5:15 PM
It could be that the user only has read access to the record in question. Is the table account-based, stand alone, etc? Are you grabbing the connection (or connection string) from the exposed SlxApplication object in the extension, or creating your own connection string to the database (in which case the database might have a RW password which you're not supplying in the connection string)
[Reply][Quote]
Irakli Laliashvili
Posts: 3
 
Re: "Security Access Failure" message in SLX 7 using .Net ApplicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Apr 07 9:08 PM
fiogf49gjkf0d
Ryan,

Thanks for your reply.

This table is stand alone, it is equipment table and the third party application should be able to insert a record into this table. Well as I said, I can insert a record if I log into this application using Admin username.
------------------------------------------------------------------------------------------
Here is the connection string that I use:
"Provider=SLXOLEDB.1; Password="Pass"; Persist Security Info=True;" & _
"User ID="Temp";Initial Catalog="SLXDB";Data Source="127.0.0.1";" & _
"Extended Properties=PORT=1706;LOG=ON;"
------------------------------------------------------------------------------------------
Here is some code from "connection" sub:

Dim objCon As New System.Data.OleDb.OleDbConnection

objCon.ConnectionString = AppMgr.ConnectionString 'Above connection string is used!
objCon.Open()
-----------------------------------------------------------------------------------------
Here is Save data Sub:

Dim NewIDVal = NewID("Table")
Try
Dim strSQL As String = "INSERT INTO mytable" & _
"(ID,SerialN, Name, Type) " & _
" VALUES (?,?,?,?)"

objData = New DataCommand(AppMgr.ConnectionString)
objData.AddParam(NewID("Table"))
objData.AddParam(ID.text)
objData.AddParam(SerialN.Text)
objData.AddParam(Name.Text)
objData.AddParam(Type.Text)
objData.AddParam(TXT_RentRate.Text)

objData.ExecuteSQL(strSQL)

SaveData = (objData.RecordsAffected > 0)
objData = Nothing
MessageBox.Show("Data Saved")

Catch ex As Exception
MessageBox.Show(ex.Message)
MessageBox.Show("Not Saved")
End Try

--------------------------------------------------------------------

Ryan, Do you think I miss something in connection string?!

Thanks again

Irakli

[Reply][Quote]
Irakli Laliashvili
Posts: 3
 
Re: "Security Access Failure" message in SLX 7 using .Net ApplicationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Apr 07 9:12 PM
fiogf49gjkf0d
Hey Ryan,

I just got it working.

Thanks for RW Pass tip and for this article
http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=55

So, I had to connect first to get decrypted RW password and then reconnect using RWPass inside connection string.


Appreciate

Irakli
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 9:58:09 AM