473,473 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Bug in VS2005 w/ASPNET2 Websites

There appears to be a REALLY annoying bug in VS2005: periodically when you're rebuilding an ASPNET2 website which uses App_Code
stuff the compiler will fail to create the dynamic assembly or not be able to copy it to the bin directory or something.

In my case the error message which always shows up complains about my master page not defining a public property. The funny/sad
thing is that the property is defined, and in most cases I haven't touched the master page file in quite a few successful builds
when the message appears.

Sometimes, modifying a file in the App_Code subdirectory and recompiling solves the problem. But not always. And having to do that
is a pain in the butt.

Generally I have to quit out of VS2005 and restart it. Which is an even bigger pain. But even that doesn't always work. Sometimes I
have to reboot my machine to clear the problem. Which is the biggest pain of all.

Has anyone else run into this? Is there a workaround?

- Mark
Feb 6 '06 #1
8 1139
Here's an example error message:

Warning 1

The type 'boardng' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\boardng\3e34c4a8\6c859375\App_Web_72xagc8p.2 .cs' conflicts with the imported type 'boardng' in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\boardng\3e34c4a8\6c859375\App_Web_boardng.ma ster.cdcab7d2.kyumxfzp.dll'. Using the one in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files\boardng\3e34c4a8\6c859375\App_Web_72xagc8p.2 .cs'.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\boardng\3e34c4a8\6c859375\App_Web_72xagc8p.2 .cs 255

The error is then:

Error 3 'boardng' does not contain a definition for 'PostedOn' C:\Websites\BoardNG\Copy of topic.aspx.cs 55

and yet the specified missing property has existed for quite a few successful builds.

- Mark
Feb 6 '06 #2
ME
I second that. Same problem here. I hope MS can get a fix out soon.

- Matt

"Mark Olbert" <Ch*********@newsgroups.nospam> wrote in message
news:v9********************************@4ax.com...
Here's an example error message:

Warning 1

The type 'boardng' in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\boardng\3e34c4a8\6c859375\App_Web_72xagc8p.2 .cs' conflicts with the
imported type 'boardng' in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\boardng\3e34c4a8\6c859375\App_Web_boardng.ma ster.cdcab7d2.kyumxfzp.dll'.
Using the one in
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\boardng\3e34c4a8\6c859375\App_Web_72xagc8p.2 .cs'.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET
Files\boardng\3e34c4a8\6c859375\App_Web_72xagc8p.2 .cs 255

The error is then:

Error 3 'boardng' does not contain a definition for 'PostedOn'
C:\Websites\BoardNG\Copy of topic.aspx.cs 55

and yet the specified missing property has existed for quite a few
successful builds.

- Mark

Feb 6 '06 #3
Mark Olbert schrieb:
The error is then:

Error 3 'boardng' does not contain a definition for 'PostedOn' C:\Websites\BoardNG\Copy of topic.aspx.cs 55


I only had errors like this when i copy a Pages and forget to rename the
Page-Class in die .cs and the Inherrits from that Class in the .ascx.

--
Freundliche Grüße

Albert Weinert

http://der-albert.com
Feb 6 '06 #4
Whenever I've had this problem, I rebuild the entire website and that
usually takes care of the problem.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Mark Olbert" <Ch*********@newsgroups.nospam> wrote in message
news:bo********************************@4ax.com...
There appears to be a REALLY annoying bug in VS2005: periodically when
you're rebuilding an ASPNET2 website which uses App_Code
stuff the compiler will fail to create the dynamic assembly or not be able
to copy it to the bin directory or something.

In my case the error message which always shows up complains about my
master page not defining a public property. The funny/sad
thing is that the property is defined, and in most cases I haven't touched
the master page file in quite a few successful builds
when the message appears.

Sometimes, modifying a file in the App_Code subdirectory and recompiling
solves the problem. But not always. And having to do that
is a pain in the butt.

Generally I have to quit out of VS2005 and restart it. Which is an even
bigger pain. But even that doesn't always work. Sometimes I
have to reboot my machine to clear the problem. Which is the biggest pain
of all.

Has anyone else run into this? Is there a workaround?

- Mark

Feb 6 '06 #5
Hi Mark,

For such problem, it's hard to point out a definite resolution. And except
there is some obvious assembly referencing problem(like multiple times
referencing), such problem is likely caused by the page's dynamic compiled
assembly not synchronized correctly. As Christopher mentioned, usually you
can try save all the files and rebuild the website application and run it
again to see whether it works.

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

Feb 6 '06 #6
Albert,

Interesting. I get different errors when I do that!

- Mark
Feb 6 '06 #7
Steven,

As I pointed out in my original posting, sometimes rebuilding the entire site >>doesn't<< solve the problem. In fact, the repeated
inability to solve it by rebuilding is what caused me to write the initial post.

By the way, is there an easy way of forcing an entire site rebuild? The Rebuild Solution menu option seems to have disappeared in
VS2005.

One other point: I discovered late last night that, if all else fails, you can avoid having to reboot by going into
c:\windows\Microsoft .NET\Framework\<Framework Version>\Temporary Internet Files\<sitename> and deleting all the files in there. You
can't be editing the site in VS2005 when you do this because it locks files and prevents them from being deleted, but at least you
can avoid having to reboot.

- Mark
Feb 6 '06 #8
Rebuild Solution isn't there by default. Go to the Tools menu and select
Options. In the Options dialog, select Projects and Solutions. There is a
checkbox for "Always show solution". Check this box and click OK. Go to
the Solution Explorer and the solution will now be present. Right-click on
the solution and you will now the option to Build Solution or Rebuild
Solution.

Note that the Build menu always has both Build Web Site and Rebuild Web
Site. With the solution present, the Build and Rebuild options for Solution
is also present there.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Mark Olbert" <Ch*********@newsgroups.nospam> wrote in message
news:st********************************@4ax.com...
Steven,

As I pointed out in my original posting, sometimes rebuilding the entire
site >>doesn't<< solve the problem. In fact, the repeated
inability to solve it by rebuilding is what caused me to write the initial
post.

By the way, is there an easy way of forcing an entire site rebuild? The
Rebuild Solution menu option seems to have disappeared in
VS2005.

One other point: I discovered late last night that, if all else fails, you
can avoid having to reboot by going into
c:\windows\Microsoft .NET\Framework\<Framework Version>\Temporary Internet
Files\<sitename> and deleting all the files in there. You
can't be editing the site in VS2005 when you do this because it locks
files and prevents them from being deleted, but at least you
can avoid having to reboot.

- Mark

Feb 7 '06 #9

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

Similar topics

5
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created...
19
by: Alan Silver | last post by:
Hello, I have been developing ASP.NET with a text editor so far (better way to learn initially), and have now been trying Visual Web Developer. I want to create a project for an existing site...
1
by: windsurfing_stew | last post by:
Hi, We have a website which is deployed to multiple web servers by robocopy across a WAN. In visual studio 2005 if you choose to publish the site to a directory it regenerates all of the dlls...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
1
by: Praveen | last post by:
Hi, I copied a VS2005 sln and it's related files (just the aspx which is right beside it) from one m/c to another m/c into the exact same PHYSICAL DIR as well as the exact same VIRTUAL DIR and...
1
by: Mark Olbert | last post by:
I've written a simple membership/role provider library which I use in my websites. It works fine, and uses custom AES and SHA1 keys in Web.config to encrypt or hash password information. I now...
5
by: Mark Olbert | last post by:
I'm running into a repeatable oddity in porting a bunch of ASPNET1.1 websites to ASPNET2. Calls like this: MapPath("/path/fromroot") result in exceptions under ASPNET2, but worked fine under...
8
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want...
1
by: David Rees | last post by:
I haven't yet installed the VS2005 Web Application project type, since I'm naivly waiting for VS2005SP1 to come out before Duke Nukem Forever. My VS2005 installation also crashed twice whilst...
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
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,...
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
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.