Home All Groups Group Topic Archive Search About
Author
10 Apr 2006 9:42 PM
Buc
VS2003
I have a windowsform app that I wrote in VB.net. I am using SQL2005
reporting services on 2003 server. In my vb.net code I place the URL of the
report in a link that does a
Process.Start("http:\\www.myserver.com\reports....").
The windows 2k3 server has (needs) Windows Authen so it prompts me to login
in with a standard windows logon box. I enter the username and password of a
common user on the server and the web page shows up. I would like to pass
the credentials through to the server from the vb app without prompting them
every time they try to access the server. How can I do this? I tried to use
impersonation code using WNetAddConnection2 passing
"http:\www.myserver.com...",username,password,"reports" with the NETRESOURCE
struc
but I get error network name not found. I cant find the right parameter
combo. How can I pass credentials to the web server, instead of manually
entering them every time. I have already authenticated the user when he
first runs the app. The server is an internet server. I thought about using
SENDKEYS but that seems cheesy...
Thanks,
BUC

Author
10 Apr 2006 9:30 PM
Herfried K. Wagner [MVP]
<Buc> schrieb:
> I have a windowsform app that I wrote in VB.net. I am using SQL2005
> reporting services on 2003 server. In my vb.net code I place the URL of
> the report in a link that does a
> Process.Start("http:\\www.myserver.com\reports....").

Replace "\\" with "//" and "\" with "/".

> "http:\www.myserver.com...",username,password,"reports" with the
> NETRESOURCE

Dito.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>