I'm getting the following error on when I try to preview webpages from VWD2008. When I upload the pages I can view them fine from my website. Even more stange is it only happens on one certain project and it just started about 10 minutes ago as was fine until then. I have rebooted my computer but that did not help. When I go to view that directory, there are no files in it, nor can I unselect the read-only attribute to delete it.
Compilation Error
Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message:BC30269: 'Public Sub New()' has multiple definitions with identical signatures.
Source Error:
[No relevant source lines]
Source File: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\mysite\1d37002e\e2be952b\App_Code.stpwyaqr.1.vb Line: 34
Can you show us the code behind for one of the pages that you are getting the error?
Weird on a couple of levels; your post does not display correctly to me, the text is all mashed onto a couple of lines. Fortunately the reply screen shows it ok.
I'm not sure I understand so see if this is correct. When you published the project to the web server it worked fine and the site published ok and is browsable. When you then tried to run the project in VWD to preview locally it gave the error you posted. When you went into the file system on your local machine the directory was blank.
Sound correct so far? If so, are you checking the project directory on your local machine or the temporary directory listed in the error message?
Did you try to do a Clean Project and a Rebuild Project? Are you using the Web Site project or Web Application project?
kraznodar:
I'm not sure I understand so see if this is correct. When you published the project to the web server it worked fine and the site published ok and is browsable. When you then tried to run the project in VWD to preview locally it gave the error you posted. When you went into the file system on your local machine the directory was blank.
Yes that is 100% correct. What is even more odd is the fact that I've been working on this same project for about 7 months, and until a while ago I never got this error. When I tried another project on my computer it ran with no errors. As for the page in question it is all the pages, not just one.
Ohhh, I just tried a rebuild like was suggested and got a bunch of errors relating to a dataset file. I deleted the file in question and now it works 100%
I had copied, then pasted a dataset and that must have corrupted something. I deleted it and no problems.
Guess the lesson is, don't copy/paste a dataset like you can a regular webpage file.
Thanks for the help and suggestions, I'm sure I'll have many more :)
Don't forget to mark noahb's post as the answer. His clean and rebuild led to the discovery of the real issue.
0 comments:
Post a Comment