Asp.net - Project Level Imports Stored In Visual Studio 2008?

Mar 16, 2009

I have a Web Service Application Project in Visual Studio 2008. This is supposed to be an ASP.Net 2.0 project and at some point this has been rebuilt using 3.5.VS has kindly added in project level imports to System.Linq and System.Xml.Linq, but when I have re-targeted the project at 2.0 these project level imports have remained.Because the Web Service Application Project does not have the detailed window for editing project references I cannot find how to remove these project level imports.There is no .proj file which is where I would assume these were included.I cannot now build the project as it fails, even though I only get warnings (no errors reported) such as this:Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

View 3 Replies


ADVERTISEMENT

VS 2005 : Can Alias A Project Level Imports Statement

May 12, 2011

I know you can alias an Imports statement in

Imports xyz = ProjectABC.ClassABC

But if I want to use the Project Properties, Reference tab to select a namespace to allow a project-wide setting, is it possible to alias that namespace?

View 4 Replies

Add Project Setup Project For Project For Visual Studio 2008?

Nov 15, 2010

i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :

1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices

2- i try make it with Setup Factory 8.2.1

3- i try with MSI Factory 2.0

4 i try with Setup Factory 6.0

and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :

[Code]...

View 3 Replies

Can't See Visual Basic Project Option In Visual Studio 2008

Jan 13, 2012

I am very new to Visual Studio Application Development. I'm mostly a DB guy. I used Visual Studio as a Report Designer, not much of an .Net guy though I can understand it. I am now asked to create a .net application and I'm trying to create a "Hello World" starter app. I opened my Visual Studio, click File-New Project and all I see is Business Intelligence Projects and Other Project Types. My step-by-step guide says choose Visual Basic, Windows Forms Application. But I can't see it as an option.

View 2 Replies

Error BC30464: Namespace Or Type'Compatibility' In The Project-level Imports 'Microsoft.VisualBasic.Compatibility' Cannot Be Found

Jan 16, 2009

I've started to use a Vista machine for development. In case it is significant: I'm using MSBee so that I can code in the Visual Studio 2005 IDE while still building against the 1.1 framework.On the Vista machine, when I tried to build a particular vb project, I got this error:

error BC30464: Namespace or type'Compatibility' in the project-level Imports 'Microsoft.VisualBasic.Compatibility' cannot be found.

The same project built fine on my old XP machine. I checked in this folder on my Vista machine:

C:windowsmicrosoft.netFrameworkv1.1.4322

...and sure enough, "Microsoft.VisualBasic.Compatibility.dll" was missing. So was "Microsoft.VisualBasic.Compatibility.Data.dll". Copying them from my XP machine to my Vista machine allowed me to build the project successfully.I'm just a bit puzzled as to why this happened. Why was "Microsoft.VisualBasic.Compatibility.dll" missing? I'm also not very comfortable with my chosen solution - copying the DLL manually. It works, but surely there must be a better way.

As far as the configuration:

Vista:
.Net Framework 1.1
.Net Framework 1.1 SP1
.Net Framework 1.1 SDK

[code]....

View 1 Replies

C# - Web Matrix Differ From Visual Studio - Is It More Efficient Than Visual Studio To Develop ASP.NET Web Project

Oct 12, 2011

WebMatrix is a web development and deployment tool by Microsoft so how is this compared to Visual Studio? which Use C# Razor Syntax is that more better coding.

[Code]...

View 2 Replies

Converting VB6 Project With Visual Studio 2008?

May 20, 2010

I have a vb 6 project developed with VB6.0 on XP. I've installed Visual Studio (Professional Edition)2008 on a Windows 7 box. When I tried to convert the vb 6 project (.vbp file) using VB 2008's wizard, I got error messages that the "upgrade failed" because it could not "load the referenced components: msadodc.ocx (6.0.0) and msde.dll It is recommended you install VB6.0 with all referenced components......"I have the VB6.0 CD's and tried to install it on the Win7.0 box and got the message that VB6.0 was incompatible ?

View 2 Replies

IDE :: Work On Same Project In Visual Studio 2008 And 2010?

Nov 4, 2010

Have anyone worked on a project on 2 different computers with different version of Visual Studio Express?

In my case, I have made (and still working on..) a project in VSE2008, which I have installet at my job-computer.

At my homepc I have VSE2010 installed. I am a bit afraid to try working on that project from another version of the Visual Studio..

View 1 Replies

Use Batch Build For Project In Visual Studio 2008?

Sep 15, 2010

In Visual studio 2008, I am not able to see Batch Build option for vb.net projects as c++ projects. I am new to VB.Net. but do it have any other options to do batch buld rather than creating Batch file?

View 1 Replies

How To Close One Form In A Project And Note The Entire Project When Using Me.close() In Visual Studio 2008

Mar 22, 2010

I am really new to Visual Studio and VB and I am having trouble closing a single form:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Me.Close()
End Sub

When I use Me.close() associated with this button it closes the entire project and not just the single form can anyone.

View 2 Replies

Build A Windows Forms Project In Visual Studio 2008?

Sep 2, 2011

If I build a Windows Forms project in Visual Studio 2008, and start it with a Sub Main instead of a form, and for the time being, don't show any forms, is it considered a Console application? Will console.writeline work?

View 3 Replies

Converting Windows Vb Project From Visual Studio 2003 To 2008?

Jun 4, 2012

I converted my project Visual studio 2003 to 2008. and when i run may project pressing F5 this error comes

View 5 Replies

GetPrivateProfileSection In A Windows Forms Project In Visual Studio 2008?

Mar 19, 2010

I'm suddenly having trouble with GetPrivateProfileSection in a Windows Forms project in Visual Studio 2008. The same code works when it's run as an aspx page in a website. Anyway, I define the WINAPI call thusly:

[Code]...

View 7 Replies

Unable To Debug Web Service Project In Visual Studio 2008

May 19, 2009

I've been assigned a web app written in VB using VStudio.net 2003. I am trying to configure the source on my localhost (VStudio 2008) so I can explore and learn about the current app (before I begin any real changes) and I cannot get debugging working for the web service project(s).

Symptom 1: "Unable to automatically step into the server. The remote procedure could not be debugged. This usually indicates that debugging has not been enabled on the server. See help for more information". This happens when I try to F11 (stepInto) the proxy class which invokes my actual web method.

Symptom 2: Pre-setting a breakpoint in my .asmx file code on the statement that will be invoked does not work (i.e. the debugger simply doesn't stop). Having described the situation, here's how my VStudio Solution is configured: Service1 - project created from the VB - WEB - ASP.NET Web Service Application template; this Service1 project contains my main .asmx source code I want to debug. Web.config for this project contains compilation defaultLanguage="vb" debug="true"

[Code]...

View 4 Replies

IDE :: Database Access From A Visual Studio 2008 Express Edition Project?

Mar 3, 2008

I would like to access to a SQL Server Database from my Visual Studio project.

I have SQL Server 2005 Express Edition installed on my PC and I have a database with some tables.

In Visual Studio, I open the Database Explorer and I try to create a database connection.

The Add connection dialog box proposes to enter a database *file name* but I cannot select a database *server* and a database *name*.

Perhaps, is it a restriction because it is a free version ?

Within Visual Web Developer 2008 Express Edition, I can select a database *server* and a database *name* !

View 5 Replies

C# - Enable Circular Dependencies In Visual Studio At The Assembly Level?

Jul 3, 2010

So in Visual Studio, you can't have two projects X and Y such that X references Y and Y references X.In general, I can totally understand how having a circular dependency can be problematic, for a variety of reasons.But is it really not possible to compile two projects that are interdependent in this way? It seems to me that it must be possible, since (in my mind -- maybe I'm completely off-base about this) having two mutually dependent assemblies is really not so different from having two mutually dependent classes -- a case which is legal and can be compiled.

It would make sense to me if you said, "two assemblies cannot depend on each other because the compiler could not compile one before the other"; except that it seems you could make the same argument for two classes within the same assembly, and clearly the compiler can deal with this scenario just fine.

Basically the reason I'm asking is not that I have some desperate desire to do this thing that I know is generally ill-advised anyway. Specifically I'm wondering because it would be nice if I could have two projects -- say, MyProjectCS and MyProjectVB -- that existed basically as two mutually dependent parts of a single unit, and were only separate because certain parts were written in C# and other parts were written in VB.NET.

Is it possible to enable this behavior (in Visual Studio, or elsewhere, for that matter)? If it's not possible within any IDE, it it at least theoretically possible, or could mutually dependent assemblies not possibly exist? If it's not even theoretically possible, why not? In other words, how are mutually dependent assemblies different from mutually dependent code within a single assembly?

View 5 Replies

Debugging With Visual Studio 2010 Immediate Fails Due To Protection Level?

Jun 15, 2010

It happens quite frequently, more times per day, that with Visual Studio 2010, during the debugging, when I used Immediate commands like:I receive the following error:

'NamedVariable' is not declared. It
may be inaccessible due to its
protection level.

View 8 Replies

Visual Studio 2008: No Build Events Folder On The Project Properties Page

Nov 23, 2010

I am using Visual Studio 2008 Professional to build a VB.NET console application. I have a text file that I want to copy to the output directory after a build. I would like to create a build event to do that, but I do not see a "Build Events" folder on the property page. Is there a setting where I can get this folder? Or, is there another way I can set up a post-build event to copy a file to the output directory? The folders I see on the Properties page:

[Code]...

View 1 Replies

No Visual Basic Project Types In Visual Studio 2005?

Dec 9, 2009

I am using: (copied from the/about vb studio window:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework

[code].....

View 6 Replies

Use OpenGL In Visual Studio 2010 In Visual Basic Project?

Jan 15, 2012

I want to use "OpenGL" in my project. Is it possible to associate it with "Visual Basic" application developed in Visual Studio 2010? If yes then how can we do it.

View 1 Replies

Prevent Visual Studio 2008 From Re- Autogenerating "My Project" Folder?

Jan 25, 2010

I am trying to rid my team's Visual Studio projects of "My Project" folders. None of my team is using custom settings or anything that would need to be stored in the "My Project" folder for any of our projects.

I have edited our .vbproj files with a text editor to remove any reference to "My Project", deleted "My Project" from disk, and ensured that no one has checked "My Project" or any of its files into version control. But when any of these projects is compiled, Visual Studio insists on autogenerating "My Project", re-creating the folder (just the folder, without any files inside) on disk and inserting a reference to that folder into the project.

(To clarify, when I say "a reference to that folder into the project", I mean that the .vbproj file contains the following text:

<ItemGroup>
<Folder Include="My Project" />
</ItemGroup>

and that text will not die no matter how many times I kill it.)I suspect that the chain of events is that VS modifies the project to include the reference to the folder; then after the project is compiled the folder is generated because it is referenced. How then can I prevent Visual Studio from modifying project files to refer to this infernal folder?

View 1 Replies

Visual Studio 2008 Sp1 To Visual Studio 2010 Beta Sp2

Feb 17, 2010

Will i be able to successfully install 2010 beta 2 side by side 2008? because i want to test 2010 features and some development toolkits such as silverlight while i don't want to uninstall my visual studio 2008 professional.

View 2 Replies

Visual Studio 2008 Keeps Crashing With "Microsoft Visual Studio Encountered A Problem And Was Shut Down"

Mar 20, 2009

I have a Visual Basic project and when working and modifying code, the compiler will crash and then a message will say something like "Microsoft visual studio encountered a problem and was shut down." I've tried editing code from the solution and the project. Both produce the error. Usually occurs when adding an "IF...Then..." condition. May work for hours but then crash. Solution will compile and build.

View 3 Replies

Create First Project In Visual Studio?

Jan 25, 2011

how to create my first project in visual studio

View 2 Replies

Use Mercurial With A Visual Studio / VB Project?

Oct 6, 2011

I want to start using Mercurial on a VB.Net project, but I'm not sure which files should I add. Do I include the Project.sln file, bin/ and obj/ folders?

View 4 Replies

How To Roll Back Project In Visual Studio

Feb 13, 2010

How to Roll Back project in Visual Studio

View 1 Replies

Project And Am Getting Stumped On The Error In Visual Studio?

Nov 21, 2009

I am writing a project and am getting stumped on the following error in Visual Studio. It reads "Warning 1 Unused local variable" and "Warning 2 Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated"Here is snap of my code and the problem is highlighted. Any thoughts?Private Sub xmlImport(ByVal source As Object, ByVal e As FileSystemEventArgs)Dim eConnect As New eConnectMethods

[Code]....

View 1 Replies

Project Conversion To Visual Studio 2010?

Aug 24, 2011

Programming Applications Office Outlook 2007.This publication comes with sample VB code which I have dowloaded and am attempting to run.The code was written using VS2005 and I am using VS2010.The Upgrade conversion works ok and the project loads - however I get the following errors when I try to build:Does Microsoft have a fix? I only get thousands of people asking the same question when I search!!

ErrorAn error occurred while validating. HRESULT = '80004005'C:Documents and SettingsMartinMy DocumentsVisual Studio 2005ProjectsSampleCodeVBSampleCodeSetupVBSampleCodeSetupVB.vdprojSampleCodeSetupVB

[code].....

View 4 Replies

Publish Visual Studio Project To Webserver?

Dec 4, 2011

I am by no means a programmer, but I was recently tasked with moving our website to a new server, since the website manager quit. The Visual Studio solution was written in 2008. I can compile and run the solution, so I'm sure it's working just fine. But every time I try to publish the solution, either to FTP or to my local hard drive, the .asp webpages get deployed to a sub directory, where on the live site, they are in the root.

View 1 Replies

Publishing Project In Visual Studio 9. With Database?

Apr 22, 2011

I am using an Access Database with my project. When I publish, all the Forms seem to Publish. Also the database gets published. However, once I install it, there seems to be no connection with the Database.The Forms give me the Oledb error as Im using Access. However, the login form seems to connect with the database. In other words, my applications gets authenticated, but when I try to open other forms, there seem to be an error with DB connection

[Code]...

View 1 Replies







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