Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all 14169 articles
Browse latest View live

ASPNETCOMPILER : error ASPRUNTIME: Object reference not set to an instance of an object in TFS Build 2015

$
0
0

Hello there

I'm working on upgrading our build to TFS 2015 and getting the above error for only one web project which happens only from the build agent. Interestingly, it happens first time only for new checkouts. If I build same code from the Developer prompt, even after new check out, the issue is not happening. I faced the same issue which upgrading to .NET 4.5.2 but solved it by specifying MS Tool Path in build template which I did the same here too but no luck.

Any help is appreciated.

Thanks in advance.

~Manooh


Integration Tool that allows to transfer tickets from Zen Desk to TFS Team Foundation Services

$
0
0

Hi:

   If anyone is interested in the Integration Tool that allows to transfer tickets from Zen Desk to TFS Team Foundation Services, please let us know. The tool allows to do the following:

1. Search Zen Desk Tickets

2. Import Zen Desk Tickets

3. Search Imported Zen Desk Tickets

4. Sync TFS tickets from Zen Desk

5. Sync Zen Desk Tickets from TFS Team Foundation Services

6. Remove Zen Desk Tickets from TFS

7. Tag Zen Desk Tickets as imported once imported into TFS

If you are interested in such a tool, please write to use and we can schedule SKype Meeting: innovationsboulevard@gmail.com

Task Schedular running old version

$
0
0

The following batch file runs every 5 minutes:

@echo off
cd c:\Program Files (x86)\Mozilla Firefox\
start /b /MAX firefox.exe "valueadded.xxx.com/GenericDashboard.aspx?ProductID=697601&Product=CRWN RYL 80 ML 750ML 6 W 2 GLS&NightShift=True&MinsAndSecs=Y"

But everytime it runs it assumes MinsAndSecs=N

Sitefinity 8 httpcontext overlapping with asp.net httpcontext issue

$
0
0

Hi,

We have migrated SF 3.7 to SF 8.0 .

We have the sitefinity login page as URL : ~/Sitefinity/Login/

1.In sitefinity application we have one folder plus.
We have signin page for business application login page : ~/Plus/Signin.aspx

We have implemented the web.config file in plus folder and changes in main config i.e ~/web.config .
As per below solution.
http://www.sitefinity.com/developer-network/knowledge-base/how-to-create-sub-applications-inside-a-sitefinity-website

We have write the below code in signin login :

UserManager userManager = UserManager.GetManager("MusafirMembershipProvider");
if (userManager.ValidateUser(txtEmailAddress.Value, txtMusafirPassword.Text))
{
if (UserController.Validate(txtEmailAddress.Value, txtMusafirPassword.Text, MarketProfileHelper.DefaultMarketProfile.ID))
{
UserInfo user = UserController.GetByUserName(txtEmailAddress.Value);
CookieHelper.SaveUserTypeCookies(Response, TripHelper.GetCustomerTypeKeywordForPageTracking(user));
Telerik.Sitefinity.Security.Model.User userToAuthenticate = null;
Telerik.Sitefinity.Security.SecurityManager.AuthenticateUser(userManager.Provider.Name, txtEmailAddress.Value, txtMusafirPassword.Text, false, out userToAuthenticate);
if (SecurityHelper.CheckForPasswordChangeNotification(user))
{
//FormsAuthentication.SetAuthCookie(txtEmailAddress.Value, true);
Utility.SetCrossPageMessage(Shared.ChangePasswordNotificationMessage, MessageType.Information);
Response.Redirect(PageLink.PlusChangePasswordPageWithReturnURL.Replace("[ReturnURL]", PageLink.PlusDefaultPage));
}
else
{
FormsAuthentication.RedirectFromLoginPage(txtEmailAddress.Value, true);
}
}
else
{
ShowMessage(GetLocalResourceObject("MessageLoginError").ToString(), MessageType.Error);
}
}


Through this working fine.All the external .aspx pages are in plus folder is working fine through above.

But if we create the same page in sitefinity ~/Plus/signin.aspx and put login control in this through sitefinity. We are unable to login with ~/Plus/Signin.aspx. As in this we get the above value for HttpContext.User with same code.

2. Also every time in other folder pages or class like ~/Trip/Class or ~/Trip/Page the value of HttpContext.User has value :Telerik.Sitefinity.Security.Sitefinity.Principal which should not be.
In every external pages if we use the HttpContext.User we get the above value.
Thus it is overriding the every other values and settings.


1 . Please let know how we can add plus login pages in sitefinity and the above code workable through sitefinity.
2. How we can avoid the Telerik.Sitefinity.Security.Sitefinity.Principal from HttpContext.User in every other external pages of folder ~/Trip or ~/Plus.

Please find the attachment for reference.

1.
The "Signin.ascx" is the user control which is developed through code given.
If i use the above control on static "signin.aspx" page ~/Plus/ folder i have no issue.
If i registered it in Sitefinity Toolbox. Creating a Page with Node Plus and than page Signin.aspx with URL ~/Plus/Signin.aspx.
Now if i try to login ..unable to do so and no error show it redirect to login page.

Plz refer in ticket id 952243 for web.config or any further info.

2. Currently i am using the static page only "~/Plus/Sitefinity/Signin.aspx" with control "signin.ascx" .
While i am log in : i am getting the several cookie. PFA for this. The cookie which is created at the time of login of Sitefinity is also creating while i am login in Plus. Which should not be.

Due to this we are getting the below issue :
2.1.
In same window i am login in both the" ~/Sitefinity/Login/" and "~/Plus/Sigin.aspx"
Now if i logout in sitefinity i am also logged out of my ~/Plus/ .
I checked the creation of cookie in browser setting. PFA.

So while if i login with "~/Plus/Signin.aspx" the cookie which are define in "~/App_Data/Sitefinity/Configuration/Security.config" file should not created.

2.2 We have created many GlobalResource file in ~/App_GlobalResources folder but the HttpContext.Current.User searches the file in ~/Sitefinity/App_Data/GlobalResoruces folder. So we put all the global resource files under this folder.

Hope i have explained enough to go through the scenario.

Reference are given below :

https://d3v9w2rcr4yc0o.cloudfront.net/uploads/jobAttachments/150913045310_Teletik-Sitefinity-Security-SitefinityIdentity.png

https://d3v9w2rcr4yc0o.cloudfront.net/uploads/jobAttachments/150913045805_Cookie-Created-on-Login-With-Plus.png


Plz let know if have any doubt.

Solution for "Closed-System" of Tools, Caused by Deadline.

$
0
0

Forgive the cryptic title, but here's the deal.  I need a solution for an Apollo 13 Scenario.  I have a "closed-system" of tools to create DVD product, within one day's time, and cash-flow that limits what I could buy, if there was time.

Available to me:  1.  Gateway laptop computer (2004,) runing Windows XP-HE (2002,) SP3                  2.  Iomega Super-DVD External Hard Drive & Burning Rom (approx. 2004-2006)                       3.  USB2 connecting cord                                                                                                 4.  Lightscribe DVDs with latest version of Lightscribe System Software

Can I make this work somehow? 

To date, I have been unsuccessful in getting laptop to recognize either the internal disk drive or external drive as being Lightscribe-ready, and I need about 15 DVD videos created by tomorrow morning around 10AM, with both readable DVD side finalized and Lightscribe side, professional-looking.

Is there a prayer?

Sincerely,

Jay

Programming for Microsoft Band

$
0
0

Second question for the pro's out there. I would like to develop a program that uses the Microsoft band. What applications and suggested reading material would best suite my lack of coding knowledge? My application wouldn't use the sensors, but would take into account the 'Action' button.

Thanks in advance!

False awards

$
0
0

The first e-mail letter I got was dated 2015-09-04 informing me that I had won The Microsoft Annual Promotion Award signed by Owen Sagness, General Manager, Online Divion, United Kingdom.

How to stop these false informations?

Other companies in this mess refered to in the false e-mail letters were: The Speed Link Delivery Company in London, Ryan and Associates in London and Barclays Bank, PLC 1 Churchill Place London.

I have been requested to pay different fees for the cost of transfering the money of the award from the Barclays Bank to a Swedish bank in Stockholm. These fees were  £1800 GBP for the bank transference and £3650 GBP for the cost a layer.

How to stop these irritating e-mail letters?

Ola Hansson 

information for scripting on site's

$
0
0


 



hi all 
first of all i wanna say and ask 
i dont wanna use the scripts for cheating 
only for faster collecting of bonuses of click games 
and  i wanna know what i ask is even legal because the things i ask are for site's that dont belong to me 
dont wanna do any harm only make it myself a bit easier 
als i wanna say i dont ask to make my scripts 
butt maybay learn me or schow me
willing to learn some stuff butt dunno  if i first need to read all of 
https://technet.microsoft.com/en-us/scriptcenter/dd772284.aspx

i play some click games on fb 
really like the game but don't like  to collect bonuses 
because they take to much time 
few days ago some one pointed me a way 
on some auto collector site to use some script to select all checkboxes ( not my site ) 
press f12
$(':checkbox').each(function() {
this.checked = true; 
});

and how i change the time between clicks 
example : right click 
              : inspect element 
              : <select id="interval">
<option value="10000"> 10 Seconds</option>
<option value="5000"> 5 Seconds</option>
<option value="20000"> 20 Seconds</option>
<option value="30000"> 30 Seconds</option>
<option value="40000"> 40 Seconds</option>
<option value="50000"> 50 Seconds</option>
<option value="60000"> 60 Seconds</option>
</select>

now change 10000 to 1000 to change the time from 10 sec to 1 sec 

this is very nice butt every time 
i refresh i need no repeat this step i would like to know if there a way i can change this so i dont need to do this all the time 
there is also an other site i use sometimes to collect but there are the avatars clickable 
but no checkboxes here you need to click a avatars bar to collect the bonus 
now using grid 

clicker to make its faster but would know if its possible to collect the full page at once like i do on the other page 

tnx in advance 

beginners getting started horror or mystry books

$
0
0
  • How to build up horror or mystery books. Please make it easy to load

windows mobile

$
0
0
i tried to instulle windows mobile form the CD that came with my HTC mobile phone into my hp descktop (vista) , hwoever, every time I have error massage

Windows 10 Quadro FX 3400 / 4400 drivers

$
0
0

Hi,<o:p></o:p>

Does anyone
know of an compatible driver that will work in Windows 10 for the Nvidia Quadro
FX 3400 / 4400 or when Nvidia plan to update their driver for the above graphic
cards.<o:p></o:p>


Many thanks

windows 10 Windows Speech Recognition Macros not working

$
0
0

hi I am trying to use Windows Speech Recognition Macros in Windows 10 but everytime I try to open it, it just gives me this message:

Can't start Speech Macros

Windows Speech Recognition Macros was unable to initialize its command system to begin operation

I've tried to uninstall it and reinstall it again and again but still doesnt work? Can anyone help me?

how to make google my default search engine

$
0
0
Is there a simple way to make Google my default search engine on Microsoft 10?

using FileUpload Control in ASP.NET and C# with JQuery and Ajax

$
0
0

hi

I want to use Ajax and JQuery to send  FileUpload.FileName   as a parameter(Argument) to a method in Page.cs

please tell me how I can access to the properties of FileUpload like   FileName in my Page.cs .

thanks very much

Visual Basic 6 runtime support on Windows 10

$
0
0

Hi all,

I'm wondering if the VB6 Runtime support will be extended on Windows 10 or not.

The ufficial release date of the new OS has been announced but I was not able to find any info about MS is going to support or not VB6 Runtime and COM+ application on Windows 10 (I know that the VB6 IDE support has expired some year ago).

Latest ufficial statement, https:// msdn.microsoft.com/en-us/vstudio/ms788708 has been updated last time on November 2012 and it does not report what is the policy on the new OS.

Just to be clear, for my point of view it is not relevant if the applications may run on Windows 10 with some tricks, but only if MS will legally support the runtime or not that is what makes the difference for a production application.

Any info is appreciated.

Regards,


Wt Unhandled Exception : Access violation writing location

$
0
0

I followed all the instructions on http://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_MS_Windows  to create a Visual Studio project running Wt. I named my project questions (It will eventually be a Q & A web widget). I inserted the code from Wt's "Hello World Example", and everything was fine (the program was building), until I tried to access the website. When I entered the URL, it showed this error:

Exception thrown at 0x00007FFB01F35AEB (ntdll.dll) in Questions.exe: 0xC0000005: Access violation writing location 0x0000000000000024.
Unhandled exception at 0x00007FFB01F35AEB (ntdll.dll) in Questions.exe: 0xC0000005: Access violation writing location 0x0000000000000024.

This is the code (if it helps):

/*
* Copyright (C) 2008 Emweb bvba, Heverlee, Belgium.
*
* See the LICENSE file for terms of use.
*/

#include <Wt/WApplication>
#include <Wt/WBreak>
#include <Wt/WContainerWidget>
#include <Wt/WLineEdit>
#include <Wt/WPushButton>
#include <Wt/WText>

// c++0x only, for std::bind
// #include <functional>

using namespace Wt;

/*
* A simple hello world application class which demonstrates how to react
* to events, read input, and give feed-back.
*/
class HelloApplication : public WApplication
{
public:
	HelloApplication(const WEnvironment& env);

private:
	WLineEdit *nameEdit_;
	WText *greeting_;

	void greet();
};

/*
* The env argument contains information about the new session, and
* the initial request. It must be passed to the WApplication
* constructor so it is typically also an argument for your custom
* application constructor.
*/
HelloApplication::HelloApplication(const WEnvironment& env)
	: WApplication(env)
{
	setTitle("Hello world");                               // application title

	root()->addWidget(new WText("Your name, please ? "));  // show some text
	nameEdit_ = new WLineEdit(root());                     // allow text input
	nameEdit_->setFocus();                                 // give focus

	WPushButton *button
		= new WPushButton("Greet me.", root());              // create a button
	button->setMargin(5, Left);                            // add 5 pixels margin

	root()->addWidget(new WBreak());                       // insert a line break

	greeting_ = new WText(root());                         // empty text

														   /*
														   * Connect signals with slots
														   *
														   * - simple Wt-way
														   */
	button->clicked().connect(this, &HelloApplication::greet);

	/*
	* - using an arbitrary function object (binding values with boost::bind())
	*/
	nameEdit_->enterPressed().connect
		(boost::bind(&HelloApplication::greet, this));

	/*
	* - using a c++0x lambda:
	*/
	// button->clicked().connect(std::bind([=]() {
	//       greeting_->setText("Hello there, " + nameEdit_->text());
	// }));
}

void HelloApplication::greet()
{
	/*
	* Update the text, using text input into the nameEdit_ field.
	*/
	greeting_->setText("Hello there, " + nameEdit_->text());
}

WApplication *createApplication(const WEnvironment& env)
{
	/*
	* You could read information from the environment to decide whether
	* the user has permission to start a new application
	*/
	return new HelloApplication(env);
}

int main(int argc, char **argv)
{
	/*
	* Your main method may set up some shared resources, but should then
	* start the server application (FastCGI or httpd) that starts listening
	* for requests, and handles all of the application life cycles.
	*
	* The last argument to WRun specifies the function that will instantiate
	* new application objects. That function is executed when a new user surfs
	* to the Wt application, and after the library has negotiated browser
	* support. The function should return a newly instantiated application
	* object.
	*/
	return WRun(argc, argv, &createApplication);
}

I did not dare to touch it, so it includes everything.

Windows 10 and Visual Studio 2015 makes Copy Web Site... FTP Log In lock Visual Studio UI.

$
0
0

I've installed Win 10 and VS 2015. I attempted to "Copy Web Site..." to my host via the FTP tool. The FTP Log In comes up, but then proceeds to lock the UI. Nothing works in the UI, not even the system bar across the top. It won't refresh the screen either once another application covers it. It does not seem to affect the process though. The system stays stable and memory and CPU seems to behave as though nothing is wrong on the VS task.

I tried opening in VS 2013 as well and the same thing happened to it. I can only suspect Windows 10 has something to do with it.

 

How to access Contract Method form Service using Http request ?

$
0
0

Hii;
All i am facing an problem to access my Contract-data method which is available in the server, bellow is my following code:-

DynamicProxyFactory dpf = new DynamicProxyFactory("http://localhost/Service1.svc?wsdl");  //Hear DyanamicProxyFacrory is a Class through which i am calling the my srvice from my local server.
List<ContractDescription> cd = dpf.Contracts.ToList();  //Hear i am getting all the contract method from the service in my list cd.
DynamicProxy dproxy = dpf.CreateProxy(cd[0].Name);
Response response = new Response();
Request request = new Request();
request.A = 10; request.B = 20;

DynamicProxyClass requestProxy = new DynamicProxyClass(dpf.ProxyAssembly, request.GetType().ToString());
Type requestType = request.GetType();
object[] requestObject = new object[] { requestProxy.ObjectInstance };
object someResponse = dproxy.CallMethod("GetDataIntoObject", requestObject);   //Through the CallMethod I am calling my Contract method 

But in the last line i.e when i am calling the Contract method (GetDataIntoObject) through dproxy.CallMethod() at that time i am getting Exception as follows :-

System.InvalidOperationException: System.RuntimeType is inaccessible due to its protection level. Only public types can be processed.

So can anybody help me how to resolve this issue.

For clear picture below is my Contract-method which i want to call :-

//Method Name :-

public bool GetDataIntoObject(Request objTest)
        {
            return false;
        }

Problem is serialization and deserialization...

Data Contract :-

[Serializable]
    [DataContract]
    public class Request
    {
        [DataMember]
        public int A { get; set; }

        [DataMember]
        public int B { get; set; }
    }

[Serializable]
    [DataContract]
    public class DynamicProxyClass : DynamicObject
    {
        public static Type GetType(Assembly assembly, string TypeName)
        {
            return assembly.GetType(TypeName, true, true);
        }

        public DynamicProxyClass()
            : base()
        { }

        public DynamicProxyClass(Assembly assembly, string TypeName)
            : this(GetType(assembly, TypeName))
        {
        }

        public DynamicProxyClass(object complexNumber)
            : base(complexNumber)
        {
        }

        public void SetObject(string propertyName, object value)
        {
            base.SetProperty(propertyName, value);
        }

        public object GetObject(string propertyName)
        {
            return base.GetProperty(propertyName);
        }
    }

Please help me ; if my above code is wrong or if you can n't get what i am telling then reply me.

I tried a lot to solve this issue but same exception coming again and again what i am thinking i.e due to serialize and diserialize problem but don't know actually what the problem why the exception coming.

Thanks in advance...


S.K Nayak

how to develop seat selection like movie tickets booking phone app.for windows 8

$
0
0
To develop a form like movie ticket booking app for seat selection.

Issue - Dynamic Menu Generation

$
0
0

I've got an issue where I’m trying to generate menus based on a table, IE to link it to a user down the line. So simply, I’ve got some headers and any header can have items attached to them IE a menu item but a heading can also have nothing attached to it until later down the line. I've just moved over to the c# side so apologies if it incredibly simple to answer, it's become my job to convert a lot to be dynamic instead of static.

table Design:

     [Key]
        public int MenuId { get; set; }
         [Required]
        public int pId {get; set;}
        [Required]
        public string MenuTitle { get; set; }
        [Required]
        public string HandlerURL { get; set; }

        public string ParentID { get; set; }

        public bool Header { get; set; }
        
        public virtual User Users { get; set; }

In HTML i would do :

<nav id="mp-menu" class="mp-menu"><div class="mp-level"><h2>All Cat</h2><ul><li><a href="#">PC's</a><div class="mp-level"><h2>PC's</h2><ul><li><a href="#">Dell</a><div class="mp-level"><h2>Dell</h2><ul><li><a href="#">XPS</a></li><li><a href="#">Workstation</a></li></ul></div></li><li><!-- ... --></li><li><!-- ... --></li></ul></div></li><li><!-- ... --></li><!-- ... --></ul></div></nav>

My Code so far Cry

var sb = new StringBuilder();


            var subMenu = user.MenuModel.AsQueryable().Where(r => r.ParentID == "0").Select(l => new MenuModel { HandlerURL = l.HandlerURL, MenuId = l.MenuId, MenuTitle = l.MenuTitle, ParentID = l.ParentID, pId = l.pId });

        IEnumerable<MenuModel> test01 = subMenu;

            //           IEnumerable<MenuModel> subMenu = table.AsQueryable().Where(r => r.ParentID == (string.Format("{0}", pid))).Select(l => l); //table.Select(String.Format("ParentId = {0}", pid));
                 IEnumerable<MenuModel> HeaderText1 = user.MenuModel.AsQueryable().Where(r => r.ParentID == (string.Format("{0}", "0"))).Where(r => r.Header == true).Select(l => l);


private String GenerateMenu1(IEnumerable<MenuModel> Heading,IEnumerable<MenuModel> menu, ICollection<MenuModel> table, StringBuilder sb)
        {

            string MenuLevel = string.Format(@"<div class=""mp-level"">");
            sb.AppendLine(MenuLevel);

             foreach (var dr in Heading)
                {
  string HeadingText = string.Format(@"<h2>{0}</h2>", dr.MenuTitle);
  sb.AppendLine(HeadingText);
             }

             sb.AppendLine("<ul>");



             foreach (var dr in menu)
             {
                 sb.Append("<li>");

                 if (dr.Header != true)
                 {


                 string handler = dr.HandlerURL.ToString();
                 string menuText = dr.MenuTitle.ToString();
                 string line = String.Format(@"<a href=""{0}"">{1}</a>", handler, menuText);
                 sb.Append(line);

                 string pid = dr.pId.ToString();

                 IEnumerable<MenuModel> subMenu = table.AsQueryable().Where(r => r.ParentID == (string.Format("{0}", pid))).Select(l => l); //table.Select(String.Format("ParentId = {0}", pid));
                 IEnumerable<MenuModel> HeaderText1 = table.AsQueryable().Where(r => r.ParentID == (string.Format("{0}", pid))).Where(r => r.Header == true).Select(l => l);


                 //user.MenuModel.AsQueryable().Where(r => r.ParentID == "0").ToArray<MenuModel>;



                 if (IsNullOrEmptyExtension.IsNullOrEmpty(subMenu) == false)
                 {


                     var subMenuBuilder = new StringBuilder();
                     sb.Append(GenerateMenu1(HeaderText1,subMenu, table, subMenuBuilder));
                 }

                 }
                 sb.Append("</li>");
             }



             sb.Append("</div>");
             sb.Append("</ul>");





            return sb.ToString();
        }

Any Help would be much Appreciated, this is just how i thought to do it. if you have a better way feel free to tell me i'm being stupid..







Ben

Viewing all 14169 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>