473,545 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

solution requires web project in default site

single machine - W2Kserver , IIS5 , VS.NET 2003

I spent some time struggling with what looked like the dreaded asp.net
debugging configuration problem but none of the solutions for this did any
good.
Outside of the ide I am able to browse to an existing web app with no
problem and I can load the web app project in the visual studio ide and run
it 'without debugging' . But I am unable to run it with debugging within the
ide - "Error while trying to run project." note that there isn't the usual
" Can't start debugging ... " stuff. I am also unable to create any new web
apps - "The web server reported the following " .. blah blah ... "500
internal server error".
This is happening with web projects on a web site other than the default -
on a whim i tried creating a webapp on the default site & surprise surprise
it works. Ok - so maybe this is a permissions problem on all sites other
than the default site (?) - but not so fast - as it turns out , having this
default site webapp included in the solution has the unexpected side effect
of now allowing me to run & create web apps in non-default sites !!! If i
remove this default site web app from the solution everything keep working
fine. If i restart studio things are still working ok. BUT if i restart
IIS I am right back to where i started - unable to create or run non-default
site web apps in the ide. If i re-add the default site web app to the
solution - everything is peachy once again. I can restart studio & IIS to
my hearts content and have everything work just fine as long as i include a
default site web app in the solution.
this is not restricted to any particular solution , and is 100% reproducable
in all current solutions and by creating a new blank solution

Any one have any ideas what is going on here ?

gerry
Nov 18 '05 #1
5 2081
Hi Gerry,

As for this issue, I'd like to state my understanding first:
You are developing ASP.NET web application on a W2Kserver machien with
IIS5, VS.NET 2003,( .net framwork1.1)?
Currently, you have two different website in the IIS (one is the default
site). You have a solution which contains several projects , two of them
are web project which are created on another website(no the default one,
yes?), however , you found you will have problem when use debug mode to run
the web project in VS.NET.
Also, you found you even can't create a new web project under the new site
as long as there is no default site webproejct included in your solution
and if there is one default site's web project, you 're ok to create or
debug web application in the new site, yes?
If there is anything I misunderstand, please feel free to correct me.

Regarding on this issue, I'd like to confirm some further things:
1. Are all the webprojects originally in your solution created locally on
the w2k server machine in the IIS's new site(other than the default site)?
2. Have you tired opening them separately from the solution , just as a
single web applicatoin via VS.NET? I think you can open the webproject's
".csproj.webinf o" or the solution's ".sln" file , there is the webproject's
url address info in them, check them to see whether they're specified to
the correct value.

2. Since you have mulit websites in the IIS on the win2k server, how do you
distinct them, via port? or host headers?
Then, when you create a new web project on the new website, how do you
specify the ip address? It would be helpful if you have a check on the IIS
setting between the default site and the new site.

3. Such error like 500 when creating web project on webserver sometimes
caused by the permission setting in the website. If so , please
1)open up IIS (start -> Run -> Type inetmgr. This will open up the
Internet Services Manager.
2) Right-Click on the default website and choose Properties
3) Choose the Home Directory Tab
4) Then ensure that the Read checkbox is checked and the execute
permission is "read only"

Please have a look at the above items. If you have any new findings or
question, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #2
Hi Steven , thanks for the response , see answers inline :

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:0r******** ******@cpmsftng xa10.phx.gbl...
Hi Gerry,

As for this issue, I'd like to state my understanding first:
You are developing ASP.NET web application on a W2Kserver machien with
IIS5, VS.NET 2003,( .net framwork1.1)?
Currently, you have two different website in the IIS (one is the default
site).
Correct.
You have a solution which contains several projects , two of them
are web project which are created on another website(no the default one,
yes?), however , you found you will have problem when use debug mode to run the web project in VS.NET.
Correct. ( any number of web projects )
Also, you found you even can't create a new web project under the new site
as long as there is no default site webproejct included in your solution
and if there is one default site's web project, you 're ok to create or
debug web application in the new site, yes?
Correct.
If there is anything I misunderstand, please feel free to correct me.

Regarding on this issue, I'd like to confirm some further things:
1. Are all the webprojects originally in your solution created locally on
the w2k server machine in the IIS's new site(other than the default site)?
Yes.
2. Have you tired opening them separately from the solution , just as a
single web applicatoin via VS.NET?
Yes - when i try to run I am prompted to save a new solution for the project
with same result.
I think you can open the webproject's
".csproj.webinf o" or the solution's ".sln" file , there is the webproject's url address info in them, check them to see whether they're specified to
the correct value.
Yes the url specified in both of these files is correct :
http://dev.domain.ca/WebApplication1...cation1.csproj
2. Since you have mulit websites in the IIS on the win2k server, how do you distinct them, via port? or host headers?
host headers.
Then, when you create a new web project on the new website, how do you
specify the ip address?
I specify the url ie, http://dev.domain.ca/WebApplication1 , I am then
prompted to locate the physical disk location because Studio defaults the
file share path to \\dev.domain.ca \wwwroot$\WebAp plication1 which should
actually be c:\InetPub\dev. domain.ca\WebAp plication1
It would be helpful if you have a check on the IIS
setting between the default site and the new site.
sorry - I am not sure which settings you are referring to - other than home
directory & host header , both sites are (apparently) identical.
3. Such error like 500 when creating web project on webserver sometimes
caused by the permission setting in the website. If so , please
1)open up IIS (start -> Run -> Type inetmgr. This will open up the
Internet Services Manager.
2) Right-Click on the default website and choose Properties
3) Choose the Home Directory Tab
4) Then ensure that the Read checkbox is checked and the execute
permission is "read only"
Read is checked and Script Only ( i assume that is what you meant to say )
is selected.
this is true for all sites.
Please have a look at the above items. If you have any new findings or
question, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Nov 18 '05 #3
I decided to try re-creating the website and it cleared up the problem.
I am assuming that there was some problem perhaps buried in the IIS meta
data that is fixed up by deleting & recreating the sites.

thanks for your time with this.
let me know if you want any further info regarding this issue for future
reference.

gerry


"gerry" <ge**@hotmail.c om> wrote in message
news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Hi Steven , thanks for the response , see answers inline :

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:0r******** ******@cpmsftng xa10.phx.gbl...
Hi Gerry,

As for this issue, I'd like to state my understanding first:
You are developing ASP.NET web application on a W2Kserver machien with
IIS5, VS.NET 2003,( .net framwork1.1)?
Currently, you have two different website in the IIS (one is the default
site).
Correct.
You have a solution which contains several projects , two of them
are web project which are created on another website(no the default one,
yes?), however , you found you will have problem when use debug mode to

run
the web project in VS.NET.


Correct. ( any number of web projects )
Also, you found you even can't create a new web project under the new site as long as there is no default site webproejct included in your solution
and if there is one default site's web project, you 're ok to create or
debug web application in the new site, yes?


Correct.
If there is anything I misunderstand, please feel free to correct me.

Regarding on this issue, I'd like to confirm some further things:
1. Are all the webprojects originally in your solution created locally on the w2k server machine in the IIS's new site(other than the default

site)?
Yes.
2. Have you tired opening them separately from the solution , just as a
single web applicatoin via VS.NET?
Yes - when i try to run I am prompted to save a new solution for the

project with same result.
I think you can open the webproject's
".csproj.webinf o" or the solution's ".sln" file , there is the webproject's
url address info in them, check them to see whether they're specified to
the correct value.


Yes the url specified in both of these files is correct :
http://dev.domain.ca/WebApplication1...cation1.csproj
2. Since you have mulit websites in the IIS on the win2k server, how do

you
distinct them, via port? or host headers?


host headers.
Then, when you create a new web project on the new website, how do you
specify the ip address?


I specify the url ie, http://dev.domain.ca/WebApplication1 , I am then
prompted to locate the physical disk location because Studio defaults the
file share path to \\dev.domain.ca \wwwroot$\WebAp plication1 which should
actually be c:\InetPub\dev. domain.ca\WebAp plication1
It would be helpful if you have a check on the IIS
setting between the default site and the new site.


sorry - I am not sure which settings you are referring to - other than

home directory & host header , both sites are (apparently) identical.
3. Such error like 500 when creating web project on webserver sometimes
caused by the permission setting in the website. If so , please
1)open up IIS (start -> Run -> Type inetmgr. This will open up the
Internet Services Manager.
2) Right-Click on the default website and choose Properties
3) Choose the Home Directory Tab
4) Then ensure that the Read checkbox is checked and the execute
permission is "read only"


Read is checked and Script Only ( i assume that is what you meant to say )
is selected.
this is true for all sites.
Please have a look at the above items. If you have any new findings or
question, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx




Nov 18 '05 #4
Hi Gerry,

Thanks for the followup. Yes, the metabase of the IIS may be a potential
cause. Also, it is possible that the ASP.NET1.1 installation may be
corrupted. Next time maybe you can also try using the aspnet_regiis.e xe
tool to uninstall and reinstall the asp.net , just type the following
command:
aspnet_regiis -u
aspnet_regiis -i

Anyway, I'm glad that you clearup the issue. If you meet any further
problem, please always feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5
Thanks Steven ,
I did try aspnet_regiis -i , but it never occurred to me to use
aspnet_regiis -u 1st.
I will keep this in mind for future reference.

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:JZ******** *****@cpmsftngx a10.phx.gbl...
Hi Gerry,

Thanks for the followup. Yes, the metabase of the IIS may be a potential
cause. Also, it is possible that the ASP.NET1.1 installation may be
corrupted. Next time maybe you can also try using the aspnet_regiis.e xe
tool to uninstall and reinstall the asp.net , just type the following
command:
aspnet_regiis -u
aspnet_regiis -i

Anyway, I'm glad that you clearup the issue. If you meet any further
problem, please always feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #6

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

Similar topics

3
1994
by: Sorin Dolha | last post by:
Hello, We intend to create an ASP.NET-based Web application (hosted on Internet Information Services, or IIS) and one feature of the application needs to allow the end user to upload photos to the server. However, our customer requests that both of these two objectives to be supported by the design of the solution: 1. The photos should...
0
3207
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. ...
10
2298
by: Tim Mulholland | last post by:
My company is about to begin working on an ASP.NET application. There are going to be two primary developers working on this project. It will be a fairly deep project (lots of lines of code) but not a very wide project (pretty much limited to a few purposes, not many ways to split it up). I've done alot of ASP.NET development before by myself...
2
2038
by: Avi Shilon | last post by:
Hi, I'm trying to create a Solution that contains several projects within it, one of which is an ASP.NET web application and the others are class libraries (Data and Business tiers, which are seperate projects). When i created the two class library projects, the projects were added to the root directory of the solution, but when i tried...
4
1292
by: Problem doesn't solve | last post by:
Hello. I'm having a big problem with asp .net. Initially, when I create a new web applicaction and I try to open an aspx page, I get an error message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an...
4
1378
by: Anbu | last post by:
Hi All, I'm creating an ASP.NET 2.0 web solution using VS 2005. The solution (.sln) contains 4 projects, one depends on another. I need to compile the project files using automated process, which will call the compilation process project by project. How can i compile a project alone from the solution?? In earlier version of VS, the...
3
2633
by: superbee76 | last post by:
Staying with in the DotNetNuke 3.2 framework I'm attempting to find the best, simplest solution for making callbacks/RPCs/Ajax requests. The biggest obsticles seem to be staying within the DotNetNuke framework recommendations: *** 1. Default.aspx - One page, one entry point Staying with this is great because it handles security for
4
3548
by: | last post by:
I have learned about compartmentalizing my code base using Class Libraries. I have my common code such as my ORM framework broken out into their own Class Libraries, which are referenced as projects from my Website. I also have a common set of DLLs I use across all of my applications. It would be great if I could put all of those DLLs into...
2
1520
by: Jaap | last post by:
I have got 1 VS-solution with 1 project and multiple folders. Each folder consists of files for 1 website with cultural differences with a specific default.htm. so: \root\global.asax \root\deDE\default.htm \root\frFR\default.htm \root\NLBE\default.htm
0
7475
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...
0
7409
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...
0
7921
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...
1
7437
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3465
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...
1
1900
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
1
1023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
720
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...

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.