in Vs2008 ,I copy the ".dll" file to: ...\Program Files\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers.
View Complete Post
I have VS2010 and currently installing Reporting Services 2008 (64 bit) and was expecting the RSReportDesigner.config and other config files and dlls to be installed in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies.
But I dont happen to see them in there. Looks like it went into C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies. Is there any way to configure to install them at a desired path. If not then should I just go ahead and copy
them from location X to location Y. Will they work okay?
Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine. Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document." This happens for all compiled code though. I have read this is due to missing PDB files and the work around is to manually copy them, as noted here. Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.
This is beyond frustrating. I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework. Debugging works when using local host and was stable until deployment to test server.
Thanks in advance,
Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %><html><body> <form runat="server"> Hello World!! </form></body></html>
Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?
I read somewhere that MS has integrate SilverLight Toolkit into VS2010. Where is it? I can't find it under Toolbox.
One of my NUnit tests has to read in some values from config files. In my main application this process works perfectly well, however when I run the unit test, the code that reads in the values from the config files doesnt read anything in. Ive tried putting app.config in my unit test project (I even tried web.config) but nothing seems to work. Are there any special steps involved when reading from config files in an nunit test ?
Ive created an NUnit test project in my solution and have added 3 tests. They all fail with the same error
SetUp : System.TypeInitializationException : The type initializer for 'Systems.Utils.ConstantHelpers' threw an exception.
----> System.NullReferenceException : Object reference not set to an instance of an object.
heres the test method
public void CreateDataContext_ConnectionString_ReturnsDataCon
Im trying to create a Web Deployment Project, the built in setup and deployment is very good in Visual Studio, i need to able to add an additional step in the setup to change the connection string in the Web config file. Ive seen a lot of articles on how to do this and in particular this http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx#7162670 I am however stuck on the final part of this tutorial, im using the code Scott provided but have two errors, heres part of my code where the errors are
void ConfigureDatabase(string targetSite, string targetVDir, string connectionString)
// Retrieve "Friendly Site Name" from IIS for TargetSite
DirectoryEntry entry = new DirectoryEntry("IIS://LocalHost/" + targetSit
We've updated some of our projects from VS2008 to VS2010. When these projects are deployed the w3svc is restarted on the target machine, even when restartwwwservice = false in the vdproj file.
This was a problem in 2008 until SP1 (http://forums.asp.net/p/1300097/2534736.aspx). Does this same problem exist in VS2010?
This is a major problem for us - we need to be able to deploy projects without restarting IIS.
I've tried creating a new web deployment package and setting the restartWWWService field to false, but this still does a restart when it's installed.
Has anyone come across this problem in VS2010?
I have a web application that is actually installed as a component of a third party site. In some configurations, I need to remove certain connection strings and re-add them. I'm replacing this web.config section with a xml file that includes the following:
<connectionStrings> <remove name="MyOverridenConnection"/> <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection" providerName="System.Data.SqlClient"/> </connectionStrings>
For some reason the remove tag is left out during the substitution and I end up with the following in the installed config:
<connectionStrings> <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection" providerName="System.Data.SqlClient"/> </connectionStrings>
Is there any way to issue removes in replaced sec
We have moved our projects from VS2008 to VS2010(Ulitmate) but staying with .Net 3.5. In VS2008 we had a web deployment project that would compile the web project to a single dll and emit full debug information, adding the new web deployment project in VS 2010 to do the same the dll is produced along with the pdb but when a dev attempts to debug the variable comes back with "Cannot evaluate expression because the code of the current method is optmized".In VS2008 we had a targets fix file which had the setting for the optimization but these don't appear to work under 10 (plus the targets file has grown).Thanks,Simon
i write a site and get this error, i using VS2010.
i try run on my machine its all work fine, but when i complier and run it on Window server 2008 get this error.
I read http://forums.asp.net/p/1513402/3613239.aspx I install the ReportViewer.exe but still cannot find the Microsoft.ReportViewer.ProcessingObjectModel.dll, however I got find it Microsoft.ReportViewer.ProcessingObjectModel in C:\Windows\assembly and is not a dll file. any suggestion?
Even though you've been using ASP. NET for a while, how much do you really know about ASP. NET configuration files? While you've probably touched the Web. config file from time to time, there are some nuances involved in configuring ASP.
MSDN Magazine September 2004
I am working on a MVC project with Razor view engine and I have the following:
This only works if I have on the same view the following:
However, on my Web.Config I have the following:
<!-- Namespaces -->
So if "SquishIt.Framework" namespace is added on Web.Config why do I need to have the @using on the view?
I would like to secure any URL below the http://MyServer/Admins and limit it to a specific role.
In webforms it was straight forward. I just put a child web.config in the /Admin/ folder and add <authorization> <allow roles> tags to it.
How would be the equivalent technique in MVC?
I finally got around to trying vs2010 and MVC 2 ... I'm glad I did not put them on a production computer.
My first compile (I have not had a chance to investigate because I just did this and I am too tired).
All I did was create a MVC 2 solution with MSTEST Unit Testing selected too.
I compiled it and get four unexpected errors (because I have heard ASP.NET MVC 2 "alpha" and vs2010 Beta 2 are supposed to be somewhat robust):
In both HomeController and AccountController:
"The type or namespace name "Controllers" does not exist ins the namespace "mvczzzzz001" occurs twice, once for HomeController.cs and once for AccountController.cs.
AccountControllerTest.cs has two errors: can not find "AccountController" namespace and can not find "IFormsAuthentication" namespace.
With ASP.NET MVC v1.0 there are errors when one uses xUnit.net (version at time of ASP.NET MVC v1.0 RTM) as the test framework but not errors with MSTEST (I prefer xUnit.net to MSTEST).
I am just so surprised to find such errors in vs2010 + MVC 2 ....
is this happening to anyone else?????????????????
Thank you ~~ regards, Gerry (Lowry)
I'm asking this question AFTER I've already solved my problem - I just wanted more info about it.
Each time I tried to create a ViewUserControl with a specific model template like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyProject.Web.ContactFormContent>" %>
The control would not compile properly and intellisense would not show things like Html and ViewData.
However, when I add the attribute pageParserFilterType to the <pages> in web.config, everything works: