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


Top 5 Contributors of the Month
david stephan
Post New Web Links

Cannot Add Reference to .NET solution, get "unexpected error" message

Posted By:      Posted Date: October 28, 2010    Points: 0   Category :.NET Framework
 

I have a class library solution with multiple projects (all type class library).  I need to add a reference to System.Web.dll to one of the projects in the solution in order to send an email from a program.  When I click "Add Reference" for the project, I get error message "Visual Studio has encountered an unexpected error" message.  I don't even get to the Add References dialog box.

Any suggestions on what to do?  The error message is useless.

 




View Complete Post


More Related Resource Links

Null reference message Custom Error page

  
how come a Null session value that is called, doesn't get directed to the Custom Error Page?

What s the difference of Endpoint Reference and Message Information Header in WS Addressing?

  
What s the difference of Endpoint Reference and Message Information Header in WS Addressing? Thanks aheadFrank Xu Lei--????,???? ???.NET????????????????????? Focus on Distributed Applications Development and EAI based on .NET   ???????:http://www.frankxulei.com/ ???????:http://www.cnblogs.com/frank_xl/ ??WCF?????? ??WCF??????

[SQL 2008 - SP1] - DRP Log shipping solution and error message

  

Hello All !

I have a DRP solution with logshipping (1 site in Europe and 1 site in Asia). The DRP are tested: ok.

3 servers: 1 primary, 1 standby, 1 monitor (sql 2008 edt enterprise US SP1 x64) on Windows 2008 SP2 US x64 with the last updates.

But , on my logs-hipping monitor, I always have this message (I have it when log-shipping installation was configured):

"Message
Executed as user: PROD\svc_sqla_bb. The log shipping secondary database Server001.DBAS has restore threshold of 45 minutes and is out of sync. No restore was performed for 96 minutes. Restored latency is 0 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error 14421).  The step failed."

- All the servers have the same time

- All the servers have been updated with the last updates (windows, sql)

- Network latence is correct

- Log shipping is functional: backup, restore: ok

I have searched on the web for this message, but I don't find a good solution for this issue .

Any ideas ?


Thanks for advance for your ideas / help - Regards - Have a nice day ! RHUM2

use service reference in other project in the same solution

  

Hi!

i have a windows service that sends information to another project(let's call it Project A) that hosts a wcf service.  the windows service business rules are in another project(project B) within the same solution. Do i have to add the service reference(to wcf service) in both projects (windows service and project B) in order to communicate with project A?

 

thank you in advance!

Marie

 


Abmiguous reference message triggered by VS database projects compiler for an SQL XML query

  
Working with a Visual Studio 2010 database project I've written a query:

    UPDATE [s]
        SET [s].[ValueB] = [s].[ValueB] + [x].[ValueB]
    FROM
        [dbo].[Something] [s]
    INNER JOIN
        (SELECT
            [XmlInfo].[Entry].[value] ('@AttributeA', 'int') AS [ValueA],
            [XmlInfo].[Entry].[value] ('.', 'int') AS [ValueB]
        FROM
            @XmlData.[nodes] ('/Node')
        AS
            [XmlInfo] ([Entry])) as [x]
    ON
        [s].[ValueA] = [x].[ValueA]

Now everything works fine. Management Studio runs it and does not say a word.

Database Projects compiler however finds two ambiguities:

> Warning SQL04151: Procedure: [dbo].[SP_XXX] contains an unresolved reference to an object. Either the object does not exist or the reference is ambig

Gmail internal chat like message box

  
This article provides you with the multi-functional message box window through which the usability of the web-site or any web application increases.

Features
.Configurable MessageBox window with AJAX Support
.can set maximum number of message boxes to be visible
.can define the auto reload time, for single message, for all messages or no reload
.can create messages through a single function call
.can define auto hide time for each messages

A better way to reference your wizard steps using named steps

  
Note: this article uses the plain vanilla but the concepts apply equally well to its popular counterpart .

By far the most common way that I see wizard steps reference in code snippets is by their index.

Complete SQL Solution

  
SQL Server Solutions: SQL Server 2000/2005 Related Free Snippets.

Inserting personal error message in ValidationSummary

  

Hi,

I am creating a web form that requires a lot of validation. I use many of the validation control in asp.net already like RequiredFieldValidator and CompareValidator. 

My Problem: after my custom validation for the value entered return an error message, and I pressed enter key when the field is empty, my custom error message is overlapped by my ValidationSummary. 

Setting my custom error to visible = false on button click also does not seem to work as it requires for me to enter the value first.

This made me think, is there a way to insert my custom validation inside the ValidationSummary as an error message like for other validation control?

Thanks in advance


UpdatePanel is not a known element - message when upgrading to 1.0 ajax

  

It worked on one of my old pages.  I change the web.config, renamed all the <asp.

On some aspx page it doesn't recognize the updatepanel.  It only does on one page.  If I create a new aspx page with a different name - then it works.

Should I just create a new web project ajax - then copy all my code into there?  Or is there a way to get those old pages to recognize the new ajax controls?


replacing ok and cancel button of an alert message with YES an NO button in asp.net web application.

  

i want to replace ok and cancel button of an alert message with YES an NO button in asp.net web application.When a user will click yes the data will be saved in the database and if user clicks that will act as a reset button and do not save the data in database and the control will move with as usual to the redirect page.Any pointers will be highly appreciated.I am usin g C# language.


reference from menubuttons to text parts in article on the same page

  

Hi, I'm searching now for hours but couldn't find it.Cry

In my menu i have several buttons which (by a <a href..) should go the a part of an article that is in the same form.

Menu button : What is a database should go to the page default.aspx and in there is an article published.
A part of this article is having a piece of text about "what is a database"

Menu button: how to make a query should go to this same article in the same page but then to the part that is have the piece about the query. The next could be an example of what i'm doing:

<ul>
    <li><a href="default.aspx ?????>what is a database</a></li>
    <li><a href="default.aspx ?????>what is a query</a></li>

Where my question marks are, there should be a connection to that particular piece of text.
In each article part there is an ID="text1" and the second part id="text2"

How shoudl i do that, Should i use a question mark.
Please give me some guidance how to structure the <li> statement or a pointer where I can read about it.

th

create user wizard login error message dont show in a message box?

  

hi

 

i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.

 

there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes

 

is it possilbe to hook all of these up so I get one message box with all errors including membership ones?

 

thanks

 


Very Basic Question - Error message running first page

  

Hi Everyone,

I am running Windows 7 and I have gone into Control Panel and activated all of the IIS Functions.

The web application I am running was downloaded from the net (and has worked on other machines previously).  Once I downloaded it, I moved it into C:/inetpub/wwwroot/code/main.asp

I am a bit of a novice at this!  But I am hoping someone can point me in the right direction!

 

I get the following error when I try and run the web application through IE:

"An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error."

(When i click the "click here" button it just goes to the IIS site).

 

Appreciate any help I can get!

Thankyou!

 

 


Solution/project structure

  

Hello, I am working in a aspx web application that must be built in several separate "modules" with different functionality which will be partly developed by different teams.

However, I need the completed app to reside in ONE virtual directory. There will be a single startup page. I need session state to be preserved across pages in different modules.

I structured it as one solution with different Web Projects and one class library project with common functionalities.

Questions:

1) is this the right approach to do this? Or which one would be better?

2) each time I add a new web project to the solution, a new web.config gets created. What do I do and where do I put them?

VS 2010 + framework 4.0 + TFS

Regarding TFS and source control, I have a single Team project, the solution and web projects are inside it.

 

Thanks!


Reference HttpApplication from a separate HttpApplication

  

I want to create a website that can monitor the status of other websites running on the same server. Is this possible? How do I get a reference to a site's HttpApplication context from a separate HttpApplication?


Registering controls of current assembly object reference NOT set error

  

Hi There,

I have created a simple ASP.net Web Application (2.0) and have added a web user control.

Now in my page I have added this control but I have registered like this,

<%@ Register Assembly="WebApplication1" Namespace="WebApplication1" TagPrefix="Custom" %>

Which means I want to access all the controls in my current Web Application project

Then I have added my user control like this,

<Custom:MyUserControl ID="MyUserControl1" runat="server" PublicProperty="Hello" />

Every thing is fine but when I execute the project, NO control on my user control gets "instantiated" and thus I receive error "Object Reference Not Set"

Note that My Control has,

1) Public property PublicProperty as String

2) 1 Label control

In Load Event Handler I am setting Text property of Label Control to PublicProperty. Here object reference NOT set error occurs (which means Label control is NOT initialized).

I don't want to register my control using Src, TagPrefix etc. Any ideas?

Thanks


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