Sorry but you will have to rephrase...
I can not make sence out of folowing statements that almost contradict each
other
1.
>"When start the project in debug mode I can see that all
> members and fields of the page like Master and so on are all nothing"
2.
>Now the weird thing: When I make a breakpoint (in my case in preinit)
> all instances of the page are created fine and the page is loaded :/
In case #1 how do you see all members and fields if you did not set
breakpoint? Page object initializes only when called (via browser) and
disposed immediatelly once HTML is rendered.
Hence you need to break somewere between those 2 events to see all members
and fields.
So pretty much behavior is expected given you can explain what you mean by
"I can see that all members and fields of the page ..." in #1...
George.
> Hello,
>
[quoted text clipped - 19 lines]
>
> Holger
kreissl@gmail.com - 04 Apr 2008 18:39 GMT
> Sorry but you will have to rephrase...
> I can not make sence out of folowing statements that almost contradict each
> other
> In case #1 how do you see all members and fields if you did not set
> breakpoint? Page object initializes only when called (via browser) and
> disposed immediatelly once HTML is rendered.
Because the debugger fetches the exception an breaks at the first null
pointer exception.
In my code is that a usercontrol. There I can watch "me" and see that
all members including Master are not initialized...
ty holger
The first thing I would do is run through all of the page events and make
sure you did not unwittingly destroy the page through code you added.
I would then step through the entire page (possibly even into the .NET code
(http://tinyurl.com/yqsokg)) and see where the values are getting munged.
Another option is to manually clear out the ASP.NET temporary files, found
under %WIN_DIR%/Microsoft .Net/Framework/v{version number}/Temporary ASP.NET
Files. If anything is munged there, please post back, as I have been
following issues with files here and informally cataloguing them (have
posted one bug based on them).
Worst case, exclude the page and set up a new page with the same code. You
can do this with a simple copy and paste operation. If this works, then .NET
is holding something somewhere.

Signature
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
*************************************************
> Hello,
>
[quoted text clipped - 19 lines]
>
> Holger
kreissl@gmail.com - 04 Apr 2008 19:54 GMT
On 4 Apr., 18:01, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@comcast.netNoSpamM> wrote:
> The first thing I would do is run through all of the page events and make
> sure you did not unwittingly destroy the page through code you added.
[quoted text clipped - 11 lines]
> can do this with a simple copy and paste operation. If this works, then .NET
> is holding something somewhere.
Ty for the reply. The .NET debugger brought not much... Will try it
tomorrow again.
The 3.5 directory has no temporary folder. Maybe its located somewhere
else?
If nothing works I will have to make the page again.
holger
Cowboy (Gregory A. Beamer) - 05 Apr 2008 04:53 GMT
3.5 temp files under the 2.0 directory, as it is an add on to 2.0. Sorry for
not mentioning it.

Signature
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
*************************************************
> On 4 Apr., 18:01, "Cowboy \(Gregory A. Beamer\)"
> <NoSpamMgbwo...@comcast.netNoSpamM> wrote:
[quoted text clipped - 25 lines]
> If nothing works I will have to make the page again.
> holger
kreissl@gmail.com - 06 Apr 2008 11:43 GMT
I have a working site know.. But i am not really happy.. I moved the
code from pre_init to page_load. Now it looks like the error is gone.
I tried to clear the temporary asp files and I created a new page...
That did not work. So it looks like that for some reason the page
doesnt init correct. I tried to debug it but that doesnt make really
sence, because like i said, when I breakpoint in pre_init everything
looks fine... Only when it runs without the breakpoint the objects
there are uninitialized and the exceptions are caused.
Than I am not sure if it has something to do with the clearing of the
asp temp folder or if its normal because of the new .net debugger
settings. I get tonns of first chance exceptions after first project
start (when webserver starts first time). The first comes in
mscorlib.dll!
System.Globalization.CultureTableRecord.CultureTableRecord(string
cultureName, bool useUserOverride) Line 756: Culturename
"uploads" ???
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll
A first chance exception of type 'System.TypeLoadException' occurred
in System.Web.dll
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL
\System.resources\2.0.0.0_de_b77a5c561934e089\System.resources.dll'
A first chance exception of type 'System.TypeLoadException' occurred
in System.Web.dll
... (about 100 times ;)
A first chance exception of type 'System.TypeLoadException' occurred
in System.Web.dll
'WebDev.WebServer.EXE' (Managed): Loaded 'C:\Windows\Microsoft.NET
\Framework\v2.0.50727\Temporary ASP.NET Files\root
\dc083b87\b1353192\App_Web_ur8tsq9t.dll', Symbols loaded.
A first chance exception of type 'System.TypeLoadException' occurred
in System.Web.dll
When i break into such an exception its something like:
Type System.Web.UI.WebControls.WebParts.ContentPlaceHolder in Assembly
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a could not be loaded.
Type System.Web.UI.ContentPlaceHolder in der Assembly
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35 could not be loaded.
Type System.Web.UI.Image in der Assembly System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ...
Maybe its a normal behavior and I can ignore it. But i am interessted
in the reasons for that...
Other Question: It doesnt save the symbols permanent. Should it? I
need to click Load Symbols every time, also when I still loaded it in
a previos session.
thanks a lot for all replys
holger