Home All Groups Group Topic Archive Search About

Errors when running from LAN server.

Author
27 Nov 2006 2:18 PM
kosecki
Hi,

i've vb .net 2005 application which perfectly run from local computer
(normal from disk), but when I share whole folder and try to launch
application I error:

http://www.fotosik.pl/pokaz_obrazek/pelny/9d255c709dbc1934.html

this is "absolute path information required" and refrence to line:
cnPubs = New SqlConnection()



cnpubs declared as property:
Private _cnPubs As SqlConnection
Public Property cnPubs() As SqlConnection
        Get
            Return _cnPubs
        End Get
        Set(ByVal Value As SqlConnection)
            _cnPubs = Value
        End Set
    End Property

cnPubs.ConnectionString = ("Integrated Security=SSPI;Data
Source=(local);" & "Initial Catalog=" & cat)

All permisions are set to FullTrust. Intranet has also fulltrust
permissions. Assemby has been signed with key.

Please help.

Author
27 Nov 2006 3:16 PM
Ken Tucker [MVP]
Hi,

       Try replacing (local) in the connection string with the machine name
the server is located on.

Ken
----------------

Show quoteHide quote
"kosecki" wrote:

> Hi,
>
> i've vb .net 2005 application which perfectly run from local computer
> (normal from disk), but when I share whole folder and try to launch
> application I error:
>
> http://www.fotosik.pl/pokaz_obrazek/pelny/9d255c709dbc1934.html
>
> this is "absolute path information required" and refrence to line:
> cnPubs = New SqlConnection()
>
>
>
> cnpubs declared as property:
> Private _cnPubs As SqlConnection
> Public Property cnPubs() As SqlConnection
>         Get
>             Return _cnPubs
>         End Get
>         Set(ByVal Value As SqlConnection)
>             _cnPubs = Value
>         End Set
>     End Property
>
> cnPubs.ConnectionString = ("Integrated Security=SSPI;Data
> Source=(local);" & "Initial Catalog=" & cat)
>
> All permisions are set to FullTrust. Intranet has also fulltrust
> permissions. Assemby has been signed with key.
>
> Please help.
>
>
Author
27 Nov 2006 3:27 PM
kosecki
Ken napisal(a):
> Hi,
>
>        Try replacing (local) in the connection string with the machine name
> the server is located on.
>
> Ken
> ----------------
>

This hack don't work.

PK
Author
27 Nov 2006 6:18 PM
Larry Linson
then you need to enable network protocols on the database server; or
open a port on the firewall

what version of SQL Server are you using?

-Aaron


kosecki wrote:
Show quoteHide quote
> Ken napisal(a):
> > Hi,
> >
> >        Try replacing (local) in the connection string with the machine name
> > the server is located on.
> >
> > Ken
> > ----------------
> >
>
> This hack don't work.
>
> PK
Author
27 Nov 2006 7:27 PM
kosecki
SQL Server 2000 Developer Edition

8.00.2039(SP4)

Enabled protocols:
Named Pipes And TCP/IP