473,698 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BC30456: 'StartupPath' n'est pas un membre de 'System.Web.Htt pApplicationSta te'

moi
Hello,

Dim strConn As String = "PROVIDER=Micro soft.Jet.OLEDB. 4.0;DATA SOURCE=" &
Application.Sta rtupPath & "\app_data\aaaa aa.mdb;"

Application.Sta rtupPath does'nt work with ASP.NET 2 :

BC30456: 'StartupPath' n'est pas un membre de
'System.Web.Htt pApplicationSta te'

thanks !
Mar 9 '06 #1
2 3134
StartupPath was never a property of the HttpApplication class. It was (and
is) available in WinForms though.

You should really consider doing something like

Server.MapPath( "/app_data/aaaa.mdb")

esseyons en français....

La proprieté StartupPath nas jamais existé pour l'object HttpApplication .
Pour les application windows (non-web), l'object Application de
System.Windows. Forms contient cette proprieté - peut-être que tu tes mélange
avec cela.

Tu devrais considerer d'asseyé d'utiliser la metode Server.MapPath

Pardonnez mon français écrit!

Karl

--
http://www.openmymind.net/

"moi" <me@isa.org> wrote in message
news:uR******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

Dim strConn As String = "PROVIDER=Micro soft.Jet.OLEDB. 4.0;DATA SOURCE=" &
Application.Sta rtupPath & "\app_data\aaaa aa.mdb;"

Application.Sta rtupPath does'nt work with ASP.NET 2 :

BC30456: 'StartupPath' n'est pas un membre de
'System.Web.Htt pApplicationSta te'

thanks !

Mar 9 '06 #2
moi
Merci !
Très bon français !
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> a écrit dans le message de news:
eb************* *@TK2MSFTNGP09. phx.gbl...
StartupPath was never a property of the HttpApplication class. It was (and
is) available in WinForms though.

You should really consider doing something like

Server.MapPath( "/app_data/aaaa.mdb")

esseyons en français....

La proprieté StartupPath nas jamais existé pour l'object HttpApplication .
Pour les application windows (non-web), l'object Application de
System.Windows. Forms contient cette proprieté - peut-être que tu tes
mélange
avec cela.

Tu devrais considerer d'asseyé d'utiliser la metode Server.MapPath

Pardonnez mon français écrit!

Karl

--
http://www.openmymind.net/

"moi" <me@isa.org> wrote in message
news:uR******** ******@TK2MSFTN GP11.phx.gbl...
Hello,

Dim strConn As String = "PROVIDER=Micro soft.Jet.OLEDB. 4.0;DATA SOURCE=" &
Application.Sta rtupPath & "\app_data\aaaa aa.mdb;"

Application.Sta rtupPath does'nt work with ASP.NET 2 :

BC30456: 'StartupPath' n'est pas un membre de
'System.Web.Htt pApplicationSta te'

thanks !


Mar 9 '06 #3

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

Similar topics

1
5580
by: Zenobia | last post by:
How do I bind an array, arrayList or even a stack to a repeater containing hyperlinks. The data structure (array, arrayList or even a stack) has dates in ISO format "YYYY-MM-DD". The repeated hyperlinks will be displayed, for example, in this form: <a href='default.aspx?arc=2004-06-29'>2004-06-29</a> or, better:
5
2131
by: Natan | last post by:
Hi! I have an object stored in the HttpApplicationState collection of my site, but i would like to mantain the state of this object even if the application restart, so in case of any problem or when I change something in the web.config or add anything to the bin directory, i can load the last values from somewhere and continue the work. I'm using serialization to accomplish this, and it works ok. But i'm serializing the object to a...
5
4295
by: z. f. | last post by:
i need to get the computer name from an aspx page. i use System.Windows.Forms.SystemInformation.ComputerName() and it's working fine, but in second thought, it might not be recomended to use the system.windows.forms.dll inside an asp-dot-net code. any information here will help. TIA, z.
1
1608
by: Sean | last post by:
Hi I created a VB.NET console app. I try to use the Application.StartupPath() but got an error: Name 'Application' is not declared. Any idea? Thanks. Sean
3
1997
by: ericw3 | last post by:
I am switching from Java to the .Net framework. In order to separate page layout design from the application code, I studied the codebehind tutorial by John at http://www.asp101.com/articles/john/codebehindnovs/default.asp In my GetQueryResult.aspx, I defined a DataGrid as follows: <asp:DataGrid ID ="dgQueryResults" runat="server" AllowPaging="True"
0
3046
by: ydesilets | last post by:
I my name is Yohan. Id did have an error like BC30456: 'Title' is not a member of 'ASP.... I looked in many forum without success. Then I found something related to the BC30456 error number. On my application the error was cause by the Inherits tag. Both of my child forms had the same Inherits "_Default". Then I changed one and it is ok now
7
11465
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. I'm trying create a function in javascript to compare dates between calendar selected dates(that's not really my problem yet). I can't get the html to recognize the function that i have created. When i
1
5149
by: les | last post by:
I'm getting this error "BC30456: 'IsBodyHtml' is not a member of 'System.Net.Mail.SmtpClient'" when trying to submit a form and send email. If I remove the line "MailObj.IsBodyHtml = True" the mail sends without error, but html markup is visible in the body of the email. Any suggestions? Code below:
1
2828
by: =?Utf-8?B?bW5vd29zYWQ=?= | last post by:
We have an ASP.NET 2.0 web site, running on IIS version 6.0, Windows 2003 server. On the Application_Start event of the Global.asax.cs, we load configuration values to the HttpApplicationState dictionary, to be used throughout by all web site pages, on a read-only fashion. The problem we are experiencing is that, after running for some hours, the values of the HttpApplicationState are lost. Our code never assumes there is a possibility...
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7739
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.