.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Windows 7 (64x), Visual Basic Xpress V10, Sql Server Xpress V8R2 -Deployment results in Attempt to a

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :Sql Server
Hi all, I'm at my wits trying to figure this out.  It's a new 64x computer running Windows 7.  I've installed Sql Server Express V8 R2. The connection string is user instance = true.  And the database is located in a directory off the main directory to which the connection string points to. The error I get when starting up my VB Express 10 app is "An attempt to attach an auto-named database for file ‘C:\datadirectory\data.mdf’ failed. A database with the same name exists, or specified file cannot be opened, or it is located in UNC share. I've attached the database using sql server manager v10, and can see the data. Googling his error, there seems to be a lot of web-aps seeing this as well. I did have a problem after I installed sql server version 8 r2, just trying to create a database.  That was resolved by going through the IIS -configuration. If I can provide any other information, please let me know.  Cheers        

View Complete Post

More Related Resource Links

How to save Windows credentials to a data source in SQL Server Reporting Services 2008 using Visual

I am trying to create a shared data source for SQL Server Reporting Services 2008 that uses a specific Windows user ID and password to connect to the database. Using the Report Manager web interface, if I create a shared data source and specify "Credentials stored securely in the report server", I can check the "Use as Windows credentials when connecting to the data source" checkbox. This tells SSRS that the user ID and password I specify are from a Windows user, not a SQL Server user. I want to create the shared data source using Visual Studio though. In Visual Studio I have an option to use stored credentials but there is no equivalent of the "Use as Windows credentials when connecting to the data source" checkbox. SSRS always assumes that user and password are for a SQL Server user, not a Windows user, and thus the connection fails. Does anyone know how to tell Visual Studio that the stored credentials are for a Windows user?

Windows form application, Visual basic 9

please give me vb 9 ( visual studio 2008 ) language example, to create shortcut on the desktop, from file notepad.exe which stored in c:\windows\notepad.exe

Windows XP, Visual Studio Express 2010 and SQL Server 2008 Express - How can I save modified columns



I am using c# in VS 2010 Express. I have a MDF database that I connect to through "Database Explorer". Database Explorer will not let me SAVE columns that I have modified. As I know in SQL Server 2008 full edition you can change the setting "Prevent saving changes that require table recreation" in Management Console to prevent this. I haven't got Management Console and can't see it in install.

How do I change this setting if I haven't got management console? Is it in Registry or Config File.



Cannot run Basic Web page from Visual Web Developer on IE8 on Windows 7 - won't accept connection e


I am trying to run the 'Basic Web Page' tutorial in internet explorer 8 on Windows 7.

I get an error message in IE8:

The remote device or resource won't accept the connection

The device or resource (localhost) is not set up to accept connections on port "51551".


I just upgraded from Vista to Windows 7. It did work on Vista so I think it must be related to security setting???

Cannot seem to get a hit on the web for help so appreciate any help.



Use Visual SourceSafe 2005 via COM interface on Windows 2003 Server 64-bit



I'm trying to use Microsoft SourceSafe 2005 COM (published via ssapi.dll) in my 64-bit application running on Windows 2003 Server 64-bit. The attempt to get instance of the interface fails with "Class not registered" (REGDB_E_CLASSNOTREG) error. As many posts in other forums and MSDN documentation explain it is happening because of separation between 64-bit and 32-bit implementations. In other words the process in 64-bit doesn't see registry entries made for 32-bit applications. (I checked and see the registry entry under $/HKLM/SOFTWARE/Classes/Wow6432Nodes/CLSID/{Class ID}). However, I need my app. to use SourceSafe services.

Please, advise how I can invoke COM interface implemented in 32-bit from my 64-bit application. Since the 32-bit application isn't mine I can't recompile it with 64-bit... :(


Thank you.

Regards, Leo

Not getting "Basic" and "Advanced" options while installing MOSS2007 SP1 on windows server 2008


I am trying to install MOSS 2007 SP1 on wingows server 2008. After the licence agreement I am being redirected to a window where I can select "Server Type" skipping the window where we can select Installation type(Basic or Advanced).

And "Complete" and "WebFrontEnd" options are diabled and "Standalone" option is only enabled on the "Server Type"  window.


Please help me regarding this.



Help deploying Windows Service to 64bit Server usinf Visual Studio 2008 Setup Project?

I have a Windows Service I created a while back for our Win2003/2008 32bit Servers, written in Visual Studio 2008, deployed via a VS2k8 Setup Project.  Everything works great, installs fine, and runs as it should.  There is no platform dependent code, it's all straight-up .Net Framework stuff, so we thought it should deploy to a Win2008 64bit Server just fine.  But this seems not to be the case.

When I try to install the Service as is on the 64bit machine, the service and associated DLL's are installed to the "C:\Windows\SysWOW64" folder, but when you right click the Service itself and look at the properties, it is trying to find the .exe file in the "C:\Windows\System32" folder. This difference prevents the service from running, obviously.

If I change the Setup Project settings, set the Target Platform to "x64" and change in the File System screen to use the "System (64-bit) Folder" placing the files in there and re-run the setup.exe on the server.... now the files are correctly installed to the "C:\Windows\System32" folder, but the Service itself is not 'installed', that is it *does not* show up in the Services Manager.

Just for the giggles of it I tried to manually install the service using 'installutil.exe' in the .Net Fra

Visual Web Developer 2010 Express - installation on Windows Server 2008



We are trying to install VWD 2010 on a windows 2008 server. We already have installed the 2008 version as well as SQL 2005, 2008 and 2008 R2. The Web Platform installer is not installing VWD 2010 however.

At first it notified us that the OS does not allow it, after running tons of updates on the OS (some of which failed) it is still not doing it, not even donwloading it. The latest message simply asked us to post the error on the forum.

Has anybody had similar experiences? If so, how was it solved?



Attempt to download MOSS 2007 document results in server out of memory error


A user contacted me regarding a problem he was encountering. He had several .txt files in a sharepoint document library that he wanted to "move" to a linux file server.  He initially changed the doc library's view to Explorer View, then attempted to drag and drop the icons onto a non-sharepoint location. Then he got to the larger files (he has files up to 90MB) . At this point , he got the error

Server Out Of Memory

There is no memory on the server to run your program. Please contact your administrator with this problem.   at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
   at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
   at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
   at Microsoft.SharePoint.SPFile.OpenBinary()
   at Microsoft.SharePoint.ApplicationPages.Download.WriteFile(String sourceUrl)
   at Micros

installing SQL Server 2005 on Windows 7 with Visual Studio 2010 already installed



Last year I had Vista on machine with Visual Studio 2008 and SQL Server 2005 running fine. Last week I decided to wipe the hard disk, install Windows 7 and make the move to Visual Studio 2010. I still need SQL Server 2005 to be able to test code for clients using this.

Anyway, Visual Studio 2010 Professional went on OK. This installed SQL Server 2008 Epxress.

I then try to install SQL Server 2005. I know that there is a compatibility problem, so following advice from other sources, I want to install it without running the server, then install SQL Server 2005 SP3. Then I should be up and running.


The problem is that even though I make sure the 'Start SQL Server' check box is UNchecked, part way through the installation it throws up an error saying it can't start the server and this part of the installation is unrolled.

I've tried running 'setup.exe SKUUPGRAGE=1' which gets rid of the only warning I was getting up to this point, but the setup seems to insist on running the server even though I tell it not to. So I don't get a chance to run SP3 on it.


I wonder if the problem is that SQL Server 2008 Epxress is already installed but can't see an easy way of uninstalling it. It doesn't appear as an uninstall option using the Visual Studio 2010 disk and if I look at uninstall programs I get the f

Compatibility issues between Microsoft Visual Studio 2005 and Windows Server 2008 R2


Dear sirs,

When I was installing SQL Server 2005 64 bit on Windows Server 2008 R2, I received a notice informing the software Microsoft Visual Studio 2005 has known compatibility issues with this version of Windows.

So how can I get around these problems?

I need to use Visual Studio 2005 to create the Integration Services packages.

Also, I need to migrate directories of Integration Services packages from a server with SQL Server 2005 32 bit on Windows Server 2003 32 bit for a server with SQL Server 2005 64 bit on Windows Server 2008 R2. How can I proceed to do this?

Thanks in advance.

Jose Luiz

Problem to create visual studio 2008 environment in windows server 2008


I am working on FTS (File Text Search) for file extension like .doc, docx, ppt, pptx, txt, pdf.

For developing FTS I used environment:

Development IDE:  Visual Studio 2008

Language: C#


How to run Office macros by using Automation from Visual Basic .NET

This step-by-step article describes how to call Office macros from a Visual Basic .NET Automation client.

You can use Microsoft Office Automation to open a document or create a new document that contains a Visual Basic for Applications (VBA) macro and execute the macro at run time.

How to programmatically add controls to Windows forms at run time by using Visual C#

Create a Windows Forms Application
Start Visual Studio .NET or Visual Studio 2005 or a later version, and create a new Visual C# Windows Application project named WinControls. Form1 is added to the project by default.
Double-click Form1 to create and view the Form1_Load event procedure.
Add private instance variables to the Form1 class to work with common Windows controls. The Form1 class starts as follows:

Dynamically Create Controls in ASP.NET with Visual Basic .NET

This step-by-step article describes how to dynamically create controls for an ASPX Web page.

The sample project does the following:
It creates two TextBox controls.
It verifies that the TextBox contents (TextBox.text) and attributes are saved across posts to the server.
It describes how events that are posted by a dynamically created control are handled.

all basic windows controls,wpf controls,silverlight application

here you will find all the information from basic.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend