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


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

.net 3.5/4 PrintServer creation works in Visual Studio (Express) but not stand alone

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :Windows Application
 

The following code works without issue from inside Visual Studio (professional or express editions) but when this console app is run from the command line it returns: Win32 Error: The RPC Server is unavailable.

The variations on PrintServer and LocalPrintServer produce the same results.  It's also disappointing that sample code provided at http://msdn.microsoft.com/en-us/library/aa970845(v=VS.100).aspx doesn't work (which is the base of this code)

Prior to installing .net 3.5 framework sdk, I had the same errors as found in this article: http://connect.microsoft.com/VisualStudio/feedback/details/552520/methodaccessexception-when-printqueuecollection-disposed# with PrintServer (as opposed to LocalPrintServer) but the work around of using .net 3.5 didn't solve the problem, just made all the errors of the RPC flavour.  All the obvious things, like ensuring the RPC server is up and running automatically, firewalls turned off (instead of just adding the application - that fails too), and so on don't help any.

 


View Complete Post


More Related Resource Links

HttpHandler works with Visual Studio Development Server debugging, but not otherwise

  

Hi all,

I'm new to HttpHandlers.  I am writing an HttpHandler that reads uploaded files directly from the request stream to provide progress that can be queried using an AJAX request.  For large files, this seems to be faster than having ASP.NET load the file contents into Request.Files and then streaming the file from there to wherever it goes (Linq to SQL into a VARBINARY column in an SQL Server database.)

My HttpHandler works perfectly when I'm debugging using the Visual Studio Development Server, but doesn't work otherwise.  The application pool for this application in IIS 7 is set to run in Classic Mode, and the Handler Mappings screen in IIS says that I must manage managed handlers in system.web/httpHandlers. 

I set up in my applications Web.config file.

<add verb="GET,POST" path="*.upload" type="Namespace.For.UploadHandler, AssemblyForUploadHandler"/>

It works great, so long as I don't debug with the "Use Local IIS Web server" option.

What else do I need to do to get this to work?

Thanks!


CSS support in visual studio 2008 express edition

  

I have several css style sheets I want to work with.  I have copied them into the appropriate directory structure in my project.  The styles are applied correctly.

But the manage CSS styles tool bar on the left margin doesn't seem to work correctly.  At one point I had generated a style sheet and worked with it there, but now it not only can't find the one it generated, but the attach style sheet link doesn't respond at all, nor does anything in this bar.  Same deadness with the CSS Properties bar.  With or without a style sheet loaded in the editor -- a style sheet that is active in the project such that when I run it, the styles are applied.

VB version of studio, running on Vista home basic.


PS, the design mode works a lot better than the professional version I use in my day job on XP and server 2003.



SQL database display in visual studio 2008 express?

  
I jsut installed SQL server and management studio on my PC. For management studio, I created a database with tables. However, When I have data connection for SQL server in visual studio express, I couldn' t see the database I created. Any recommendations?   Xinguo  

Can not connect to user instance of SQL Server 2008 Express with Advance Services in Visual Studio 2

  
I used SQL Server 2008 Express with Advanced Services (not SQL Server 2008 Express) in Visual Studio 2010 because it is the fast and easy way to developed and managed data-driven applications with powerful built-in reporting and full-text search functionality. I received Sql Server 2008 Service Pack 1 with Windows Update. It's ok if I connect to instance of SQL Server 2008 Express with Advance Services (with SP1) through SQL Server Management, but if I try to attach a database in Server Explorer (Visual Studio 2010), I get the following error: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I'm stuck at this point. Is there a fix or a workaround? I've already tried deleting the 'C:\Users\Administrtor\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS' directory as mentioned in other posts, with no luck. The error.log at 'C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS\error.log' has the following relevant entries: 2010-09-01 14:44:10.47 Server      Error: 17156, Severity: 16, State: 1. 2010-09-01 14:44:10.47 Server      initeventlog: Could not initiate the EventLog Service for the key '3677F6D3-17C7-4F', last error code is 2. 2010-09-01 14:44:10.47 Server &

Failed to generate a user instance of SQL Server 2008 Express with Advance Services in Visual Studio

  
I used SQL Server 2008 Express with Advanced Services (not SQL Server 2008 Express) in Visual Studio 2010 because it is the fast and easy way to developed and managed data-driven applications with powerful built-in reporting and full-text search functionality. I received Sql Server 2008 Service Pack 1 with Windows Update. It's ok if I connect to instance of SQL Server 2008 Express with Advance Services (with SP1) through SQL Server Management, but if I try to attach a database in Server Explorer (Visual Studio 2010), I get the following error: "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed." I'm stuck at this point. Is there a fix or a workaround? I've already tried deleting the 'C:\Users\Administrtor\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS' directory as mentioned in other posts, with no luck. The error.log at 'C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Data\SQLEXPRESS\error.log' has the following relevant entries: 2010-09-01 14:44:10.47 Server      Error: 17156, Severity: 16, State: 1. 2010-09-01 14:44:10.47 Server      initeventlog: Could not initiate the EventLog Service for the key '3677F6D3-17C7-4F', last error code is 2. 2010-09-01 14:44:10.47 Server &

Ldap authenication code is not working with IIS but works with Visual Studio developement webserver

  
Hi,I have weird issue here, I have a method that  takes a login Id and authenticates with LDAP active directory and returns the employee Id.It works great when I run the application in Visual studio 2008 ( it uses the default visual studio developement webserver). The code authenitcates the login id and returns emp Id perfectly. But the problem comes when I publish the code to the Local IIS in my developement PC.public string GetEastWestTeamMembersEmployeeID(string loginID)        {            string domain = string.Empty;            string login = string.Empty;            int position = loginID.IndexOf(@"\");            string empid = "";                  System.DirectoryServices.DirectoryEntry directoryEntry = null;            if (position >= 0)            {                domain = loginID.Substring(0, position);    &n

Error code -2068578304 When Installing Express SP1 x64 as a Part of Visual Studio 2010 Installation

  
Howdy! I was installing the VS 2010 on my server running Windows Server 2008 R2 x64 and all of a sudden the setup finished with " Setup completed, however, there were failures reported installing optional components. " The final status is success. The left-hand pane of the finish page reads as: The following component failed to install: Microsoft SQL Server 2008 Express Service Pack 1 (x64).   Leaving alone the fact why setup executed the custom action that tried to install SQL Server Express Edition and Compact Edition when I just asked it to install SQL components (which presumably should be SQL SMO and DMO libraries), I would like to understand what had happed to Express install.   Inspecting the .\Logs\dd_error_vs_vstdcore_100.txt file gives the following record:   [09/16/10,16:06:51] Microsoft SQL Server 2008 Express Service Pack 1 (x64): [2] Error code -2068578304 for this component is not recognized. [09/16/10,16:06:51] Microsoft SQL Server 2008 Express Service Pack 1 (x64): [2] Component Microsoft SQL Server 2008 Express Service Pack 1 (x64) returned an unexpected value. ***EndOfSession***   Further inspection of the dd_install_vs_vstdcore_100.txt provides with the info:   [09/16/10,16:02:51] Microsoft SQL Server 2008 Express Service Pack 1 (x64): GenericComponent Action: CreateProcess launched with cmd line : x:\setup\..\wcu\sse\SQLE

Visual Studio 2008 Express and mobile web development

  

OK - so I've been using VS2008 Express for a while to develop some web sites etc.

I've downloaded the Mobile Web Form templates that are available as I would like to convert some of my web pages for mobile access.


Where to start ? Where is a good resource to learn how to code some mobile web pages using VS2008 Xpress ??


Thanks

M


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

  

Hi,

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.

Thanks.

John.   


Virtual Harddisk creation from within Visual Studio 2010

  

Hi,

I want to create a library environment and want to place my own content inside a vhd. is is possible with visual studio 2010 to create a vhd file and perform add/edit/delete tasks on the content?


SQL Server Express 2008 and Visual Studio Express 2010

  

Hi,


A few months ago I upgraded to VS2010 - at the same time I thought it would be good to upgrade to SQL Express 2008 R2.

It turned out that there was some compatibility issues between the two - "...cannot be opened because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported."  After much trouble I restored the database and have done most of the stuff I need through VS itself.

Now I need to use SQL itself and am positively scared to death of what it could do to my database again.  Can anyone offer any advice - it is a service pack update or something...?


Thanks


John




.NET Configuration Tools (caspol.exe) with visual studio 2008 express?

  
Hello list, this is my very first question about .NET as I've started studying it only recently.
I've installed VS C# 2008 Express Edition and I wonder where to find .NET Configuration Tools (caspol.exe). It's generally mentioned to be reachable through Administration Tools, but it isn't there.

Someone says that the tool is shipped with .NET 2.0 SDK. Should I install it? How would this hurt my actual installations (VS 2008, .NET 3.5, etc.)?

thanks very much,
giovanni

Visual studio 2010 and SQL Express 2008 with advanced series

  

Hi I recently found out that you can only do full text indexing with the advanced series of SQL Express and I managed to download and install it on my machine.

My question is how do I integrate it with Visual studios 2010 so that I can do the full text indexing ?

When I installed SQL Express with advanced series 2008, it created an instance of SQL Server management studio so im wondering if I have to do it there and then move the database into my project or if I can do the full text indexing from inside my project

Anyone's help would be much appreciated


Error connecting to SQL express - Visual Studio 2010

  

 Hi,

I recently installed Visual Studio 2010 and was getting the following error message when running the code (F5) "Error connecting to SQLexpress". The error page prevented me from seeing the webpage.

I consulted many different trouble-shooting recommendations, however, in my case, it was simply a problem with SQL. When I reinstalled SQL server 2008 on my computer, the error message was gone and I was able to see the ASP.net web development page.

Chris


How to execute an SQL script from within Visual Studio Web Developer Express 2010??

  

How to execute an SQL script from within Visual Studio Web Developer Express 2010? Can someone please help with this? The MSDN help reference (http://msdn.microsoft.com/en-us/library/yea4bc1b.aspx) appears to be inaccurate as the "run" and "run on" options do not show in when the script is right clicked for the context menu.

FYI, I am using the default SQL server (express?) that comes with out of the box with VS Web developer express 2010.

Thanks in advance for your help. 


creating a sql server express from visual studio 2010

  

Hi All,

I am trying to add a database using VS2010, I have VS2010 Professional and SQL server 2008 developer and sql server 2008 express and it seems impossible for me to create a database am being sent to the linkid=125883 to download an express edition even though i have it installed.

anyone has a solution.


Regards


Visual Studio C# 2010 Express and Web Developer 2010 Express are not supported anymore?

  

I've wrote the comprehensive post within my blog: http://weblogs.asp.net/vasilysokolov/archive/2010/10/26/annoying-2-remake-microsoft-russia-is-simply-not-supporting-visual-studio-express-editions-at-all-and-my-last-hope-scott-guthrie-is-on-vacation.aspx

In brief words everything is simple:

1. I've downloaded free Visual Studio C# 2010 Express and Visual Studio Web Developer 2010 Express

2. I've successfully installed these versions.

3. I've tried registration online - and got the appropriate keys which I've used for registration.

Finally all the keys I've got are not valid for the system - and after 30 days evaluation (for free version?) period all these products are not running anymore because all the keys I am providing from online registration are invalid.

What can you suggest me for fixing this problem?


Categories: 
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