🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1463

Re: vb-sql dot net in netwerk....

#1463
From: bin
Date: Sat, 12 Mar 2005 15:45
67 lines
2918 bytes
ik zal ze eens overtijpen......hopelijk ziet iemant hier meer uit ...

De aanvraag voor toestemming van type 
System.Data.SqlCliet.SqlClientPermission,System.data, Version=1.0.5000.0, 
Culture : neutral, PublicKeyToken = b77a5c5619334e089 is mislukt

de mannier hoe ik de verbinding maak :

Dim tempvar As String

Dim conn As New SqlClient.SqlConnection

conn.ConnectionString = "packet size=8192;data source=drm-sv01;initial 
catalog=off-best;trusted_connection = true"

Try

conn.Open()

Dim da As SqlCommand = New SqlCommand("SELECT * FROM Tel_klant_nr where 
telefoonnummer like " & TextBox1.Text)

MessageBox.Show("ok")

Catch ex As Exception

tempvar = ex.Message

MessageBox.Show(ex.Message)

Finally

conn.Close()




"Gijs Beukenoot" <Gijs.DOT.Beukenoot@AT@Wanadoo.DOT.nl> schreef in bericht 
news:mn.62d87d53defb9da8.23024@Wanadoo.DOT.nl...
> bin was zeer hard aan het denken :
>> ok, ik zit hier met een probleem waar ik kop nog staart aan krijg.....
>>
>> ik zal het proberen zo goed mogelijk uit te leggen,
>> ik schrijf een applicatie in vb.net met een connectie naar een sql-server 
>> (windows2003SBS).
>> als ik deze applicatie opstart op de ontwikkel-pc krijg ik een 
>> foutmelding i.v.m. security.
>>
>> deze routinne in vb6.0 naar zelfde sql server geeft geen probleem.
>> vb.net aplicicatie op de server opstarten geeft ook geen probleem,
>>
>> dus enkel op een pc workstation (met xp sp2)
>>
>> enig idee waar ik moet zoeken????
>>
>> Thanks,
>
>
> Welke foutmelding?
> Welke code-regel(s)?
>
> -- 
> Your eyes are weary from staring at the CRT. You feel sleepy. Notice how 
> restful it is to watch the cursor blink. Close your eyes. The opinions 
> stated above are yours. When I snap my fingers, you cannot imagine why you 
> ever felt otherwise. <snap>
> 
Technical Details
Message-ID: <z8EYd.36014$bH5.3431526@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!skynet.be!skynet.be!195.130.132.77.MISMATCH!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <HE3Yd.34748$%F3.3321969@phobos.telenet-ops.be> <mn.62d87d53defb9da8.23024@Wanadoo.DOT.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,20fd2afcd61820d4
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!skynet.be!skynet.be!195.130.132.77.MISMATCH!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "bin" <cdr@ma.be>
Newsgroups: be.comp.programming
References: <HE3Yd.34748$%F3.3321969@phobos.telenet-ops.be> <mn.62d87d53defb9da8.23024@Wanadoo.DOT.nl>
Subject: Re: vb-sql dot net in netwerk....
Lines: 69
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <z8EYd.36014$bH5.3431526@phobos.telenet-ops.be>
Date: Sat, 12 Mar 2005 15:45:35 GMT
NNTP-Posting-Host: 81.82.204.20
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1110642335 81.82.204.20 (Sat, 12 Mar 2005 16:45:35 MET)
NNTP-Posting-Date: Sat, 12 Mar 2005 16:45:35 MET
Organization: Telenet Internet