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


Post New Web Links

Working with CodePlex. How to save password for project?

Posted By: outcoldman     Posted Date: August 26, 2010    Points: 0   Category :ASP.Net
 

I want to make public one small project on CodePlex. Everybody knows that you can work with CodePlex like with TFS client and with SVN client as well. But really I can't work with it from SVN client. When I tried to add some binary file (it was dll) I got the error "Server sent unexpected return value (200 OK) in response to PUT request for .". How to solve this problem I don't know, I found thread at CodePlex's discussions Can't commit binary files using TortoiseSVN, but last message was at past year. Ok, I'm working with TFS at work, so for me it will be not a problem connect to CodePlex with TFS. But there are some distressing case, Visual Studio always ask credentials at every new connection to project. And I didn't find a checkbox "Save credentials". But I found the method. Read more...




View Complete Post


More Related Resource Links

Coding is not working for Making Password Field Encrypted in sql and using sessions .basically its a

  
Dim cn As SqlConnection         Dim cmd As SqlCommand         Dim dr As SqlDataReader         cn = New SqlConnection         cn.ConnectionString = ConfigurationManager.ConnectionStrings("fees_systemConnectionString").ToString         cn.Open()         cmd.Connection = cn         cmd.CommandType = CommandType.Text         Dim Hashpass As String = FormsAuthentication.HashPasswordForStoringInConfigFile(password.Text, "sha1")         cmd.CommandText = "Select * from login where username='" & Me.txtUsername.Text & "' and password = '" & Hashpass & "'"         Dim re As SqlDataReader = cmd.ExecuteReader()         If re.HasRows Then             While re.Read()                 Session("email_id") = re("username").ToString()                 Session("MemberType") = re("type").ToString()                 Session("ISLOGIN&

Change password for FBA users in claims setup not working as expected

  
Hi, I am trying to add a standard asp:changepassword control for external users. In the previous 2007 sharepoint environment this control was working "out of the box". I am pretty sure what is wrong as well,- but not sure how to fix it. A workaround that makes me able to change password is as follows: in the asp - control, I have added the option DisplayUserName="true" Then in the actual web-page, i can see that my username is: 0#.f|acaspnetsqlmembershipprovider|xxxxxx and not xxxxxx as i would excpect, as i use xxxxxx to log in. Editing the username to just xxxxxx makes the changing of password work, but this solution is not really nice to deploy to the normal end-users.. Any suggestion on how to make the username right? I've tried to set the username using the option UserName="<%=SPContext.Current.Web.CurrentUser.LoginName%>", but it does not seem to evaluate..  

How to save changes after Project Professional loses connection (Error 9000(0x2328))?

  

Hi,

We have a client that got an error 9000(0x2328) when he saved a plan from Project Professional 2010. After reading the following posts I suspect it is caused by a loss of connection with Project Server:

The client force checked in the project and reopened the project and now it looks like his cache is corrupt. He will have to clean the cache and will lose his changes.

Some background info: MS Project Professional 2010, Project Server 2010, both are running on different machines in a Citrix environment.

Is there any way for the client to save the changes if this happens again?

Thanks,

Quint


Save Changes not working correctly when SQL table has a trigger

  

Hi all,

My WCF isn't working currently when a SQL table has a trigger on it that updates a column.

My table:

(SalesID int, SalesNumber nvarchar(10), OrderType nvarchar(3), OrderDate datetime) the trigger creates a new formatted string value for SalesNumber based on the OrderType and the SalesID, e.g GRN00001

The trigger is applied when the WCF service adds a new record. But the return values for SalesNumber is still NULL. I'm not sure why it will not update. If I restart the programme it retrieves the correct data...

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();
  return dsUpdated;
}

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();

  tblSales dsNew = tblSales_FindID(dsUpdated.SaleOrderID);
  return dsNew;
}


Neither way works...

 

 

 


Several developers working on same Sharepoint project

  

Hi,

Can you please advise a model to setup a Dev machine when several developers works on the same Sharepoint project? The Source code part is easy to fix as we use VS2010 and a Source Control server, but what about the part specific to Sharepoint? Can you please advise which of the model below is better?

Model 1 (self contained): Each Dev machine is a copy of the Production Sharepoint Server. It contains a single server farm setup, local SQL Server, Visual Studio 2010. The problem here is the content DB is also local, the synchronization of the Content DB must be done manually between several dev machines.

Model 2 (multi-servers Farm): Each Dev machine has a Sharepoint Server which joins a farm. The Sharepoint Server on this Dev machine just has the Web Server role. All the resource heavy roles (SQL Server, Application server, Search, etc.) are installed and administered from a "common" Sharepoint server.

 

Thanks in advance for any help.


Several developers working on same Sharepoint project

  

Hi,

Can you please advise a model to setup a Dev machine when several developers works on the same Sharepoint project? The Source code part is easy to fix as we use VS2010 and a Source Control server, but what about the part specific to Sharepoint? Can you please advise which of the model below is better?

Model 1 (self contained): Each Dev machine is a copy of the Production Sharepoint Server. It contains a single server farm setup, local SQL Server, Visual Studio 2010. The problem here is the content DB is also local, the synchronization of the Content DB must be done manually between several dev machines.

Model 2 (multi-servers Farm): Each Dev machine has a Sharepoint Server which joins a farm. The Sharepoint Server on this Dev machine just has the Web Server role. All the resource heavy roles (SQL Server, Application server, Search, etc.) are installed and administered from a "common" Sharepoint server.

 

Thanks in advance for any help.


Save Changes not working correctly when SQL table has a trigger

  

Hi all,

My WCF isn't working currently when a SQL table has a trigger on it that updates a column.

My table:

(SalesID int, SalesNumber nvarchar(10), OrderType nvarchar(3), OrderDate datetime) the trigger creates a new formatted string value for SalesNumber based on the OrderType and the SalesID, e.g GRN00001

The trigger is applied when the WCF service adds a new record. But the return values for SalesNumber is still NULL. I'm not sure why it will not update. If I restart the programme it retrieves the correct data...

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();
  return dsUpdated;
}

public tblSales tblSales_Save(tblSales dsUpdated)
{
  db.tblSales.ApplyCurrentValues(dsUpdated);
  db.SaveChanges();

  tblSales dsNew = tblSales_FindID(dsUpdated.SaleOrderID);
  return dsNew;
}


Neither way works...

 

 

 


XAML intellisense stopped working for project

  
We are working on a WPF-based application and have recently lost XAML intellisense on the project. Here's what we've discovered:

  1. XAML intellisense only fails to work in XAML files where we reference a CLR namespace inside the current assembly (using xmlns:s="clr-namespace=Namespace.Name"). 
  2. If we clean the solution, XAML intellisense works for all XAML files no matter what namespace is referenced - even for custom controls
  3. If we then rebuild the solution, intellisense stops working again 
  4. If after building we add an assembly reference pointing to the current assembly to the namespace references (using xmlns:s="clr-namespace=Namespace.Name;assembly=CurrentAssemblyName"), intellisense works again, but building fails (I'm assuming because we're trying to reference an assembly that hasn't been built yet)

Has anyone experienced anything like this before?


SSIS package not able to save encypted user sensitive password

  

i have an ftp fetch package in bus development studio 2008.  it runs from that interface.  i imported it into Integration Services, set the password along with the EncryptSensitiveWithPassword and if i manually enter password each time i can run successfully from sql integration services.  but i cannot schedule as a job because the password won't stick.

any help out there would be great.


I want to upload images in to a folder in my project and save the URL in the database.

  

Hi, I want to upload images in to a folder in my project and save the URL in the database.

When you add a record into my database you provide title, date added and some other details and there it a file upload control which you browser to a image and it saves the image to a folder in my project, it all works, the record is added and the image is uploaded into the folder, but the problem I have is that there is no link from the record to the image, there is no URL path saved in the record. How do I save the image in the folder and save the URL of the image to the record?

I'm using details view to insert the records and using grid view to view the records.

 

Thanks


SSIS -2008 R2 - ODBC Connection error - Password does not save

  

Please know that I am new to SSIS 2008 and XML. Have a package I am trying to deploy. Am on a HV 64 Bit environment SQL Server 2K8 R2. Have an ODBC connection to our HBOC system as a data source. As always package runs in test environment and not in prod.  I need a bit of insight into the what and why's of the configuation file and how to change out the XML. 

Main issue is the password not saving and how to handle the ODBC side of things. I appreciate any help in this matter as I have searched with no real understanding of XML and best practices of creating the Congif file.

 


Connection manager doesn't save password

  

Hello,

My connection managers don't save the passwords. The definitions are read from a configuration file, but when I view the properties, I see a blank field, and then if I fill the password, close the dialog and open it again, the field is blank again, although I checked the "Save my passwords" checkbox.

What's going on?


Installing a certificate in the Commit() of a setup/deployment project not working

  

I'm trying to create a deployment project for a client application that uses certificates for WCF. I've followed this

http://msdn.microsoft.com/en-us/library/d9k65z2d.aspx

and I can get that to work, but when I add in my own code to install the certificates it does not work.

Here is the code I've have:

public override void Commit(IDictionary savedState)
{
	base.Commit(savedState);
	System.Diagnostics.Process.Start("http://www.google.com");
	Console.WriteLine("Test");
	try
	{
		Console.WriteLine("Installing certificates...");

Save output tab/window information for debugging project compilation on server

  

Below is an example of when I run my VB.net project in VS2008, i have an "Output" tab at the bottom that shows some detailed information on what is going on.  My application builds & runs in debug within seconds, but on the server the very first load most mornings takes about 3 minutes.  I'd like to save this "Output" tab information to a text file so that when it runs on the actual server, i can see whats going on.  Maybe even add timestamps to it as well. Could someone please explain how to do this?  Thank you!

 

 

------ Build started: Project: C:\...\DMZWebSvc\, Configuration: Debug Any CPU ------

Warning:  - -- - - - --- - - - - - --- - -- -

re-compiling Web Site

Building directory '/DMZWebSvc/App_Code/'.

--------------- - - --- - - - -- - -

Pre-compilation Complete

- - --  -- -  --- - -


WCF routing not working in ASP.NET 4 Web Forms project

  

I have ASP.NET 4 Web Forms web application project in which I am attempting WCF REST service routing as follows:

            RouteTable.Routes.Add(new ServiceRoute("Services/REST/Calendars/",
                new WebServiceHostFactory(),
                typeof(Web.Services.REST.Calendars.Service)));

            RouteTable.Routes.Add(new ServiceRoute("Services/REST/DynamicContent/",
                new WebServiceHostFactory(),
                typeof(Web.Services.REST.DynamicContent.Service)));

 

I cannot get the WCF REST service properly routed in a ASP.NET 4 Web Form only web application project.....however if I create a combo ASP.NET 4 MVC2/Web Forms web application project.....the routing always works fine.

I thought the URL routing module no longer needs to be included for ASP.NET 4 projects ?.....regardless of whether it is Web Forms or MVC based ?

Please advise.

 

 

 


XAML intellisence not working for one VS2010 project in Solution

  

I've got a WPF solution with 5 projects in it. For some reason...the XAML intellisense quit working and it's driving me nuts. All other intellisense is working just fine (C# for code behinds). I am "not" using any network shares as I saw on other forum posts that this might be the problem. Again...this solution was working fine before. Problem exists where ever I take it XP, W7....Please help!!!

Thanks


Paul Reed

What else could explain Password Recovery not working

  

 

Hi,

I have not been able to get this to work even once, and I'm hoping someone can help me. Here is what I have done so far:

1) Here's the Password Recovery control:

<asp:PasswordRecovery runat="server" id="passwordrecovery"  SuccessPageUrl="success.aspx" maildefinition-from=myaccount@comcast.net

<MailDefinition From="myaccount@comcast.net"

    Subject="Your password"

    BodyFileName="password.txt"/>

 

    <SuccessTemplate>

            <table border="0">

                <tr>

                    <td>Your password has been sent to you.</td>

                </tr>

            </table>

        </SuccessTemplate>

2) Here is the relevant Web.Config ma

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