Geeks Talk

Prepare for your Next Interview




ASP.NET Virtual Directory

This is a discussion on ASP.NET Virtual Directory within the ASP.NET forums, part of the Web Development category; i've created a virtual directory for my asp.net application that includes an SQL connection. I have given the connection string in web.config file. though the page opens, ...


Go Back   Geeks Talk > Web Development > ASP.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-16-2008
Junior Member
 
Join Date: Feb 2008
Location: India
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
amitkumar316 is on a distinguished road
ASP.NET Virtual Directory

i've created a virtual directory for my asp.net application that includes an SQL connection. I have given the connection string in web.config file. though the page opens, i get a connection error.

plz help me out !!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-18-2008
Contributing Member
 
Join Date: Jun 2007
Location: Delhi, India
Posts: 50
Thanks: 0
Thanked 21 Times in 17 Posts
vikasvaidya is on a distinguished road
Re: ASP.NET Virtual Directory

Amit, could u pls provide the code how r u using connection and what the error u got actually. Then its I'll be able to understand the problem.

---V V----
Regards,
Vikas Vaidya
Reply With Quote
  #3 (permalink)  
Old 02-18-2008
Junior Member
 
Join Date: Feb 2008
Location: India
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
amitkumar316 is on a distinguished road
Re: ASP.NET Virtual Directory

Quote:
Originally Posted by vikasvaidya View Post
Amit, could u pls provide the code how r u using connection and what the error u got actually. Then its I'll be able to understand the problem.

---V V----
Regards,
Vikas Vaidya
first of all i use asp.net 2.0

i created my connection in web.config
Quote:
<appSettings>
<add key="conn" value="server=.;database=online_shopping;integrated security=true"/>
</appSettings>
in form_load of frmLogin.aspx:
Try
con = New SqlConnection(ConfigurationManager.AppSettings("conn"))
con.Open()
Catch ex As Exception
Response.Write("Connection Error")
End Try

i created a new virtual directory & gave it read & run permissions. then i went to the properties tab of the above created virtual directory & clicked the documents tab. i added frmLogin.aspx & moved it to top.

in ie:
the page opend with the error i specified in catch block.
Reply With Quote
Reply

  Geeks Talk > Web Development > ASP.NET


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Active Directory Hemanth Kumar G Windows 1 05-13-2008 09:52 AM
C++ Pure Virtual Function and Virtual Base Class Lokesh M C and C++ 0 10-04-2007 07:29 AM
I can't see any files in OS Solaris 10 directory suman.solaris Sun Certification 1 09-11-2007 09:38 AM
A derivation inherits both a virtual and non-virtual instance Geek_Guest OOPS 1 07-18-2007 05:51 AM
Oracle Directory problem vidya_kr Oracle 1 06-25-2007 08:27 AM


All times are GMT -4. The time now is 06:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved