Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 4th, 2005, 09:28 AM
Authorized User
 
Join Date: Jun 2003
Location: pgh, pa, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to drdexter33 Send a message via MSN to drdexter33
Default Can't run any local web sites created in VS 2005 1

this is insane.

I set up the web site administration tool for an application we're writing, and when I clicked "take application offline", and everything broke.

I cannot figure out how to fix this problem and none of the posts I've read in this forum have any meaningful suggestions or resolutions.

Please help.

thanks.

doug
 
Old October 4th, 2005, 12:21 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you define "everything broke"?

What problem are you experiencing? Do you have a file called app_offline.htm in the root of your site?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old October 4th, 2005, 01:11 PM
Authorized User
 
Join Date: Jun 2003
Location: pgh, pa, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to drdexter33 Send a message via MSN to drdexter33
Default

Hello, thanks for your reply.

Well I had several web applications running in my solution, and none would run.

However, I DID find a workaround for this problem.

It seems when you choose from the menu Website->Asp.Net Configuration,
the current applications in the solution somehow (I haven't figured out how yet),
these solutions get bound to a directory in the CONFIG directory in the Framework.

------------------------------------------------------------------------------------------
In my case, here:
------------------------------------------------------------------------------------------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONF IG

In this there is a web.config file.

1). I opened it.
2). Searched for this node:
      <httpRuntime enable="false" />
      and set the value to true.
------------------------------------------------------------------------------------------
This fixed my original post problem, however several more popped up.
When you set some of the settings in the Web Site Administration Tool, it in turn makes changes to the local web.config file.
In my case, we're using impersonation for the applications, so it looks like it threw these 2 nodes into my web.config file:
------------------------------------------------------------------------------------------

1). <roleManager defaultProvider="AspNetSqlRoleProvider" />
2). <authentication mode="Forms"/>
This also caused some problems.
I commented them out.

------------------------------------------------------------------------------------------
Now I'm getting another error in the Web Site Administration Tool on the Security Tab:
------------------------------------------------------------------------------------------
There is a problem with your selected data store.
This can be caused by an invalid server name or credentials, or by insufficient permission.
It can also be caused by the role manager feature not being enabled.
Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem:
Value cannot be null. Parameter name: virtualPath
------------------------------------------------------------------------------------------
Which I think I've tracked down to a problem with the SQL Server Express Connection.

------------------------------------------------------------------------------------------
One other question:
------------------------------------------------------------------------------------------
Can you remove the Web Site Administration Tool from all of the applications?

In other words, it seems as if it is a little buggy, and we may build something from scratch.

THanks for any help you can provide in this area.

Doug
 
Old October 4th, 2005, 02:37 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The ASP.NET Administration tool isn't really a part of your web site or solution anymore. In previous beta builds, some of the files were added to your application.

However, everything is now done with special handlers that get the required files from the .NET assemblies. So, there isn't much to remove.

The only thing you could do is remove the web.config and recreate it. Also, search for left over files from previous betas, although I doubt these can cause these kind of problems.

What version of ASP.NET are you running?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Pulse by The Tea Party (Track 9 from the album: Transmission) What's This?
 
Old October 4th, 2005, 02:41 PM
Authorized User
 
Join Date: Jun 2003
Location: pgh, pa, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to drdexter33 Send a message via MSN to drdexter33
Default

Hey...

Thanks for your reply..

Here's the version info:
-------------------------------------------------------------
Microsoft Visual Studio 2005
Version 8.0.50727.26 (RTM.050727-2600)
Microsoft .NET Framework
Version 2.0.50727
-------------------------------------------------------------

Thanks again.

God bless..

doug
 
Old October 4th, 2005, 02:51 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, that's the latest version to date, so AFAIK, it shouldn't put any configuration related files in your project.

What happens when you create a new solution at an empty location and add the projects one by one?

And how is IIS configured? Is each application a separate folder under IIS or are they simple sub folders? In the latter case, they all share the same web.config file located in the root.

I have no idea why it would write to the general .config file in the Windows folder though.

Cheers,

Imar

P.S. Are those serial numbers or registration keys? May not be smart to post those in public.

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Mouth by Bush (Track 7 from the album: Razorblade Suitcase) What's This?
 
Old October 4th, 2005, 03:13 PM
Authorized User
 
Join Date: Jun 2003
Location: pgh, pa, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to drdexter33 Send a message via MSN to drdexter33
Default

wow..

yeah. that was kind of stupid.

anyway...i'll have a go at your recommendations.

thanks again.

doug




Similar Threads
Thread Thread Starter Forum Replies Last Post
My Sites does not work with Web Single Sign On sarawoot SharePoint Admin 0 March 24th, 2008 11:09 AM
Openning remote web sites for development rodmcleay VS.NET 2002/2003 5 March 13th, 2007 02:12 PM
WEB HOSTING SITES? hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Professional 0 June 21st, 2006 06:13 AM
Visibility of Content Management System web sites Steve777 Classic ASP Professional 0 March 4th, 2005 02:24 PM
Good Web Sites wolftrap1 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 January 21st, 2004 09:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.