Visual Studio :: A Website Adds Dll Under BIN And A Web Project Adds Dll Under Reference Folder?

Jul 21, 2010

Just to test, I created a blank website and a blank web site project.

When I added a referece to web site by doing right click and add reference it added the dll inside a BIN folder but on ther other hand when I did the same for a web site project it created a reference folder for me and then added the dll under the reference folder.

View 2 Replies


Similar Messages:

Visual Studio :: How To Add Copy A Reference Folder To Test Project Directory

Feb 3, 2010

I am working on my test project for my web service, and my problem is that, my web service uses a folder (within the folder there are crystal reports template).

How can I copy it to test porject?

I've tried to copy the folder to various directories such as bin, bin/debug, obj, rootDir etc, but none of them works

View 2 Replies

Visual Studio :: Automatically Adds The ID Attribute To Controls That Are Runat="server"

Nov 25, 2010

When I copy/paste a control, Visual Studio automatically adds the ID attribute to controls that are runat="server".

Is there a way to disable this?

View 7 Replies

Visual Studio :: Reference JavaScript Library From Multiple Websites Without Copying It To Each Project Folder

May 13, 2010

I have several web sites, all of which use the same JavaScript library. How can I "reference" this library from each of my web sites? If I just import the library into my web site in Visual Studio, I get in trouble as soon as the library changes, because I then have to update it in all web sites manually. It would be much easier to place the library in an external folder and just reference it from my web sites. How can I do this with Visual Studio?

View 9 Replies

Website Project To Reference A Signed Assembly In Visual Studio?

Mar 30, 2011

I'm aware of the following two different types of web projects in Visual Studio 2008:Website projectWeb application projectA web application project can reference a signed assembly as long as the web application's assembly is also signed with the same key. However, this doesn't work with the website project because there is no place to sign an assembly. I think this is because the assembly is compiled dynamically on the server?

Anyway, is it possible to get the website project working with this signed assembly? Or will I have to convert this website project into a web application project?Edit:The following situation has required me to ask for clarification in this matter:I have a class library that is being referenced by several other projects in my solution in Visual Studio. One of the projects is a windows application that will be deployed to specific external users. In order to make sure that the application is using the correct assembly and to also prevent others from using the assembly (I am aware of the limitations with respect to its effectiveness), all assemblies have been signed and all the classes in the library are declared as Friend (internal).

The website project doesn't seem to have a way for me to sign its assembly and I get the following message when attempting to use anything from the library: "CLASS is not assessable in this context because it is 'Friend'", which is to be expected.The following attributes are inside the AssemblyInfo.vb file in my class library project:

<Assembly: InternalsVisibleTo("OtherProject1, PublicKey=AAA...")>
<Assembly: InternalsVisibleTo("OtherProject2, PublicKey=AAA...")>
...

My Conclusion:Looks like the cleanest way to do this would be to convert the website into a web application but this would require a bit of time to do since our site is pretty fleshed out already and as pointed out in other discussions, can be quite a pain to do. Going forward, I think creating a web application in the first place may have been a better idea and much more flexible for future development.

View 3 Replies

C# - How To Reference The Base Folder In Website Project

Jun 18, 2010

My urls when I run the asp.net website project (in vs.net 2008) looks like:

http://localhost:54269/www/Default.aspx

So referencing things like:

/sytle/css.css

Doesn't seem to work.

Why does my project have a '/www' folder? Did I set things up wrong?

View 1 Replies

Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference

Jan 7, 2010

When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.

Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.

View 3 Replies

Visual Studio :: Adding A Reference To A Project?

Apr 13, 2010

1. Is there a reason why someone would want to add a reference to an assembly (e.g. System.Drawing) but not add the Using statement? Seems that if you add a reference, you should add the Using statement automatically, but maybe not always?

2. Correct me if I'm wrong, the only benefit of adding a "Using" statement at the top of your file, is to bring into scope an assembly and not have to fully type the class name? So if I have a Using System.Drawing, I can type in
string = Color.Tomato.ToString(); instead of string = System.Drawing.Color.Tomato.ToString();

View 3 Replies

Visual Studio :: Visual Studio Hangs When Create A New Website Or Project

Sep 2, 2010

Just as the subject says, my VS'05 installation hangs when trying to create a new website. I even installed a fresh version of VS08 along side '05 and '08 is doing the same.

View 9 Replies

Visual Studio :: Reference Xml Files N The Setup Project?

Dec 13, 2010

I am using VS2010. When I am building a release for a WinForms Applicaiton, I can see some .xml files relevant to project in the bin elease folder. The .dll (third party component) has been referenced in the References folder of the project for eg. Rebex.Net.Ftp and in the properties window the Source Path is

C:Program FilesRebexFile Transfer Pack for .NET 4.0FTP SSL for .NET 4.0inRebex.Net.Ftp.dll In the above mentioned source path directory there is an Rebex.Net.Ftp.xml which gets pulled across to the release folder as well. I couldn't really get my head around where this can be referenced so that it puts this .xml file in the release folder of the project when I do a build?

My main problem is, when I created a setup project for this application, I can't get this file included in the installation pack (after installing the .msi file). I get the Rebex.Net.Ftp.dll but not Rebex.Net.Ftp.xml file. I tried all the options in the Project Output except including the "Source files" which I dont want to. how to include the .xml files in the setup installation pack, ie., if there are properties I am forgetting to set or something like that?

View 3 Replies

C# - Migrating From Website Project To Web Application Project In Visual Studio 2010 Causing All Controls To Throw Error?

Mar 29, 2011

I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was working fine in the website project. Today I decided to migrate the website to a web application project as I have learned this is the best way to work in .NET. I split out all my class files into a separate class library and copied all my other content into my new project. Then I updated all the references and web.config.

When I build the class library, everything works great. The problem is happening when I try to build/debug the web application project. It is acting like all the controls are missing and it is also throwing a bunch of compile errors about the public properties I have in my master pages.

Control errors: "The name 'INSERT CONTROL NAME HERE' does not exist in the current context"

Master page errors:'System.Web.UI.MasterPage' does not contain a definition....

It is giving these errors for every single control and master page property in my entire solution.I notice when I add a new web.form to this project, it also adds a filename.aspx.designer.cs file in addition to the .aspx and .aspx.cs file. My existing files do not have these extra files since they were created in a different .NET version.

UPDATE: It seems I was missing the step where I need to right click on the new application folder and select "Convert to web application". I just did that and it seems to be a little bit better...

Now it is choking on Literals that are inside single quotes:

<div class='<asp:Literal ID="CssClassLiteral" runat="server"></asp:Literal>'>

It doesn't see this literal when it does the conversion... Is the above valid code or should I implement that functionality another way?

View 1 Replies

App_Code Folder In Project In VIsual Studio 2010

Jun 22, 2010

at vs2008 i could set App_Code folder, but at vs2010 i can not do it, that's why i put my dataset's and class' to App_Data folder. Either I do not know even App_Data folder is secure?

View 4 Replies

Visual Studio :: To Add An Existing Folder (and Contents) To A Project?

Jan 21, 2011

I know you can add an existing item(s), but is there a way to add an Existing folder (and contents) to a project? It sucks without this option. I need to add a folder that has many folders and a lot of content.

View 1 Replies

Visual Studio :: Unable To Copy Project Folder?

Apr 26, 2010

I currenty have a project hosted on our server, when i open that project folder i see about half of the folders i should normally see, i dont see the Controllers folder, Properties folder, obj folder, as well as the csproj file. Before I could copy this same folder and put it on my laptop and after it brought all of them over it would show these folders. Now it wont, it just copies over what it sees, not the other folders...I'm trying to create a copy on my laptop that I can work on then publish it to the server...I was able to do this before just fine, now its not copying/generating the necessary folders/files to my comp

View 2 Replies

Visual Studio :: Running Website Windows 7 Professional 64 Bit / On Loading Up A Website Project Getting Error?

Mar 6, 2010

I have a new development machine running windows 7 professional 64 bit. On loading up a website project Im getting this error

'The Web Application Project 'websitename' is configured to use IIS. To access local IIS websites, you must install IIS components:

IIS 6 Metabase and IIS 6 Configuration Compatibilty

ASP.net

Windows Authentication

In addition you must run Visual Studio in the context of an administrator account

As far as Im aware, I am an administrator of my own pc and I have the .net framework installed.

View 4 Replies

Configuration :: Error To Add Database To A Project In Visual Studio Via App_Data Folder

Oct 5, 2010

I am trying to add a new database via the App_Data Folder and I receive an error described below.When I attempt to add ANY TYPE OF SQL SERVER DATABASE through the App_Data folder I receive this error "Connections to SQL Server Files (*.mdf) require SQL Server Express 2008 to function properly. Please verify the installation of the component or download
from the URl."

I can create a db via SQL Server Mgmt Studio, it connects fine, and I can see tables.

Visual Studio- Server Explorer connects fine to the Database, I can see the tables.

Im running XP SP3 w/ Visual Studio 2010 and SQL Server 2008 R2 Developer. I had previously removed SQL Server Express.

Why cant I access the database within my project, when Im able to connect to this fine within Visual Studio Server Explorer?

View 6 Replies

C# - Code Adds Multiple Divs Of The Same Id?

Mar 23, 2011

Problem in code adds to the same div? I need it to add multiple divs of the same id.Atm it takes all the seperate entitys or colums in my database and places them in the one div called I was hoping it would add for each record in my database which is equal to the userid in my sqlsyntax.

How can I achieve this?

Code:

using (OdbcCommand cmd = new OdbcCommand("SELECT Wallpostings FROM WallPosting WHERE UserID=" + theUserId + "", cn))

using (OdbcDataReader reader = cmd.ExecuteReader()) [code]...

I need it to look like this:

<div id="test1">
<div id="mysqlcontent">record 1</div>
<div id="mysqlcontent">record 2</div>
</div>

View 3 Replies

Add Another WHERE Statement Which Adds Where Schd_Date Is After Todays Date?

Apr 3, 2011

I have the following Query made using the Query Builder in Visual Studio.

SELECT Schd_ID, Schd_Date, Schd_Avaliable, Schd_Nights, Schd_Price, Accom_ID
FROM Schedule
WHERE (Schd_Avaliable = 'Yes') AND (Accom_ID = Accom_ID)

I want to add another WHERE statement which adds where Schd_Date is after todays date?

View 4 Replies

AJAX :: Updatepanel Adds Null Form Key

Mar 1, 2010

I have a master page that loops through form keys looking for a specific key:

[Code]....

Problem, if I use an UpdatePanel on a page when this code is hit the last form key is null. If I don't use an update panel, all is good. Why does the UpdatePanel send a null form key in the list?

View 3 Replies

C# - Request.files Adds The Path On Localhost?

Jun 25, 2010

I'm using Request.Files to obtain a file that the user is uploading on my web page.I noticed that if I use the filename property in IIS it gives me a path + filename, however if I run in cassini it only gives me the filename no matter what directory I use.Why is this? And, is there a way to just use the filename when in IIS?

View 1 Replies

C# - HttpWebRequest POST Adds A NULL Value To Form Variables

Jan 10, 2011

I am attempting to call a RESTful service using an HttpWebRequest object via POST. I am attempting to pass 1 variable with the Request body which contains a url encoded string. I see the request when it hits the server; however, it shows 2 form variables. The first is Form[null] and the second is my variable.I am attempting to locate the source of this NULL key; however, I cannot. Any ideas on how I may be able to remedy this since it's throwing issues when I attempt to use it with the Nancy web framework for .Net.

Code:

var request = WebRequest.Create("http://localhost:8888/RouteName") as HttpWebRequest;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";[code]...

View 1 Replies

Adding To EntityCollection Adds To The End Of Collection In Entity Framework?

Feb 28, 2011

I'm trying to have a View where the user can add items in a collection without having to go to a new View (the scenario is a sort of CV site where the user adds info about work experience, skills, etc, and it would seem absurd to go to a new View to add each little thing).

So I have an edit View that shows a number of text boxes for the already added items, and there's an ajax call to go to a method to fetch the collection fresh if the user adds an item.

Here are the methods in question:

[code]....

View 1 Replies

Admin Adds Items To Users Profile.shoppingCart?

Mar 10, 2010

I'm using the profile to store a users shopping cart which works fine. I now need a way for the site admins to create a cart, add items and checkout for a particular user.

I'm trying to access the users cart with this: Profile.GetProfile(lblUserName.Text).SCart

I first check to see if the user has a cart and create one if he does not and then add the item to the cart. I'm using the code below but get this error when attempting to add the item:

Object reference not set to an instance of an object.

Here is my code:

[code]....

View 1 Replies

Web Forms :: Setting A Property In A Class That Adds A Web Part

Sep 24, 2010

When I add a WebPart to a page, I need to set a Property in the class that builds the WebPart.

In the CatalogZone, I declare:

[Code]....

In the CatalogPart1 class, I instantiate MyWebPart:

[Code]....

MyWebPart.PagePartID contains the correct value.

This calls MyWebPart which contains the property:

[Code]....

but vPagePartID is equal to nothing.

What am I doing wrong?

How do I get the value of PagePartID to MyWebPart?

View 2 Replies

DataSource Controls :: How To Add Record In Database So It Adds With The Existing One

Apr 13, 2010

Basically what i have is a button and i want this button to add value in database, i mean if the value in the database is 1 it adds 1 to it, so that the value becomes 2.

View 3 Replies







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