473,652 Members | 3,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Security Issues between SQL 2000 and ASP NET. Need help badly.

I have stumbled upon a serious problem and I hope someone
can help me out.

I have programmed a web service in VB.NET.

When I use integrated security for the piece, of course
it does not use my log in but the ASP log in. No
problem. I get an error.

So first in experiment I try and use the sa account. I
type his account in and password and then I get a "User
not Trusted" error even though the credentials I passed
were correct.

So then I add the ASPNET user to SQL and give him public
access to a database. I try passing the ASPNET login
with the password and I get a time out error.

I then try using plain old integrated security but it
again times out.

Does anyone know what I need to do to set this
connection?? (I am also using ADO.NET)

Thanks!
Nov 20 '05 #1
4 1810
Cor
Hi Iced Crow,
Did you know that the public.asp.net newsgroup exist.
I believe that in that newsgroup you will get a faster answer to this kind
of questions than in the vb.net language group.
Cor
Nov 20 '05 #2
"IcedCrow" <ch********@aol .com> scripsit:
I have programmed a web service in VB.NET.

When I use integrated security for the piece, of course
it does not use my log in but the ASP log in. No
problem. I get an error.

So first in experiment I try and use the sa account. I
type his account in and password and then I get a "User
not Trusted" error even though the credentials I passed
were correct.

So then I add the ASPNET user to SQL and give him public
access to a database. I try passing the ASPNET login
with the password and I get a time out error.

I then try using plain old integrated security but it
again times out.

Does anyone know what I need to do to set this
connection?? (I am also using ADO.NET)


You may want to turn to the ng for ASP.NET related questions:

<news://msnews.microsof t.com/microsoft.publi c.dotnet.framew ork.aspnet>

Web interface:

<http://msdn.microsoft. com/newsgroups/default.asp?url =/newsgroups/loadframes.asp? icp=msdn&slcid= us&newsgroup=mi crosoft.public. dotnet.framewor k.aspnet>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Using the Windows Only security setting in SQL with an ASP.net or ASP.net
Web service is a pain. The best option you have is to change your security
setting in SQL to use SQL Server and Windows. Then you can create a SQL
login and use that in your application. This setting is almost for sure the
reason you are not able to use sa for a login (not that you would use sa for
a program to login anyway *g*)

Kirk Graves

"IcedCrow" <ch********@aol .com> wrote in message
news:10******** *************** *****@phx.gbl.. .
I have stumbled upon a serious problem and I hope someone
can help me out.

I have programmed a web service in VB.NET.

When I use integrated security for the piece, of course
it does not use my log in but the ASP log in. No
problem. I get an error.

So first in experiment I try and use the sa account. I
type his account in and password and then I get a "User
not Trusted" error even though the credentials I passed
were correct.

So then I add the ASPNET user to SQL and give him public
access to a database. I try passing the ASPNET login
with the password and I get a time out error.

I then try using plain old integrated security but it
again times out.

Does anyone know what I need to do to set this
connection?? (I am also using ADO.NET)

Thanks!

Nov 20 '05 #4
Kirk,

Thank you very much for the reply. I was up late last night pounding on
this thing and this morning I was finally able to solve my puzzle doing
exactly what you said. Once I set it to SQL security everything was
happy.

I realize I wouldn't use SA in a production enviornment, this is for a
classroom enviornment.

I have experience with DBAs not even wanting to grant anything to the
ASP or ASPNET user accounts... I'm sure there will be much flack given
on this but... sa it is for now.

Again thanks for the reply.

~IC

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1369
by: Antony | last post by:
I am currently writing an application (VB.NET) and I was thinking about all the hype that seems to be given to security and if I should pay it any attention or not. My first thought was, nah, no need to worry about security because my app will not include WEB services, thus won't be hosted, thus should not be vulnerable for attack. But then I thought, what happens if some hacker gets into a machine where my app is running, finds a DLL...
8
1877
by: Aravind | last post by:
I am Aravind.Could someone provide me with a list of specific guidelines for secure programming in C/C++?.I would like to use those guidelines for developing a security application to deal with issues like buffer overflows,memory leaks,user input validation etc.... Aravind
5
2781
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE ------------------------------------------------------------------------------- -
1
1266
by: Sam Vanderstraeten | last post by:
Hi all, My situation: - VB.net & Visual Studio 2002 - IIS 6.0 - Windows XP Pro (development) and Windows 2000 server (release) I created a test-application (before I started to develop the real application), to check the possibillities of the NTFS Security on IIS and ASP.net. This security was what I needed! A flexible solution to change page-based
5
4390
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under windows integrated security. In order to get around this issue it seems that we would need to create a login page on a separate site that runs under anonymous security. Then pass the users credentials to the site running under integrated security. ...
0
4332
by: Jay C. | last post by:
Jay 3 Jan. 11:38 Optionen anzeigen Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements Von: "Jay" <p.brunm...@nusurf.at> - Nachrichten dieses Autors suchen Datum: 3 Jan 2006 02:38:30 -0800 Lokal: Di 3 Jan. 2006 11:38 Betreff: Referenced security token could not be retrieved Antworten | Antwort an Autor | Weiterleiten | Drucken | Einzelne Nachricht | Original anzeigen | Entfernen | Missbrauch melden
1
1618
by: eisenb | last post by:
microsoft.public.dotnet.languages.vb.upgrade isn't getting much traffic, so I'll try here. Ours is a VB6 shop exploring .NET. First I wrote a new application with VB .NET 2003 to create a pdf Crystal Report from a SQL Server 2000 table. I followed advice from the MSDN article "Add Professional Quality Reports to Your Application with Visual Studio .NET" (http://msdn.microsoft.com/msdnmag/issues/02/05/Crystal/), and it
19
2569
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide the right environment for this - running a wide variety of PHP applications. I realise that security is also important, but for now flexibility is more important to me. Note that I'm **not** looking for people to recommend hosting companies, I...
47
1412
by: Mike Williams | last post by:
I'm trying to decide whether or not I need to move to a different development tool and I'm told that VB6 code, when well written, can be ten times faster than vb.net, but that if its badly written it can be ten times slower. Is that correct? I'm quite competent at writing code myself and so most of my code will be quite well written, and I don't want to move to vb.net if well written VB6 code is ten times faster. Have I been told the...
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.