473,396 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Two ASP.NET configuration questions

Hi,

Two issues bugging me:

1) When creating new web applicaiton projects using VS.NET and file share
mode, I always have to manually dip into IIS Manager and "create" the
application in there (by right clicking on the folder -> Properties ->
Create application). With another set up, this manuial step isnt required.
Once done (manually) as far as I can tell operation of development and
debugging are normal. Any idea why?

2) How do I change the user that the ASP.NET application runs under? I want
to access a SQL database on another machine, but instead of logging in as a
standard SQL user Id like to use an existing Windows domain user that weve
created specially for this purpose via integreated security. Can this be
done?

Thanks!

Spammy
Nov 18 '05 #1
3 949
1) Most likely a permissions issue. Make sure you are a member of VS
Developers; I believe that is the one. I have, however, had a setup where I
am not certain this worked, so there may be something even deeper.

2) This is not an ASP.NET issue, per se. Set up your web application where
there is no anonymous access. This forces a logon, which allows you to use
that user's domain account to access SQL Server.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"spammy" <me@privacy.net> wrote in message
news:2h************@uni-berlin.de...
Hi,

Two issues bugging me:

1) When creating new web applicaiton projects using VS.NET and file share
mode, I always have to manually dip into IIS Manager and "create" the
application in there (by right clicking on the folder -> Properties ->
Create application). With another set up, this manuial step isnt required.
Once done (manually) as far as I can tell operation of development and
debugging are normal. Any idea why?

2) How do I change the user that the ASP.NET application runs under? I want to access a SQL database on another machine, but instead of logging in as a standard SQL user Id like to use an existing Windows domain user that weve
created specially for this purpose via integreated security. Can this be
done?

Thanks!

Spammy

Nov 18 '05 #2
"Cowboy" <No************@comcast.netNoSpamM> wrote in message
news:Ow*************@TK2MSFTNGP09.phx.gbl...
1) Most likely a permissions issue. Make sure you are a member of VS
Developers; I believe that is the one. I have, however, had a setup where I am not certain this worked, so there may be something even deeper.


Spammy, you say that you have to create the application in IIS, but you
don't tell us which commands you use and what results or error messages you
receive. Please do. :-)

Are you logged into the same domain as the machine running IIS? Is this the
same machine you're developing on? I've seen issues when attempting to
manipulate IIS across domains.

Also, be aware that VS.NET greatly prefers to create web applications in
http://localhost/<somewhere>. Attempts to create a new web application
elsewhere can be interesting.

Please supply the details.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #3
>
Spammy, you say that you have to create the application in IIS, but you
don't tell us which commands you use and what results or error messages you receive. Please do. :-)

Are you logged into the same domain as the machine running IIS? Is this the same machine you're developing on? I've seen issues when attempting to
manipulate IIS across domains.

Also, be aware that VS.NET greatly prefers to create web applications in
http://localhost/<somewhere>. Attempts to create a new web application
elsewhere can be interesting.

Please supply the details.


oops sorry. firstly, i was developing locally, but now have moved to a dev
server (although i still got the same problem). the connection string and
settings im using are:

string connectionString = "data source=" + server + ";initial catalog=" + db
+ ";integrated security=SSPI;persist sec" +

"urity info=False;packet size=4096";

sqlc = new SqlConnection(connectionString);

the exception is thrown when i call sqlc.open() - 'failed login for user
"null"'. the problem is that there is no account that the asp user process
can use. changing the above to use a standard (user/password) SQL account
will make it to work however.

what i was asking was if i were to use a domain user ("ASPDomainUser", say)
to run the asp pages which has access to the SQL server it should login ok.
its just that im not sure how to get ASP processes to run in an account
other than the local ASP MACHINE USER one.
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Martin Strojek | last post by:
Hi, I have the following problem with developing some web site. I use Visual Studio 2003 to build a website. I tried Windows 2003 Server and switched now back to Windows XP with PWS but the...
8
by: Shimon Sim | last post by:
Hi I converted my existing ASP.NET project to VS.NET 2005. Build gives me some warnings about config file. I have custom section definition in web.config. Were there any changes in this for...
5
by: Ivan Weiss | last post by:
Hey all, I am trying to add a configuration file to my app so that I can store configuration options and provide a form to allow the user to change them. I know that these used to always be in...
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
2
by: Venkatesh Subbaramu | last post by:
I am new to UDB and had some questions regarding the default value of the configuration parameters .I have made changes to the defult values of logretain & locklist .The locklist default value was...
0
by: Heinz | last post by:
Hi all, is this the correct forum for questions regarding enterprise library (June 2005) ? I hope so.... I'm searching for closer information regarding encryption within configuration...
4
by: Andy | last post by:
Is it possible to use a Settings / Configuration file in VS 2005 / .Net 2.0 in a dll? Or is this feature limited to an executable? We have some .dlls where a configuration file would be helpful...
7
by: Steven Cliff | last post by:
I have started to use the new Enterprise Library (Jan 06) and have set up a skeleton project using the DAAB. This all seems to work fine apart from when I come to secure the app.config file via...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
6
by: Jeff Hegedus | last post by:
I have a dll that requires some configuration data. I put the configuration data in a custom configuration section in a config file that is loaded in the installation folder of the dll. If I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.