VS 2010 How Do References Really Work

Jun 1, 2010

If have a folder (say "binaries") and place all the 3rd party dll's you are going to use in there. When you reference the dll in your project, what is the use of setting "Copy Local"?If you dont set Copy Local, does your code reference the dll in that folder and the folder have to be deployed with your application?

I just had another "something new" and that was a dll just have to be present apparently in the web project's bin folder.The "easy way" suggested was adding a post build like this:

Quote:xcopy "$(SolutionDir)binaries/*.dll" "$(ProjectDir)bin" /y
xcopy "$(SolutionDir)hibernate.cfg.xml" "$(ProjectDir)bin" /y
xcopy "$(SolutionDir)Log4Net.config" "$(ProjectDir)bin" /y

all that dll's get copied over, and I dont even know what is really required.Btw, I noticed with the above script that say "NHibernate.dll" get copied over, but "NHibernate.Caches.SysCache.dll" not.

View 4 Replies


Similar Messages:

Visual Studio :: Updating Web References In 2010?

Jul 28, 2010

I am currently making the switch over from Visual Studio 2005 to 2010. In 2005, you were able to right click on the 'web references' folder and update all web reference within that folder. However, in 2010 I cannot see an option to do this - I have to update each one individually.Anyone know of a way of updating web references in Visual Studio 2010 en masse?

View 2 Replies

VS 2010 - Error Message References Page On Dev Box Not Server

Apr 9, 2012

I am developing a web application on a PC. The application files are in C:DevelopmentmyApplication..I publish the site to a test server on a local network. I publish the site to mytestServerWebSitesmyApplication...This server address is actually D:WebSitesmyApplication - and, after I publish, all that is in there are are the usual .aspx files and the compiled dll in the bin etc.

Running the site in a browser going to URL....(whose virtual directory is pointing to the physical directory D:WebSitesmyApplication) the site runs okay. However, one page is falling over and the stack trace says the error is in C:DevelopmentmyApplicationOutlookReminders.aspx

Which I don't get. How does the server know where the application was developed? Surely these errors would normally say, in the stack trace, that the error occurred in URL.... Why is it saying the error is in a file on a development box?

View 3 Replies

C# - SQL Server Reporting Services: Web References Versus Assembly References, Poor Performance

Feb 16, 2010

I am using Reporting Services to render a report directly to PDF. It requires that I use two web references: ReportExecution2005.asmx and ReportService2005.asmx. The performance on web references seems really poor. Since my web server (IIS7) and my SQL Server (2008) are on the same box, is there a way I can reference them directly? If not is there any way I can explicitly cache them or something. First load is really really slow, second load is perfectly acceptable.

View 2 Replies

JavaScript - Mvc Script And Style References / Include Script And Style References That Will Not Break On Deployment

May 11, 2010

I'm trying to include script and style references that will not break on deployment, however I can not even get the references to work locally. I have tried using Url.Content() and MVCContrib's <%=Html.ScriptInclude("")%>.

My scripts are in a Scripts folder on the root of the site; my styles are in the usual Content/css/ folder.

The scripts render like this:

<script type="text/javascript" src="/Scripts/MicrosoftAjax.debug.js" ></script>

This will not work in a view page in the Views folder. What am I doing wrong and what is the best way to handle this?

I would have thought Url.Content() would at least work for styles but used in my master page, the link rendered

<link href="/Content/css/Site.css rel="stylesheet" type="text/css" />

This does not work, because the Master Page is in a Shared folder, so what is really the way forward with this?

View 2 Replies

VS 2010 How To Work With Aspx

Nov 4, 2010

So, I just made a simple application using WCF Service, The entire application has been made on a Web Form, Witch is a .aspx file, All works well when debugging in local hosting, but when i upload the files that where published to an online FTP and navigate to the .aspx, It shows up as all the coding instead of executing it, Do i need a specific web hoster or am i just being an ultimate noob?

View 9 Replies

VS 2010 Getting Profiles To Work

Mar 24, 2011

I am using VWD 2010 and building a site on the 3.5 framework. It's a simple site for a school club, and we need user profiles for membership information. I have been looking at This MSDN page about how to go about it. This is my current Web.config:

Code:
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider">
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
<properties>
<add name="Name" type="String" serializeAs="String"/>
<add name="Address" type="String" serializeAs="String"/>
</properties>
</profile>
<roleManager enabled="true">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
</providers>
</roleManager>

It is more or less out of the box currently. The issue I am having is that if I try to access say, Profile.Name, I get the error that "Name" is not a member of "Profile". I have had this working before in another site, but this one is getting the better of me.what I may need to do to get this functioning properly?

View 1 Replies

Cannot Get Work VS 2010 And IE Debugger

Mar 29, 2011

using VS 2010 and the IE Debugger. I can't get it to work for nothing. The IE Debugger works fine with all other VS versions. I've done the necessary steps in the "Internet Options" "Advanced" tab.

View 16 Replies

Edit And Continue Does Not Work In VS 2010 / MVC 2

May 28, 2010

Although Enable Edit and Continue is checked on the Web tab of my ASP.Net MVC 2 project, I cannot in fact change the source code while running. For example, if I try to edit a controller while paused in the debugger, I cannot change the file (acts as if read only).

I found a related post Edit and continue in ASP.NET web projects, however

The answers seem to suggest I should be able to at least edit the code, then reload the page to see the result.I don't know what the distinction is between a Web Application and Web Site projects

View 2 Replies

Adding A Work Item To TFS 2010 From .NET App Fails Due To Permissions?

Feb 16, 2011

I'm working on an ASP.NET webforms app that will serve as a simple intake form to create work items in TFS 2010.The app works correctly when I run it locally in debug mode--the submission completes and the work item is created.

When I publish the form to our dev server, it yellow screens and throws the following error:

[SecurityException: TF50309: The
following account does not have
sufficient permissions to complete the
operation: DOMAINNAMESERVERNAME$. The
following permissions are needed to
perform this operation: View
collection-level information.]

In my code, I'm attempting to access TFS using a service account, and from what I can tell the service account is being used correctly when I run in debug mode.Here's what my C# looks like:

string tfsServerUrl = "http://servername:8080/tfs";
string tfsProject = "Web Team Projects"; [code]....

If I set a breakpoint at the tfs.Authenticate() line, the server object shows the service account name as the current user and IsAuthenticated = true.

The line in the exception that mentions SERVERNAME$ is what's stumping me. It's seems like IIS is deciding to try to access TFS with the app pool identity instead of the credentials that I'm explicitly supplying.Our dev server is a Server 2008 box running IIS 7.

View 1 Replies

C# - Visual Studio 2010: Breakpoints Don't Work After Rebuild

Jan 25, 2011

I'm working on a VS2010 Solution containing an ASP.NET Website Project and 8 c# class libraries. All projects are set to compile under .NET 3.5

When I set a breakpoint somewhere in the class libraries, the debugger breaks correctly and everything is fine. If I then stop debugging, modify code in the class library, and start debugging again (which of course rebuilds the libraries which were modified) the debugger ignores the breakpoints.

Has anyone else experienced anything like this? I'm lost and it's extremely frustrating to not be able to debug after making even a single line change and rebuilding.

Visual Studio 2010 Ultimate Windows 7 Professional 64-bit

View 2 Replies

ADO.NET :: Visual Studio 2010 MVC 2 Order By Does Not Work On Live Website

Aug 7, 2010

Platform : Visual studio2010 , MVc2 and sqlserver 2008

I wrote query in Linq for order by. Following is the code snippet for the same,

[code]....

It works in on my local machine but in live site it doent work correctly. I mean it won't show sorting/oder by. In live

site we used sql server 2005, does this going to make any difference ?

View 1 Replies

Visual Studio :: CSS Feature In VS 2010 Express Doesn't Work Right

Jun 8, 2010

I replaced VS Express 2008 with 2010 on my Win 7 laptop a few weeks ago. I have a small simple website with just a master page and a default page. After making changes to the CSS file, it took no effect at all on my webpage's font and colors when viewing it in design mode or run mode. But then, it works when I test my webpage a few days later. I don't get it. Software either work or don't. Can't be both. This latest version of VS Express is buggy. Does anyone have this similar bug?

View 2 Replies

Security :: How Does The Login Work In The Webtemplate Given In Visual Studio 2010

Dec 6, 2010

How does the login work in the webtemplate given in visual studio 2010, I tried to set the redirection page in the login page. no control and no rerouting is available.

View 2 Replies

Web Forms :: DropDownList In Visual Studio 2010 - OnChangeEvent Does Not Work?

Aug 27, 2010

I am using code I have always used in other version of VS for binding to a list box.

After binding a dataset to a ListBox in VS 2010, render the page, and cilck any item in the list, the on change event always goes back to the first item in the list!

The following code to run the list box runs once...

if (!Page.IsPostBack)
DataSet ds = UWA.AWHWebServices.GetAllBranches();
LBCSC.DataSource = ds;
LBCSC.DataTextField = "BUSN_ROLE_NM";
LBCSC.DataValueField = "BUSN_ROLE_TYP_CD";
LBCSC.DataBind();

Now instead if I load the list box using Items.add, render the page, and then click on any item in the list I get the correct item selected.

for (int i=0;i<ds.Tables[0].Rows.Count; i++){ LBCSC.Items.Add(ds.Tables[0].Rows[i] "BUSN_ROLE_NM"].ToString());}

Is this a VS 2010 Bug?

View 2 Replies

VS 2010 / Changing Label Text From Page Load Does Not Work

Nov 22, 2013

I have a label on my page, and in Page_Load I have

Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Label1.Text = "dog"
End Sub

This works when I run it locally, but not when I upload it to my host. The label does not change. what is going on?

View 2 Replies

Configuration :: System.Net.Mail.SmtpClient Credentials Don't Work With Exchange 2010

Aug 29, 2010

I run a Exchange 2010 server and created an account for one of my websites to send e-mails.

The webserver's IP is even listed on the [Organization Configuration] -> [Hub Transport] -> [Global Settings] -> [Transport Settings] -> [Message Delivery] list.

The code sets a set of Network Credentials, but setting incorrect or correct settings, it doesn't matter; if I list external e-mail addresses, I get a "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for <address>" message, 'local' addresses that are cc-ed, do get delivered...

When checking with telnet, I noticed that the only AUTH option was AUTH NTLM, but when checking the NetworkCredentails, it stated that NTLM should would.

View 2 Replies

VS 2010 - Ajaz HTML Editor Won't Work Properly When Deploying On Server

Jul 19, 2011

I am having a little problem with AJAX htmleditor, it works fine when testing on localhost, but after deploying it on server it wont work properly.

I have 3 different txt source for the htmleditor, and sometimes the texteditor just gets blank and even the toolbar of the editr disappear and after that doesn't matter which source i select the editor stays blank unless i reload the page.

Code:

'======================================= LOAD xxxxxDATA =====================================
                'Open a file for reading
                FILENAME = Server.MapPath("~adminexxxxxxexxxxxTemp1.txt")
                 'Get a StreamReader class that can be used to read the file
                 objStreamReader = File.OpenText(FILENAME)
                 'Now, read the entire file into a string
     
Code].....

View 5 Replies

How To Work Out What Visual Studio 2010 Asp/silverlight Project Using .net Framework 3.5 Dependancies Are Missing

Jul 29, 2010

I have a Silverlight site hosted in an asp page, it has been developed using vs2010 using .net 3.5 framework and silverlight 4. It all works on my dev box. However when I publish the site and get it deployed I get the error:

Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Moe.Tactical.Ttas.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I have checked that the ISS asp setting are using 2.0.50727, and that all my references are using that runtime also.

I am not sure what to do to work out what the missing dependencies are at this point (I don't have access to the deployment box, I will have to go and sit with a system admin).

View 2 Replies

Databases :: Windows 2008 R2 Server And Visual Studio 2010 To Get Oracle Quereis To Work? 

Feb 23, 2011

Is there anything special to do with Windows 2008 R2 Server and Visual Studio 2010 to get Oracle quereis to work? I have the same DB Connnection.string I have used before and it works. I am at a loss here.

View 6 Replies

After Opening An Existing Proyect In Visual Studio 2010, Web Form In Design View Doens't Work

Apr 14, 2010

After opening an existing proyect in visual studio 2010, the web form in design view doens't work. All server control puts a gray box with the following message : Error Creating Control - imgTransportistaSession state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.

View 4 Replies

Publishing Via "File System" In Visual Studio 2010 - Doesn't Work?

Jun 2, 2010

this is an extremely frustrating situation. We have just upgraded to Visual Studio 2010, and very nice it is, except for when it won't do something really simple, like Publish your ASP.NET Web Application to a folder on your desktop.For some unearthly reason, what used to work flawlessly in 2008 is now generating an error: It stops Publishing, after successfully Building, saying:Error: Copying file ImagesProfile32_32.JPG to objx64ReleasePackagePackageTmpImagesProlfile32_32.JPG failed. Could not find file 'ImagesCelebrityProfileImages32_32.JPG'.The problem is that there isn't any reference to that file in the project code (in the database, yes, but not in the code itself), and we don't want to store such images with the project (and they're not).Why (and how) has it suddenly decided that this unreferenced image (and presumably more if I get it to move past this one) is suddenly necessary to run the project? How can I stop this from happening?

View 1 Replies

Visual Studio - What Is Best Option In Visual Studio 2010 To Sync Project Files Between Home & Work Computers

Feb 14, 2011

Im working on a website project with Visual Studio 2010 from 2 different computers (home & work).
In Dreamweaver Im used to FTP to upload/download files to/from a webserver to syncronice my files on the current computer Im working on.What is best option in Visual Studio 2010 to sync project files between home & work computers? I have seen there is a built in FTP, but seems only it can upload files, limited functionality?

View 1 Replies

How To Get Rid Of Any Or All References To Ajax 4

Sep 28, 2010

I looked at Ajax 4, but on my XP box I had errors I couldn't work with. So I uninstalled Ajax 4 and installed Ajax 3.5, then copied the DLL files to all the Bin directories of the web sites on the development box. I thought everything was fine, but after several hours of development, I again started getting the error:AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

View 1 Replies

How To Identify References

Jan 19, 2010

I am starting a new website based on an existing one that I already have up and working. I copied the old website files into a new folder but it will not run. The error suggets that I need to add a reference. So my question is . . . how can I identify the references that are included in the original site?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved