473,756 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
+ 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 1153
Here's an example error message:

Warning 1

The type 'boardng' in 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\boardng\3 e34c4a8\6c85937 5\App_Web_72xag c8p.2.cs' conflicts with the imported type 'boardng' in
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\boardng\3 e34c4a8\6c85937 5\App_Web_board ng.master.cdcab 7d2.kyumxfzp.dl l'. Using the one in
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET Files\boardng\3 e34c4a8\6c85937 5\App_Web_72xag c8p.2.cs'.
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET Files\boardng\3 e34c4a8\6c85937 5\App_Web_72xag c8p.2.cs 255

The error is then:

Error 3 'boardng' does not contain a definition for 'PostedOn' C:\Websites\Boa rdNG\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*********@ne wsgroups.nospam > wrote in message
news:v9******** *************** *********@4ax.c om...
Here's an example error message:

Warning 1

The type 'boardng' in
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\boardng\3 e34c4a8\6c85937 5\App_Web_72xag c8p.2.cs' conflicts with the
imported type 'boardng' in
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\boardng\3 e34c4a8\6c85937 5\App_Web_board ng.master.cdcab 7d2.kyumxfzp.dl l'.
Using the one in
'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\boardng\3 e34c4a8\6c85937 5\App_Web_72xag c8p.2.cs'.
c:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Temporary ASP.NET
Files\boardng\3 e34c4a8\6c85937 5\App_Web_72xag c8p.2.cs 255

The error is then:

Error 3 'boardng' does not contain a definition for 'PostedOn'
C:\Websites\Boa rdNG\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\Boa rdNG\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*********@ne wsgroups.nospam > wrote in message
news:bo******** *************** *********@4ax.c om...
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\Micr osoft .NET\Framework\ <Framework Version>\Tempor ary 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*********@ne wsgroups.nospam > wrote in message
news:st******** *************** *********@4ax.c om...
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\Micr osoft .NET\Framework\ <Framework Version>\Tempor ary 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
2604
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 as websites. I was happy until when out of the blue Cassini has re-enabled itself for one of the websites I am developing. Despite the Start Option settings I can't get rid of the Cassini pest and my website will not load from the IDE. Does...
19
3757
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 and add the files to it. I can add my .aspx and .cs (code-behind) files, but VWD doesn't know which .cs file si the code-behind for any particular .aspx file. When you create a new aspx page in VWD, it automatically puts the code-behind file with...
1
1059
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 and for some reason changes all of the last modified dates on the aspx files to the present. This means that every trivial change to the website involves re-uploading everything again. Has anyone else experienced this?
6
3634
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 list of all of my webs, however if I attempt to open a site under and web other than localhost I receive the message: "Unable to open the Web 'http://localhost/anywebappname'. The Web 'http://localhost/anywebappname' does not exist" Obviously...
1
1263
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 APP DIR. This doesn't work: - Double clicking on the sln to make VS.Net open it. (Basically, nothing happens.)
1
1499
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 have a second, Windows Forms app that needs to access that same credential file, and hash/encrypt user-supplied credentials to authenticate them. I know how to set up an SHA1 hasher or an AES (ManagedRijndael) cryptor in the windows app. The...
5
1356
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 ASPNET1.1. Changing the calls to: MapPath("~/path/fromroot")
8
6456
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 to know how can I get the WebStie info in the customAction. I can use "/VDIR=" in customActiondata to get the installed VirtualDirectory.
1
1145
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 working on a simple ASP.NET 2.0 Website, surely part of "Trustworthy computing" involves me *trusting* my computer's 1st party software not to let me down. Good thing I save regularly. Anyway, it's a simple ASP.NET 2.0 Website with a User Control...
0
9455
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9271
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9838
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8709
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5140
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
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
3
2665
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.