473,382 Members | 1,615 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,382 software developers and data experts.

appsettings in web.config hangs aspnet_wp

Hi,

I have a rather unusual problem.
I have a very simple ASP.NET application, basically hello world type.
I created it with Visual Studio 2003 and am running it in debug mode.
It runs fine until I put the <appSettings> section in its web.config file
or machine.cfg.
After that the application starts, the web browser opens, it connects and
then shows waiting for page to open. At this point it just sits there
forever. I cannot close the page or terminate the application. i cannot
terminate devenv(VS2003). A worker task is running (aspnet_wp), it will not
terminate either. If I open another browser window, it hangs too (even
trying
to open msn.com).
The only wat to continue is to force power off my machine and restart.
IIS is running on the local machine and that is where I am running VS from.

I have put a break point on the initializecomponent call, it never gets
there.

if I delete the appSettings section, it works ok

ASPNET_WP.exe is running and cannot be killed, I noticed
another process dllhost.exe (not sure if anything to do with problem. If I
terminate dllhost.exe, within seconds it is back.

Thanks for any assistance,

--
Robert Pfeffer
VP of Technology
Sun Valley Systems, Inc.

Nov 19 '05 #1
4 1681
Perhaps you could post the contents of your appsettings so we could see what
the error is?

Probably a small syntax or XML error.

"Robert Pfeffer" <rm*@community.nospam> wrote in message
news:0E**********************************@microsof t.com...
Hi,

I have a rather unusual problem.
I have a very simple ASP.NET application, basically hello world type.
I created it with Visual Studio 2003 and am running it in debug mode.
It runs fine until I put the <appSettings> section in its web.config file
or machine.cfg.
After that the application starts, the web browser opens, it connects and
then shows waiting for page to open. At this point it just sits there
forever. I cannot close the page or terminate the application. i cannot
terminate devenv(VS2003). A worker task is running (aspnet_wp), it will
not
terminate either. If I open another browser window, it hangs too (even
trying
to open msn.com).
The only wat to continue is to force power off my machine and restart.
IIS is running on the local machine and that is where I am running VS
from.

I have put a break point on the initializecomponent call, it never gets
there.

if I delete the appSettings section, it works ok

ASPNET_WP.exe is running and cannot be killed, I noticed
another process dllhost.exe (not sure if anything to do with problem. If
I
terminate dllhost.exe, within seconds it is back.

Thanks for any assistance,

--
Robert Pfeffer
VP of Technology
Sun Valley Systems, Inc.


Nov 19 '05 #2
Hi Robert,

I think Ken's suggestion is reasonable, maybe you can share the
modificaiton in your web.config so that we can have a look. Generally the
asp.net runtime will check the configure file when the application starts ,
so the breakpoint in your page's method will never be hit.

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.)

Nov 19 '05 #3
Hi Ken / Steve,

Thanks for responding.

The appSettings entry is:

<configuration>
<appSettings>
<add key="commandline" value="A0471001 SASLMF P0515KFG 0002 SASLMF
P0515KFG SVS99540"/>
</appSettings>
<system.web>

A window forms application can access the appsettings (when they are in
machine.cfg).

I tried uninstalling and reinstalling Framework (with SP1). No change.

Once the app hangs, I can no longer connect to any website.

Robert Pfeffer

"Steven Cheng[MSFT]" wrote:
Hi Robert,

I think Ken's suggestion is reasonable, maybe you can share the
modificaiton in your web.config so that we can have a look. Generally the
asp.net runtime will check the configure file when the application starts ,
so the breakpoint in your page's method will never be hit.

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.)

Nov 19 '05 #4
Hi Robert,

Thanks for your response. Seems the <appSettins> keys are very simple, I've
testing on my own local machine (put the appSettings DATA in both
machine.config or web.config) but didn't reproduce the behavior. I'm
thinking the problem is likely project specific. Can you verify that the
problem just go away if you remove those appsettings items? And what are
those keys's useage, used in your web application?

Also, I think you can still try the following things:
1. Does the problem only occurs when you launch the application in VS.NET,
what about visit the page outisde VS.NET in IE?

2. Try creating a new simple web application with a empty page to see
whether it suffers the problem.

3. Adding breakpoint or use other trace means to see whether the web
application's global Application_Start event has entered.

4. Checking the IIS log and eventlog to see whether there is any useful
info.

In addition, I've checked some former issues and foudn that some cases
similiar to your problem, some of them are caused by the .net database
provider that eat the CPU TIME and make the application hang.
And from the nature of this issue, it would require intensive
troubleshooting such as dump analysis which would be done quickly and
effectively, I suggest you consider contacting the Microsoft Support
Professional through Microsoft Product Support Services if you feel this an
urgent issue.

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.)

Nov 19 '05 #5

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

Similar topics

2
by: hazz | last post by:
I have spent more time than I care to admit trying to track down a very subtle error. Here is my app's xx.exe.config file. <?xml version="1.0" encoding="utf-8" ?> <configuration>...
3
by: scott dever | last post by:
In .NET framework 1.0 I had the responseadelockinterval set to 1:30 (1 hour 30 minutes) to allow for some long running queries to finish on certain pages of an ASP.NET application. After...
2
by: Kenneth | last post by:
Hi, In web.config I have an appsettings: <appSettings> <add key="constring" value="Server=localhost;UID=sa;PWD=secret;Database=myDB" /> </appSettings> This is for my developing machine.
5
by: Ken Barrett | last post by:
I apologize in advance for cross-posting, but I have noted that others have experienced similar issues and was hoping that someone could help. Briefly, I am working on an ASP.NET content...
2
by: Jared Hagel | last post by:
I've searched the web for a solution to this problem. Surprisingly, no problem/solution has been posted yet. We can read application configuration information fine when our asp.net application...
0
by: bpssolutions | last post by:
hi- i'm going mad over here. any help would be greatly appreciated. aspnet_wp.exe hangs whenever i browse to the virtual directory in which i am developing, sucking up all CPU time. any...
7
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for...
1
by: Sergei Shelukhin | last post by:
Hi. Is is possible to divide appSetting in two, having some values stored in web.config itself and some in a section referenced in appSettings file="...." attribute?
3
by: Junior | last post by:
Vista SP1 IIS7 I'm trying to configure web.config following MSDN docs but keep getting errors I don't know how to resolve.. <configuration> <!--error--> <appSettings...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.