Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Setup SQL connection on IIS7

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS: External Disk for asp pages  
Author Message
Thunder

External


Since: Nov 14, 2007
Posts: 1



(Msg. 1) Posted: Wed Nov 14, 2007 10:10 am
Post subject: Setup SQL connection on IIS7
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi All,
I am new to IIS and am trying to write a simple ASP.NET application.
My ADO.net code works fine in the development environment (outside IIS); but
I can't get it two work within IIS7. This is all on my local machine not a
production web server.
I tried removing the default connection, which is the localSQL connection
and create a new one attaching to my SQL Server on the network, but it fails
when launching the web page indicating that it can no longer find the
localSQl connection. It's odd to me because I never, in any place, wrote
code using any local connection.

Anyway, if someone would be so kind and steer me in the correct direction
for setting up a proper connection to my sql server on IIS7 I would
appreciate it.

Thanks.

 >> Stay informed about: Setup SQL connection on IIS7 
Back to top
Login to vote
Trevor Benedict

External


Since: Nov 14, 2007
Posts: 28



(Msg. 2) Posted: Wed Nov 14, 2007 2:16 pm
Post subject: Re: Setup SQL connection on IIS7 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Would you mind posting the ASP.NET code.

Regards,

Trevor MCSD


"Thunder" <jrugo DeleteThis @patmedia.net> wrote in message
news:06AC94E6-52AC-4173-9BC5-7094CCE4A667@microsoft.com...
> Hi All,
> I am new to IIS and am trying to write a simple ASP.NET application.
> My ADO.net code works fine in the development environment (outside IIS);
> but I can't get it two work within IIS7. This is all on my local machine
> not a production web server.
> I tried removing the default connection, which is the localSQL connection
> and create a new one attaching to my SQL Server on the network, but it
> fails when launching the web page indicating that it can no longer find
> the localSQl connection. It's odd to me because I never, in any place,
> wrote code using any local connection.
>
> Anyway, if someone would be so kind and steer me in the correct direction
> for setting up a proper connection to my sql server on IIS7 I would
> appreciate it.
>
> Thanks.

 >> Stay informed about: Setup SQL connection on IIS7 
Back to top
Login to vote
Rick Barber

External


Since: Nov 08, 2007
Posts: 50



(Msg. 3) Posted: Thu Nov 15, 2007 7:08 am
Post subject: Re: Setup SQL connection on IIS7 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Are you using ASP.Net 2.0 and membership and roles? If so, you will note
that there is a LocalSQLServer connection string and references to it in
Machine.config which may be what you are running into.

--
Rick Barber

http://www.orcsweb.com
Managed Complex Hosting
#1 in Service and Support

"Thunder" <jrugo RemoveThis @patmedia.net> wrote in message
news:06AC94E6-52AC-4173-9BC5-7094CCE4A667@microsoft.com...
> Hi All,
> I am new to IIS and am trying to write a simple ASP.NET application.
> My ADO.net code works fine in the development environment (outside IIS);
> but I can't get it two work within IIS7. This is all on my local machine
> not a production web server.
> I tried removing the default connection, which is the localSQL connection
> and create a new one attaching to my SQL Server on the network, but it
> fails when launching the web page indicating that it can no longer find
> the localSQl connection. It's odd to me because I never, in any place,
> wrote code using any local connection.
>
> Anyway, if someone would be so kind and steer me in the correct direction
> for setting up a proper connection to my sql server on IIS7 I would
> appreciate it.
>
> Thanks.
 >> Stay informed about: Setup SQL connection on IIS7 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]