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

Top 5 Contributors of the Month
Pankaj Mishra
alex morco
Imran Ghani
Post New Web Links

Configuration problem?

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :Sql Server
Hi All, I created one config for all of my pcakges.I tested in my system its working fine. In my system sqlserver is windows authentication. I modified the configfile which system has sqlserver authentication its working fine. Same config file I am trying to execute in QA box I got error related to authentication. How to modify current confige file related to sqlserver authentication? Thanks CMK...

View Complete Post

More Related Resource Links

Problem with Configuration of Message Inspector

I'm hoping someone might know what I am doing wrong. I'm trying to setup message interceptors and am trying to apply them to all of my services via the web.config. I've been working on it for hours but keep getting the following error:

Parser Error Message: The type 'AdventureWorksService.
Interceptor.ListenerServiceBehavior, AdventureWorksService.Interceptor, Version=,
        Culture=neutral, PublicKeyToken=null' registered for extension 'TestInterceptor' could not be loaded.

I have the classes under a the 'AdventureWorksService.Interceptor namespace in my web project.

Here my web config:

<?xml version="1.0"?>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true">
        <add relativeAddress="~/DataService.svc" service="AdventureWorksDataService"/>
    <!--For REST-->

problem in Email configuration in sharepoint


Hello everybody...


i have to face problem in sharepoint 2007 for email notifiation.

i have a two virtual machine one is AD+ EXCHANGE2007 and second is for Sharepoint . both have windows 2003 server os.

This is my outgoing email configuration.

I have configured incomming email but in document library continuous message will produced ? how to solve it ?

Problem in reading WCF configuration settings



The great thing about WCF is that you can configure you're WCF bindings in a configuration file and not through code.
We are now making connection to WCF's webservices in our SharePoint code, but now the question is where to place the WCF configuration settings. 


For deployment reasons we don't want to place the settings in the SharePoint web.config:

-  can't be easily changed by admin users through SharePoint Gui

-  new deployment needed to change configuration settings

-  webservices u

Problem with ASP.Net Configuration tool


I'm trying to use the ASP.NET Configuration tool under the Website menu in VS2005.  When I click on the Security tab (or link) I get 'Unable to connect to SQL Server database'

Clearly the application cannot connect to my database, but I'm not familiar enough with the tools to figure out how to fix it.  I searched the ASP.NET forums for a solution and and Googled it loads but am still stuck.

I'm running SQLServer 2000 and SQLServer 2008.  I have run the cmd line tool aspnet_regsql -W and followed the wizard to create/configure the aspnetdb on both instances in turn as I have been troubleshooting.

From one tutorial I was following I had a connection string in my web.config file that was incorrect - I made it point to the SQL Server instance I was targetting (2008) but no joy.  Then I followed another tutorial video and there was no connection string at all but the tool still ran, so I deleted it.

Being that this is such a basic step I'm pretty frustrated to have been stuck here for so long and would really appreciate some help.

Many thanks


problem setting instance configuration.


I'm trying to install SS 2008 Express with Advanced Services and am having a problem with the Instance Configuration.  

The default instance is preset with an InstanceID of SQLExpress.  This gives me an error that says:

"The instance of SQL Server already has an instanceID of '1' that is different than the specified Instance ID 'SQLExpress'.  Specifying more than one instance ID for the same SQL Server instance is not supported."

Then in the area that shows the installed instances it has: Instance="SQLEXPRESS", Version "9.2.3042.00", InstanceID="MSSQL.1".

I think the instance that's already installed is the SS 2005 express that was installed with VS 2008.  It looks like the Version of the SS 2008 I'm trying to install is 10.

I've tried different things but haven't been able to get this to work.  I also tried the Named Instance but got the same error.  

Can someone help me understand what I need to do to get this installed? 

SSIS Configuration Problem?


Hi All,

I created one package.I executed that package through BIDS its working fine.I created one configfile.I am trying to execute the same package but i am getting the error like below

The product level is insufficient for component "rowcount"(16).Please help me in this issue.





wcf service configuration problem


I have developed a wcf chat service by following this link:


When i try to run it then it is throwing below exception:

System.InvalidOperationException: Contract requires Duplex, but Binding 'WSHttpBinding' doesn't support it or isn't configured properly to support it.
   at System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode listenUriMode, Boolean supportContextSession, IChannelListener& result)
   at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)


Intermittent problem with Parent package variable configuration


Windows Server 2003 Enterprise SP2

SQL Server 2005 Std SP2

I have a package with configurations of Parent package variable.  It takes the value of the parent package variable and overwrites the ServerName property of a connection manager in the child package.  We do this to allow the package to run against different servers.  The ServerName before the change is set to (localhost).  The InitialCatalog is already set to a valid database name that exists on the target server (but not on the localhost).  This setup works very well and this package runs every hour.  However, the package fails about twice a day (not in any predictable times or pattern).  When it fails, the reason for the failure is a failed login, however upon closer inspection, it seems that the configuration did not work for the ServerName.  That is, the failed login happens on the localhost for a database name that is not valid for the localhost.  In other words, during package exectuion, the Parent Package Variable was never applied to the child package ServerName property.  The login fails because there is not a database by that name on localhost, which would never have been a problem if the Configuration worked properly and the ServerName would have changed from localhost to something else.  I find it strange that it works most of the

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.

Virtual Path Problem


 I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,

Note that the slashes go in different directions

I've tried a number of things but nothing seems to work. Thanks-


Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Web.UI.WebControls

Imports System.Drawing.Imaging.ImageCodecInfo
Partial Class Protected_imageupload
    Inherits System.Web.UI.Page
    Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
        ' Initialize variables
        Dim sSavePath As String
        Dim sThumbExtension As String
        Dim intThumbWidth As Integer
        Dim intThumbHeight As Integer
        Dim sFilename As String = ""
        ' Set constant values
        'sSavePath = "images/"
        sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"

        sThumbExtension = "_thumb"
        intThumbWidth = 160
        intThumbHeight = 120

        ' If file field isn?t empty
        If FilUpload.PostedFile IsNot Nothing Then
            ' Check file size (mustn?t be 0)
            Dim myFile As Http

Strange Photo upload problem


I'm working project it's live on shared hosting

we'er uploading photos to a file on the server everything works fine the photo is resized renamed and sent to the folder

the upload page returns the thumbnail and the full size photo it's there all the photos have to be approved by an admin

twice now after they have been approved they disapear I checked the folder they are not there could there be anywhere

on the server they could get hung up before they go into the folder I have it setup so when you delete the data base entry it deletes the photo from the folder othe than that you need to open the folder and delete the photo this has hapened twice now I tried to recreate it with no luck

thaks for your help in advance

ASP.Net Caching problem ??


I'm having a problem with an asp.net 3.0 application using a gridview to display data.  The problem seems to be that despite a brand new .selectCommand being sent to the sqlDataSource, the gridview starts displaying data from *someone else's* query.  For example, user A is logged in and will be working fine until a few page submissions later when the gridview data starts suddenly showing information that belongs to another user. 

This is my first asp.net application, though I've been working with classic asp and ADO for years so I'm used to sending a SQL string and getting back the results from that string.  Apparently there is a complex caching system which is interferring which I do not at all understand so at this point I just want to stop the server from caching any data whatsoever.  Is this possible?

Any and all help will be much appreciated!!

Could some one tell me whats the Problem with this String Manipulation ??? C#.net



I store some values from code behind to a label which is Hidden !

<asp:Label ID="lbl_Hidden" runat="server" Visible = "false"></asp:Label>

and at the page load event i retrieve the value of the label & assign it to a string !

stringvalue = lbl_Hidden.Text;

Now i dont know why this manipulation does'nt work !

I've a character 'A' in the string and i'm unable to replace it with a space !

stringvalue.Replace(A, " ");

Wot do u think abt it ????

RaiseEvent problem


I have a parent page ProdView.aspx and two static UserControls, UC1 and UC2. Each UC is in an Ajax accordion pane and the accordion inside an updatepanel.

UC1 has a Gridview footer with couple of textboxes and a link button that fires an Add Row insert procedure. I want to Raise an event that will rebind the UC2 after the row insert in UC1.

First I created the sub delegate and event in UC1:

  • Public Delegate Sub MyRefresh(ByVal sender As Object, ByVal e As CommandEventArgs)
  • Public Event Refresh_UC1 As MyRefresh

In the same UC1 the Insert procedure that fires the insert and RaiseEvent:

Sub PricingGrid_Insert(ByVal sender As System.Object, ByVal e As EventArgs)
       Dim myConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString)
       Dim myCom As SqlCommand = New SqlCommand("AddRow", myConn)
       myCom.CommandText = "AddRow"
       myCom.CommandType = CommandType.StoredProcedure


Gridview Enable Selection Problem



I have a gridview with Enable selection and Enable Paging equals to TRUE.

I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.

The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.

Here is code behind of my gridview:

If e.Row.RowType = DataControlRowType.DataRow Then
                e.Row.Attributes("style") = "cursor:pointer"

                e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
                e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
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