VS 2010 - Error Changing Framework Of Windows Service
Nov 17, 2011
I have a deadline to install my windows service NOW. I developed it in VS2010 and chose the .NET 4.0 framework. The server where I am installing it, which is a server that hosts our live web sites, does not have .NET 4.0 installed. So I have to change the framework to 3.5. I have this error now when I try to build:
Error13Type System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in the data at line 120, position 4 cannot be located. Line 122, position
5.C:DevprojectsDocFtpToVendorDocumentFtpProjectInstaller.resx1225DocumentFtpIt is in ProjectInstaller.resx and also Service1.resx. Is it because the version=4.0.0.0, and if so how do I change that? And if not, what is the cause?
View 9 Replies
Similar Messages:
Nov 29, 2012
I am writing a web service for a customer. I tested it locally fine using a consumer, but he is having an issue calling it from his jquery, so he asked for logging.I figured I would use the Windows Event Log for this purpose. after I added the event log and was testing it locally via the consumer, I had an error saying The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. So what I did to solve that was restart Visual Studio with administrator privelege so the event logs could be searched. And I am writing to my event log locally with no other issues.
My question is, when my customer intalls this new version of my web service, will it be able/unable to search the logs and if unable, how can it be given admin privelege so it is able, or again is that a bad idea?
View 1 Replies
May 24, 2012
I developed a web service in VS2010 on my local machine, wrote a consumer of it also locally, and that all works.
I copied the dll and the asmx file to our server, and I am getting an error when I try to invoke it from a browser (also still on the server machine) to make sure it correctly exposes its web methods, but it is not, it is saying "Could not create type 'Service'". That error comes from this line:
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/WarrantyDuplicate.cs" Class="Service" %>
There other web services in the same folder on the server that all work fine so I don't believe it's an IIS setup thing.
This is my first web service in C# and when I created it in VS I did think it odd that the code behind file went into App_Code (as you can see from the line in the asmx file) and is just named dot-cs rather than asmx-dot-cs. But since it worked fine locally, I wasn't sure that mattered.
View 2 Replies
Oct 14, 2011
Now I want to create several filesystemwatchers in my Windows Service and have them monitor different folders but do basically the same thing when files are created. That is, they will be calling the same routines. So my code so far is this:
Code:
// 10/14 - Create N fsw's as specified in the config file.
int nbrFsw = Convert.ToInt32(ConfigSettings.ReadSetting("NumberOfWatchers"));
List<FileSystemWatcher> listOfFsw = new List<FileSystemWatcher>();
for (int i = 0; i < nbrFsw; ++i) {
FileSystemWatcher fsw = new FileSystemWatcher();
[Code] ....
Is there a potential problem that all fsw's that get created are calling the same "on created" event handler? Or will this work nicely?
My requirement is this. I need to watch Output folders and when pdf files are created here I upload the files to a server. These Output folders are in web app deployments. I need to do this function for more than one deployment on the same machine, thus my need for more than one fsw.
This will ultimately be a web service but I am trying this out in a windows program, hence the presence of lblMessages which is on a windows form...
View 10 Replies
Jul 29, 2010
This is happening only in my system. when i do a build it just works fine but when i try to debug the service i am getting the follwoing error. please let me konw what would be theissue.
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe DebugWCFService. Error was: Action DebugWebProject failed to execute:
Value does not fall within the expected range..
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.ArgumentException: Value does not fall within the expected range.
at EnvDTE.Properties.Item(Object index)
at Microsoft.Practices.RecipeFramework.Extensions.Actions.VisualStudio.DebugWebProjectAction.Execute()
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary`2 inputValues)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionCoordinationService.Run(Dictionary`2 declaredActions, XmlElement coordinationData)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
--- End of inner exception stack trace ---
at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
View 1 Replies
Dec 22, 2010
getting error when changing modes from windows to mixed?
[Code]....
View 4 Replies
Jul 20, 2010
My laptop is running Windows Vista. I recently upgraded it to Windows Vista SP2 and I am trying to install .Net Framework 3.5 on my laptop and whenever I try to install .Net Framework 3.5 I get the following error (error code - 1603):-
54] Microsoft .NET Framework 3.5 'package': [2] Error: Installation failed for component Microsoft .NET Framework 3.5 'package'.
MSI returned error code 1603
[07/20/10,23:05:11] WapUI: [2] DepCheck indicates Microsoft .NET Framework 3.5 'package' is not installed.
View 3 Replies
May 2, 2010
I downloaded the Beta Version for .Net 4 and Visual Web Developer 2010. Now I want to delete them and get the New versions. It will not delete. Visual Web Developer will not install without the .Net 4 Framework.
_____________________________________________________________________________________
OS Version = 6.1.7600, Platform 2
[5/1/2010, 21:52:47]OS Description = Windows 7 - x64 Home Premium Edition [code]...
View 5 Replies
Feb 4, 2011
Service Unavailable Error in IIS Windows server 2003
View 2 Replies
Mar 29, 2011
Hello all. I created a class that runs fine when using it with web forms, however when i create a Windows service and try to run it I recieve a NullReference error. Im not sure what else to do since the class works fine.Here is a snippet.
The service
public partial class Service1 : ServiceBase
{
//Timer object
Timer RunTime;
QBridge bridge_object = new QBridge()
double test_interval = 40000; //test value
public Service1()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
//Send email notification that intakes were pushed
//bridge_object.SendNotification(bridge_object.service_startedtext);
RunTime = new Timer(30000);
//set the elapsed event
RunTime.Elapsed += new ElapsedEventHandler(RunTime_Elapsed);
//RunTime.Interval = SetInterval(); //calculated interval
RunTime.Interval = test_interval; // test interval
RunTime.Enbled = true; //set timer to true
//QBridge bridge_object = new QBridge();
//bridge_object.SendNotification("start");
//SendNotification("start");
}
protected override void OnStop()
{
RunTime.Enabled = false; RunTime.Dispose();
try
{
bridge_object.SendNotification("stop");
}
catch (NullReferenceException nre) { System.Windows.Forms.MessageBox.Show("Error " + nre); }
catch (Exception er) { System.Windows.Forms.MessageBox.Show("Error " + er); }
//SendNotification("end");
}
//Included this to test locally. works fine when just calling the method
protected void RunTime_Elapsed(object source, ElapsedEventArgs e)
{
//SendNotification("run");
try
{
bridge_object.SendNotification(run);
}
catch (NullReferenceException nre) { System.Windows.Forms.MessageBox.Show("Error " + nre); }
catch (Exception er) { System.Windows.Forms.MessageBox.Show("Error " + er); }
}
public void SendNotification(string email_text)
{
MailMessage initial = new MailMessage();
initial.Bcc.Add(new MailAddress(""));
initial.From = new MailAddress("");
initial.Subject = "Web notification";
initial.IsBodyHtml = true;
initial.Body = email_text;
SmtpClient mailClient = new SmtpClient("192.168.1.1");
try
{
mailClient.Send(initial);
}
catch (Exception ex) { }
}
}
Class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net.Mail;
using System.IO;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
namespace Intake
{
public class QBridge
{
SqlConnection con =
new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
private string login_error;
public QBridge()
{
}
public void SendNotification(string email_text)
{
MailMessage initial = new MailMessage();
initial.Bcc.Add(new MailAddress(""));
initial.From = new MailAddress("");
initial.Subject = "Web notification";
initial.IsBodyHtml = true;
initial.Body = email_text;
SmtpClient mailClient = new SmtpClient("192.168.1.1");
try
{
mailClient.Send(initial);
}
catch (Exception ex) { }
}
}
}
View 7 Replies
Sep 14, 2010
We have an issue with a .NET 2.0 web service application that is generating a module not found exception when we try to load on server 2008. A second server running the same 2008 version loads the service fine.As part of the investigation we have taken the default hello world .NET 2.0 web service and deployed to both servers and have exactly the same issue with it running fine on one but not the other. The issue is trying to track down the module in question. Running process explorer and dependency walker doesn't seem to give us a clue.
The full error is:-
[code].....
View 1 Replies
Sep 9, 2010
I try to install vistual 2005 on Win 7 On meantime I have net1.0 sp3 developer ;net Framework 2.0 , Microsoft Device Emulator version1.0 -ENU,Microsoft Visual J#2.0 Redistributable Package( can I uninstall This package)the studin 2005, but when I try to install the update (VSBsp1-KB926747-x86-INTL) i get hte error:The update patch cannot be installed by the Windows Installer service because the program to be updated may be missing, or te upgrade patch may update a different version of the program, verify that the program to beupgraded exists on your computer and that you have the correct Upgrade patch how to deat with this problem??
View 6 Replies
Feb 6, 2010
Difference between .net framework 2.0 and .net framework 2.0 with service pack 2
View 4 Replies
May 26, 2010
I want to develop a web service that handle another web service's event. (C#.Net 3.5 framework)
View 1 Replies
Jun 10, 2010
I have an asp.net web app which works fine in Windows XP machine in a domain. I am porting it to a Windows 7 stand alone machine. The app uses a web service which makes a call to sql server. The web server (IIS 7.5) and SQL Server are on the same stand alone machine.I enabled Windows authentication for the website and web service. The web service uses a trusted connection connection string. The web service credentials uses System.Net.CredentialCache.DefaultCredentials. I noticed username, password and domainname are blank after the call! The webservice and web site use the 'Classic .NET AppPool' with NetworkServices identity.
I am getting an exception "NT AUTHORITYANONYMOUS LOGON" in the database call in the web service. I am assuming it's related to the blank credentials.I am expecting ASPNET user to be the security token to the database. Why is this not happening? Did I miss a setting? (Usually this happens when sql server and web server are on two different machines in a domain, delegation & double hopping, but in my case everything is on a dev box)
View 2 Replies
May 18, 2010
I have a clean installation of Windows 7 with VS2010 RTM and am trying to get the ASP.NET Development Server to work. When I run the project, the WebDev server starts and shows that it's listening on port x on localhost. I've tried:telnet to the port. The port is not listening. running netstat -o shows that the WebDev server is in fact not listening on any port. manually changing the WebDev port to a different port and restarted VS without effect. I have Windows Firewall turned off entirely and am not running any other firewall software either.
View 1 Replies
Sep 20, 2010
I have running existing web service in framework 2.0, but i want to convert all my service to framework 3.5 WCF Service..
View 1 Replies
Dec 13, 2010
Iam using ftp client wrapper class for accessing ftp.
iam able to download files from ftp when used in windows application
when i try to use the same code with windows service i get an error
the error is
"The underlying connection was closed: An unexpected error occurred on a receive. "
this error i get on directory listing
the stack trace is:
[Code]....
Note:
FTP is getting connected throgh service
FTP is getting connected throug FileZilla, internet explorer
soruce code:
[Code]....
View 5 Replies
Jul 28, 2010
When i create a Windows Service for getting information from a Web Application(ASP.NET c#) for scheduling some task in the client machine.
To consume WCF from the web application. I added WCF reference to Window Service project as a service reference, everything seems fine. It updated app.config file, added service reference etc.
it was not working.
[Code]....
View 1 Replies
Apr 29, 2010
When attempting to publish a web application from Visual Studio 2010, I receive the following error: Get service of SVsBuildManagerAccessor fails I'm using Visual Studio 2010 Ultimate (x86) on Windows 7 Professional (x64). I've attempted publishing the web app via FTP and Local File System and receive the above mentioned error. I've searched the internet for the error but have found no solutions.
View 10 Replies
Dec 3, 2010
I am developping the ERP Web Application. My solution structure is as given below. Main Web Application - Having reference to All Module Web Application. Common Web Application - Has Master Page, User Control, Login page, Defualt Error and etc Module Web Application - Having Module wise Aspx and code behind. It refer Common Web Application to reduce redundacy. In this Context we are facing the following problem.
1) while running web application in the debug mode it gives error as 'the target assembly contains no service types. You may need to adjust the Code Access Security policy of this assembly'
2) Could not Debug both Module and Common Web Application.
3) In Design Time both Master or user control not renders in refered Aspx Page.
4) While I debug in visual studio 2010, it gets restart after some time.
View 1 Replies
Oct 27, 2010
how to change the target framework in Visual Studio 2008 for running asp.net application on IIS Server.
View 2 Replies
Apr 16, 2010
I have a framework 2.0 asp.net website, I want to change it's framework version to 3.5. Is it possible to do this manually from web.config file? I don't want to change from visual studio property pages. I need to change from web.config, what should I do?
View 2 Replies
Apr 1, 2011
I have to change the username column in my database to nullable, which means everywhere in my code, I now have to check username.HasValue and change references to username to username.Value. Is there anything I can do to avoid having to change all the references to username to username.Value?
View 1 Replies
Nov 27, 2010
I want to know if I develop and application using entity framework 4.0 and sql server and then changing the connection string to my sql one, will it work without any problem?
What are the other considerations to keep in mind?
View 3 Replies