Last post Aug 17, 2011 04:01 AM by MarvinYan
Aug 13, 2006 08:48 AM|TheDeathArt|LINK
Line 1: <%@ PageLine 2: Language = "C#"Line 3: Inherits = "TalkMWA.FrontPage
Aug 13, 2006 03:21 PM|ZLA|LINK
I've never seen this problem but you're getting a parsing error. Whenever I get those, it turns out I've mismatched a closing tag or some other simple but hard to find html error.
In your case, I would check all your image tags and controls. "src" is normally the url attribute for pure HTML images. It sounds like you might have a missing quote or duplicate src attribute so that SRC looks like a file name that .net is supposed to find.
You might also see what files the aspx page needs and see if any of the filenames is mistyped.
Sorry I can't give you more to go on. Good Luck.
Aug 14, 2006 03:59 PM|TheDeathArt|LINK
Apr 03, 2007 05:56 PM|gkeener1977|LINK
That sounds like a bug in MS Visual Studio. I'm surprised no one from the VS 2007 team has visited this thread and posted something on it. I did a Google search: `file src "not a valid" expose type`, and this is the first thing that came up for the error "The
file 'src' is not a valid here because it doesn't expose a type." (sic).
It's a bit frustrating, but my problem differs from TheDeathArt's in the sense that it is not a sporadic error. I am using Visual Studio 2005 with the C# 3.0 CTP (community technology preview, right?) installed. The very much pre-release CTP doesn't seem
to have caused any problems so far, but I am going to try uninstalling it. I will watch this thread and if either of you (or the nth person on this thread) wants to know what happend, just ask. Otherwise, I'll do my best to remember to post back.
Gotta love Microsoft, though. I hate when I can't to a binary install on Linux (but then again, if you build it yourself, it will come--faster, better, broken, OR whatever)...
Good luck, people of the cloth.
"not a valid here" expose type src file
Apr 03, 2007 06:01 PM|gkeener1977|LINK
My apologies, I forgot to give you the almighty broken code (aspx-side):
And again, if that AJAX pop-in gizmo didn't work:
AND, last, here's the class:
/* From 4GuysFromRolla code:
* Code adapted from http://aspnet.4guysfromrolla.com/articles/110205-1.aspx
* by Scott Mitchell, article "ListControl Items, Attributes, and ViewState"
public class ctrls_CheckBoxList : System.Web.UI.WebControls.CheckBoxList, IRepeatInfoUser
et cetera, et cetera, et cetera, et cetera, ad nauseum
There you go.
Apr 03, 2007 07:51 PM|gkeener1977|LINK
Jun 18, 2008 01:47 PM|Acasia|LINK
problem could be with [assembly: AssemblyCulture("")] in your Properties/AssemblyInfo.cs file
worked for me!
Aug 27, 2008 03:11 PM|villelm|LINK
resetting the AssemblyCulture to "" fixed the problem for me.
I was using VS2005 SP1 and had same issue as Susan described.
Aug 17, 2011 04:01 AM|MarvinYan|LINK
Thanks very much! This worked for me too.
I assigned a value to AssemblyCulture before, and when I set it to empty again, the error was gone.