Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Getting a lot of errors with no mean In Visual Studio.
22 replies. Latest Post by Allen Chen – MSFT on November 9, 2009.
(0)
zakkar
Member
14 points
67 Posts
11-04-2009 4:24 AM |
Hi ,
I'm using VS 2008 and SL 3. After running Devenv.exe /ResetSettings I'm facing serious problems in VS.
I don't know if it is much of a help but everything started for not wokring correctly after installing an update for IE8. I think and I'm not quite sure.
First of all VS is underlining controls in my VB code which it shouldn't because everyhting is correct. If I run my SL app the errors are magically disappear but after a while in the debugger I can see them again.
For eg If I put a textblock in my xaml page with an x:name ="test" then If I go to the VB code when I type VS is underlining it like it is an error. And Also in the output window I'm seeing it like an error.
I tried to uninstall VS an reinstall but nothing seems to be working anymore.
Also When I run my project and If I make a change I cannot see the new change running in the browser.
Does anyone has an idea what is going on and help me ?
Ardman
Contributor
3408 points
938 Posts
11-04-2009 4:49 AM |
Have you installed Service Pack 1 for VS?
11-04-2009 5:51 AM |
Yes .
Everything was downloaded and installed from scratch.
I cannot understand why my App is not showing the changes I have made. Let's say that I have changed a label and want to see it running in the browser. I changed the label but SL keeps the old one.
How can this be possible ?
And why I'm getting a list of no mean errors ?
If I compile the errors disappear for a moment and then here goes again.
I don't know what to do.
I think that unless I get rid off these no mean errors I will not have my SL app display the changes.
And then what am I suppose to do ? Format my HDD and start all over again ?
I'm desparate .
Please help.
11-04-2009 5:59 AM |
Have you emptied your Temporary Internet Files?
11-04-2009 6:04 AM |
Yes ,
Everything.
Cookies , passwords , temp internet files ,history...
I think that the problem is with Visual Studio which is showing the undeline no mean errors.
I think that If we fix that it will work. But I tried everything. Even uninstall and install.
Any ideas ???
Have you ever received no mean errors in VS ? And if you did how you had solved it.
Also something else. If there is an error in VB for eg then SL is not compiled. That is why perhaps I'm getting the previous version.
I think I must definetelly get rid off the undeline errors which they shouldn't be there.
How can I do that ?
11-04-2009 6:10 AM |
Could you post a screenshot of the errors?
11-04-2009 6:28 AM |
How do I upload Screenshots ???
11-04-2009 6:41 AM |
Ardman ,
I'm trying to upload but I cannot get it done.
Can I send you an Email ?
11-04-2009 6:46 AM |
11-04-2009 6:47 AM |
11-04-2009 6:48 AM |
Any Ideas ?
11-04-2009 7:22 AM |
Could you explain where the errors are in that snapshot?
11-04-2009 7:28 AM |
The last screenshot is just My XAML file. Just wanted to show you that the objects are already declared in the XAML.
After all my app is compiling and running. The first screenshot contains the errors. It's the error list I'm getting from VS.
Why VS is telling me that I have errors which I don't ?
And Why I cannot see my changes in my SL app even though I have cleared almost everything.Temp files, g.vb files....etc.
I believe something is going on with VS env. Perhaps need to reset something ? I don't know.
11-04-2009 7:30 AM |
11-04-2009 7:31 AM |
Take a look my ScreenShot from VB.
You can see in my XAML that the obj is declared. Why in VB I 'm getting this in the error list ?????
11-04-2009 8:07 AM |
Anyone ?
11-04-2009 8:31 AM |
You cannot reference the control in this way. For example, you need to find the control, so we look at your TextBox "UserName", you'd need to do the following in your Btn_LoginClick method:
TextBox tb = Me.FindName("UserName") as TextBox
If tb.Text = String.Empty Then
'.... do something
End If
11-04-2009 8:53 AM |
This is supposed to be working until yesterday.
Today something changed after an update and everything was messed up.
My app is running . I can built it but I 'm getting no mean errors.
For example. I have now created in a button a new Click event. I trying to debug in my button 's click event and nothing happens. The debugger is not going into the script.
The code is fine. Also I have noticed something else.
Remember when I told you that I'm seeing the previous version of My app ? Well. I had a child window which was opening after pressing the button. Yesterday I have deleted that Child Window. I don't know what happened and after that when I pressed the button it was still showing me the child window I have deleted !!!!!!! Strange. Very strange.
Then I started receiving the error list which was pointless VS to inform me about errors because everything was fine until I deleted the child window.
I think that SL kept a reference or something and now VS cannot remove it and this "LOST" reference causes the problem. How do I completely remove that ? FYI I have deleted the child window from the solution explorer and not from the HDD. I left VS to do the job. But something got stuck and that causes me a lot trouble because now my App is useless. I'm getting all these errors and although it passes the compiler I cannot see my changes and generally I cannot work.
I believe that VS has a HUGE Bug here.
And Why I am strogly believe that it has to do with that lost reference ? Because I have created a Child XAML same name as the deleted one and saw that one of the two events was working. The mouse leave was working(not working before) but still cannot make the click event to work.
I deleted all the g.vb files, the xap file , the elements of the bin folder ...
I'm desparate. I want to avoid starting something from scratch and copy an paste code.
Is there anything tool or anything at all which reads and writes the correct objects which exists in the Solution Explorer ?Something that updates the references ?
11-04-2009 9:00 AM |
I have created a new Silverlight Application.
I didn't touch anything or put anything in the Mainpage XAML.
I'm getting 2 errors without touching anything.
The errors are referring to the InitializeComponent....
This is not supposed to be happening because I have created a new app from scratch and didn't add anything at all.
What about the update for IE8 which I have downloaded yesterday ?
Also I don;t know if it has to do with this but I have enabled RIA services.
11-04-2009 9:04 AM |
Now I did the following. I have created a new app without checking the RIA Services
IE displayed the below
Line: 56Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings
It's the RIA I think in combination with Microsoft Update
What do you think ?
11-04-2009 9:07 AM |
I have checked IIS and MIME types are fine.
Both XAML and xap MIME exists
11-04-2009 9:57 AM |
Allen Ch...
Star
13862 points
1,803 Posts
11-09-2009 1:18 AM |
Hi,
Have you tried reinstall Silverlight Tools? Please try Windows Cleanup Utility to uninstall it: http://support.microsoft.com/kb/290301
Then download and reinstall it again:
http://www.microsoft.com/downloads/details.aspx?familyid=9442B0F2-7465-417A-88F3-5E7B5409E9DD&displaylang=en
If it still doesn't work, could you post the errors you see in Visual Studio? You can upload the screenshot to http://skydrive.live.com/ and paste download link here. In addition, please upload the project you created in Visual Studio. I could test it first to see whether the project itself has any problems.
At last, please provide detailed information of:
IE version
Visual Studio version
Operating system version