T
Tony Johansson
Hello!
I have a CustomerData.aspx with two controls one SqlDataSource and one
DataGrid that is listing every Customer in the Northwind traders database. I
run the CustomerData from visual studio 2005 using the build in Development
Server so I use the File system. This works perfect
To make it work from IIS I created a virtual directory that points the the
physical path where my web site is located.
Now to the strange thing I just tried to run this page
http://localhost/Northwind/customerdata.aspx from the brower and
it worked without having added any account for ASPNET in Sql server.
As we all know it's acoount ASPNET that IIS is using when running aspx page
So I just entered this url http://localhost/Northwind/customerdata.aspx
into the browser and it works perfect.
It's correct that it worked when I run it from within visual studio 2005
because it was run under the account that I have used when logging into the
computer but as far as I can understand it should not work when running
under IIS because IIS is using ASPNET and there is no such account in Sql
server.
//Tony
I have a CustomerData.aspx with two controls one SqlDataSource and one
DataGrid that is listing every Customer in the Northwind traders database. I
run the CustomerData from visual studio 2005 using the build in Development
Server so I use the File system. This works perfect
To make it work from IIS I created a virtual directory that points the the
physical path where my web site is located.
Now to the strange thing I just tried to run this page
http://localhost/Northwind/customerdata.aspx from the brower and
it worked without having added any account for ASPNET in Sql server.
As we all know it's acoount ASPNET that IIS is using when running aspx page
So I just entered this url http://localhost/Northwind/customerdata.aspx
into the browser and it works perfect.
It's correct that it worked when I run it from within visual studio 2005
because it was run under the account that I have used when logging into the
computer but as far as I can understand it should not work when running
under IIS because IIS is using ASPNET and there is no such account in Sql
server.
//Tony