473,399 Members | 2,858 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,399 software developers and data experts.

Startup page problem on local

Here is my problem. I have a project MyWeb, but I created this project directly in the root, so you have

c:\inetpub\wwwroot\MyWeb.sl

and the default page is

c:\inetpub\wwwroot\default.aspx, which is the same as http://localhost/default.asp

From Visual Studio, when I launch the application it starts like this

http://localhost/MyWeb/default.asp

If I click any link that points to "\default.aspx", the page goes to

http://localhost/default.aspx ===> the MyWeb is no mor

It looks like the asp process actually runs 2 different sessions in this moment and I cannot understand why

Also, in one of my pages I use the WebControls.dll library for a treeview. Randomly, but usually after like 2-3 hours of work all of a sudden when I start the application it tells me that the library has access denied. Surely enough if I go immediately in the bin folder and try to delete the library indeed it is locked. What is really weird is that if http://localhost/MyWeb/default.aspx reports the library locked, then the other one http://localhost/default.aspx works and vice-versa

It's almost impossible to unlock that library. I need to exist VS, kill the aspnet_wp.exe manually, go and change the web.config file, all kinds of tricks, it takes me like 5 minutes..

Anybody has any idea what makes the library become locked all of a sudden after a few hours of work and how can I make the start page start directly in the root and not have the project name in the link

Thank you
iulia

Nov 18 '05 #1
1 1480
When you want to create links in asp.net pages, use the microsoft WebControl
<asp:HyperLink RunAt=Server NavigateUrl="~/" ...
The "~" respresents the root path (for you : http://localhost/MyWeb).
"\" is see as the web site root path by IIS ( http://localhost) and note as
the virtual folder path.

"Iulian Ionescu" <iu************@REMOVEearthlink.net> a écrit dans le
message de news:9C**********************************@microsof t.com...
Here is my problem. I have a project MyWeb, but I created this project directly in the root, so you have:
c:\inetpub\wwwroot\MyWeb.sln

and the default page is:

c:\inetpub\wwwroot\default.aspx, which is the same as http://localhost/default.aspx
From Visual Studio, when I launch the application it starts like this:

http://localhost/MyWeb/default.aspx

If I click any link that points to "\default.aspx", the page goes to:

http://localhost/default.aspx ===> the MyWeb is no more

It looks like the asp process actually runs 2 different sessions in this moment and I cannot understand why?
Also, in one of my pages I use the WebControls.dll library for a treeview. Randomly, but usually after like 2-3 hours of work all of a sudden when I
start the application it tells me that the library has access denied. Surely
enough if I go immediately in the bin folder and try to delete the library
indeed it is locked. What is really weird is that if
http://localhost/MyWeb/default.aspx reports the library locked, then the
other one http://localhost/default.aspx works and vice-versa.
It's almost impossible to unlock that library. I need to exist VS, kill the aspnet_wp.exe manually, go and change the web.config file, all kinds of
tricks, it takes me like 5 minutes...
Anybody has any idea what makes the library become locked all of a sudden after a few hours of work and how can I make the start page start directly
in the root and not have the project name in the link?
Thank you!
iulian

Nov 18 '05 #2

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

Similar topics

1
by: Don Peters | last post by:
I'm relatively new to ASP.NET. I'm running it under Win XP Pro, using Visual Studio 2002.NET (haven't migrated to VS2003 yet). The ASP.NET application I'm having a problem with was initially set...
1
by: jlee | last post by:
I'm pretty much a newbie on mysql, and I need some help. I am running mysql Ver 12.22 Distrib 4.0.24, for portbld-freebsd5.4 (i386) on a server hosting an active website. The site's developer...
10
by: Bernie Hunt | last post by:
This is probably a silly question, but I've gotten myself confused. My app has two forms, form1 and form2. form1 is the start up object in the propers. An event in form1 instantiates form2. ...
2
by: shumaker | last post by:
I am putting a key for my application to run at startup in SOFTWARE\Microsoft\Windows\CurrentVersion\Run My goal is to allow individual users to toggle this on and off, so I was placing the key...
3
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.