| re: ASP.Net Application - SQL Server 2000 Access Problem on Windows 2003 server from XP
might be the prob with SP2's firewall feature. try to re-configure the
firewall to allow any traffics from/to sql server.
rgds,
"bk" <b.kasmai@uea.ac.uk> wrote in message
news:1104422320.802990.247280@c13g2000cwb.googlegr oups.com...[color=blue]
> Vikram
> I think you might be the preson who can take me out of my missery. I
> have been going crazy with a problem similar to yours. I have been
> googling like mad but with no luck until I came across your posting. I
> get "SQL Server is unavailable or does not
> exist" error while developing asp.net application in vs2003's IDE
> development mode. The sql2000 is installed on a windows 2003 server. I
> am able to connect to server using Query Analyzer and Enterprise
> Manager. My connection string is:
>
> string sConStr= "Server = 192.168.0.28;User ID=myuser;Initial
> Catalog=pubs;Password=mypassword"
>
> I use the same connection string succesfully connecting to a windows
> 2000 server with sql2000 with exactly the same database.
>
> My development machine is a XP with SP2. My server machine is a member
> of a domain which I have no control.
>
> I have not yet applied your solution but I can not understand why it
> should be necessary to go through such complex steps to solve a problem
> arising from simple use of standard Microsoft tools and components.
>
>
>
>
> Vaap wrote:[color=green]
> > This was a very tough problem to solve and I am posting my results so
> > that others might benefit from it. The issue is with accessing SQL
> > server on Windows 2003 from another machine through ASP.Net.
> >
> > After lot of reading and googling, I found following steps and I do
> > not understand fully well their rationale but the end result is - it
> > worked.
> >
> > If SQL Server is installed on Windows 2003 server and you are
> > attempting to access this through ASP.Net from a remote machine then
> > there are problems in remote access.
> >
> > The domain should have domain\ASPNET account and it should have a
> > strong password. On you local machine, modify ASPNET password to
> > strong password say admin123. The password on both machines should be
> > same.
> >
> > Go to IIS console Directory>Security>Edit on your virtual directory.
> > Check annonymous access and specify user name and password as ASPNET
> > and password as admin123. Make sure that the "Allow IIS to control
> > password" is unchecked. Integrated Windows Authentication should be
> > checked for debugging the application.
> >
> > Go to SQL Server Enterprize manager console.
> >
> > Add account domain\Administrator and make sure that it has System
> > Administrator Server role assigned. Otherwise SQL Agent will not
> > start.
> >
> > Add account domain\ASPNET and allow access to your database and grant
> > db_owner (??)
> >
> > Go to your web.config and add a line <identity impersonate="true" />
> > immediately after <authentication> tag.
> >
> > The connection string has sql server login say 'sa' and SQL server[/color]
> was[color=green]
> > in mixed mode of authentication.
> >
> > After above, the connection to SQL Server should work. There might be
> > some other way but this worked for me after lot of combinations. I[/color]
> did[color=green]
> > not want to change machine.config as it affects other applications.
> > The other posts suggested granting "system" privilege or "as a part[/color]
> of[color=green]
> > operating system" to ASPNET account but it did not work for me and
> > changing machine.config for impersonating the use account.[/color]
>[/color] |