Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 19th, 2008, 08:38 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna Send a message via Skype™ to dpkbahuguna
Default Apache

Can anyone tell me pls how to configure Apache web server for dotnet applications.

Thanks !!

DPK..
__________________
DPK..
Reply With Quote
  #2 (permalink)  
Old May 19th, 2008, 03:58 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,409
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Not knowing which server you are running I can think of two options.

Options A (Windows Server):
1) Disable the apache service (or change its listen port)
2) Enable IIS (or change its web site port(s))
3) Install .NET with ASP.NET

Option B (Non-Windows)
1) Install Apache
2) Install Mono

Beyond that I don't know. I'm not sure what the state is of the Mono project as far as what is supported. It's something I'd like to play with myself at some point.

-Peter
compiledthoughts.com
Reply With Quote
  #3 (permalink)  
Old May 20th, 2008, 12:28 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna Send a message via Skype™ to dpkbahuguna
Default

thanks for your reply!
 pls tell me in detail how can I change IIS port number and how can I disable the Apache.

waiting for your reply...thanks agian..

DPK..
Reply With Quote
  #4 (permalink)  
Old May 20th, 2008, 04:10 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,409
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Open the properties dialog of your web site node (typically named "Default Web Site" in XP) in IIS manager. Under the "Web Site" tab, click the "Advanced..." button next to the "IP Address:" drop down list. There you can edit the IP address, port and optional host header that is bound to the site.

-Peter
compiledthoughts.com
Reply With Quote
  #5 (permalink)  
Old May 20th, 2008, 11:18 PM
Friend of Wrox
 
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna Send a message via Skype™ to dpkbahuguna
Default

hello friend I have tried that but dont know what was the problem that it was not connecting however I have run it by stoping the OracleHttpService but I am having antoher problem that when I run my dotnet application it is giving me error like:
================================================== ========
Server Error in '/deploysql' Application.
SELECT permission denied on object 'ITEM_DET', database 'master', schema 'dbo'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: SELECT permission denied on object 'ITEM_DET', database 'master', schema 'dbo'.

Source Error:

Line 63: {
Line 64: SqlDataAdapter DA = new SqlDataAdapter("select * from item_det", CON);
Line 65: DA.Fill(DS);
Line 66: GRD_ITEMDET.DataSource = DS;
Line 67: GRD_ITEMDET.DataBind();
================================================== ========

help me please!!!

thanks!!!

DPK..
Reply With Quote
  #6 (permalink)  
Old May 21st, 2008, 09:34 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,409
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It sounds like you are using a very non-standard setup. I don't know anything about Oracle HTTP Service. I have never heard of running ASP.NET on Apache on Windows. There isn't much point when you can just run IIS.

-Peter
compiledthoughts.com
Reply With Quote
  #7 (permalink)  
Old May 21st, 2008, 09:58 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna Send a message via Skype™ to dpkbahuguna
Default

now there is no issue of apache here I am running it on IIS and when I run aspdotnet application which does not has any database connection my application is running fine on IIS but if I use any database connection it is giving me error as I put above .....

I hope u get me now!!

thanks!

DPK..
Reply With Quote
  #8 (permalink)  
Old May 21st, 2008, 11:09 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,409
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It would appear to me that the error message tells you everything you need to know:

   "SELECT permission denied on object 'ITEM_DET', database 'master', schema 'dbo'."

It would seem that the user you are connecting with doesn't have the necessary rights to execute the query.

-Peter
compiledthoughts.com
Reply With Quote
  #9 (permalink)  
Old May 21st, 2008, 11:14 AM
Friend of Wrox
 
Join Date: Jan 2006
Location: Hardwar, Uttranchal, India.
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna Send a message via Skype™ to dpkbahuguna
Default

ya I know that but how to give rights to the users?

DPK..
Reply With Quote
  #10 (permalink)  
Old May 21st, 2008, 11:33 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,409
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://www.google.com/search?q=GRANT+T-SQL

-Peter
compiledthoughts.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
have problem with apache preetissharma Apache Tomcat 1 November 9th, 2006 02:29 AM
Apache Tomcat atul.kumar@drydentech.com Apache Tomcat 3 April 19th, 2006 07:24 AM
configuring apache Gaurab Classic ASP Databases 0 September 28th, 2005 12:58 PM
Apache javaApache BOOK: Professional Apache Tomcat 0 September 22nd, 2004 03:53 AM
Apache Chudz BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 July 10th, 2004 08:00 AM



All times are GMT -4. The time now is 11:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.