I can't use my User Control Component in Windows Form - c#

The 'MeButton' component could not be created. The error message is
as follows:
'Microsoft.DotNet.DesignTools.Client.DesignToolsSeiverExcept ion:
'Ecommerce Desktop.Base.MeButton, Ecommerce Desktop.The type 'Admin,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be
resolved. location:
Microsoft.DotNet.DesignTools.Client.DesignToolsClient.d_49.1.MoveNext0 --- the end of the stack trace starting
from the previous location where the exception was created
---location: System.Runtime.ExceptionSeivices.ExceptionDispatchInfo.Thro wQ
location: System.Runtime.CompilerSeivices.TaskAwaiter.HandleNonSucc
essAndDebuggerNotification(Task task) Location:
Microsoft.VisualStudio.ThreadingJoinableTask.CompleteOnC urrentThread0
Location: Microsoft.VisualStudio.ThreadingJoinableTaski.CompleteOn
CurrentThread0 location:
Microsoft.DotNet.DesignTools.Protocol.Endpoints.DesignTool
sEndpoints.DesignerHostslmpl.createComponent(Sessionld sessionld,
Typeldentitytype, String name, NameValuePairs defaultValues) Location:
Microsoft.WinForms.DesignTools.Client.Toolbox.WinFormsToo
lboxItem.CreateComponentsCore(IDesignerHost host, idictionally
defaultValues) location:
System.Drawing.Design.ToolboxItem.createComponents(Ide gnerHost host,
idictionally defaultValues) location:
Microsoft.DotNet.DesignTools.Client.Designers.ComponentPr
owDesigner.CreateToolgoolboxItem tool, location, Nullablei size,
ObjectProxytoolboxSnapArgsy
I get such an error when I drag User Control to the form from the Toolbox.
I just created a User Control, I didn't do anything, but it still didn't happen.
User control and winforms are in the same library.
i am working with dependency injection

the problem was solved when I updated visual studio

Related

GeckoFx not displaying page correctly

I'm using the GeckoFX winforms control in a .Net app to display a Predix Platform app. Not all of the components in the page are rendering, and the Javascript redirects aren't working. But everything loads fine in the latest version of Firefox.
Note that I'm using the binaries from https://www.nuget.org/packages/GeckoFX/ instead of initializing Xpcom using the Firefox dir. If I point Xpcom to my Firefox dir I get these errors:
Gecko.Xpcom.DirectoryServiceProvider.GetFile: not implemented:
permissionDBPDir A first chance exception of type
'System.Runtime.InteropServices.COMException' occurred in
Geckofx-Core.dll Error: 6/12/2017 10:10:09
AMMainUnhandled
Exception: Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG)) Audit: 6/12/2017 10:10:09
AMMainStack
Trace: at Gecko.nsIServiceManager.GetServiceByContractID(String
aContractID, Guid& aIID) at
Gecko.Xpcom.GetService[TInterfaceType](String contractID) in
D:\temp\ddfb20c\Geckofx-Core\Xpcom.cs:line 745 at
Gecko.DefaultPromptFactory.Init() in
D:\temp\ddfb20c\Geckofx-Core\PromptService.cs:line 79 at
Gecko.PromptFactoryFactory.Init() in
D:\temp\ddfb20c\Geckofx-Core\PromptService.cs:line 60 at
Gecko.Xpcom.Initialize(String binDirectory) in
D:\temp\ddfb20c\Geckofx-Core\Xpcom.cs:line 381 at
XiboClient.MainForm.InitializeXibo() in
c:\Users\220023166\Documents\Visual Studio
2010\Projects\xibo-dotnetclient-1.8.1\MainForm.cs:line 165 at
XiboClient.MainForm..ctor() in c:\Users\220023166\Documents\Visual
Studio 2010\Projects\xibo-dotnetclient-1.8.1\MainForm.cs:line 156
at XiboClient.Program.RunClient() in
c:\Users\220023166\Documents\Visual Studio
2010\Projects\xibo-dotnetclient-1.8.1\Program.cs:line 136 at
XiboClient.Program.Main(String[] args) in
c:\Users\220023166\Documents\Visual Studio
2010\Projects\xibo-dotnetclient-1.8.1\Program.cs:line 118
Is there a security setting or something I might be missing in order to get this to work? Or is there a way I can view the webpage console through GeckoFX? I've inspected the page with Fiddler and it looks like all of the elements are loading correctly.

Xamarin.Forms Android - Can't add event to calendar "My calendar" programmatically

I have an app written in Xamarin.Forms which is able to create calendar events (although the calendar code is Android specific). I have confirmed that the code works for most calendars, but on my two physical phones, there exists a calendar called "My calendar" that I cannot add to.
I have confirmed that the value for key calendar_access_level corresponds to one of the following fields:
CalendarAccess.AccessContributor,
CalendarAccess.AccessEditor,
CalendarAccess.AccessOwner,
CalendarAccess.AccessRoot (See CalendarAccessLevel, CalendarAccessLevel values)
Am I including an access level that I should not? Or is "My calendar" some kind of special calendar that I need to filter out?
I can add to it manually in the stock Calendar app, just not programmatically. I can add to any other calendars programmatically, so I don't believe it's an issue with that code.
Update: After getting the app to debug on an physical device that was having the issue, I was able to figure out the issue. Here is a partial stack trace (the rest is unrelated to the issue, it's just the gesture recognizer that called the command):
Exception: java.lang.NullPointerException
id == null
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/4009/f3074d2c/source/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at Java.Interop.JniEnvironment+StaticMethods.CallStaticObjectMethod (Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00082] in /Users/builder/data/lanes/4009/9578cdcd/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.g.cs:12649
at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeObjectMethod (System.String encodedMember, Java.Interop.JniArgumentValue* parameters) [0x0001b] in /Users/builder/data/lanes/4009/9578cdcd/source/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniStaticMethods.cs:97
at Java.Util.TimeZone.GetTimeZone (System.String id) [0x0001e] in /Users/builder/data/lanes/4009/9578cdcd/source/monodroid/src/Mono.Android/platforms/android-23/src/generated/Java.Util.TimeZone.cs:402
at MyProject.Droid.CalendarEventsAndroid+<CreateCalendarEventsAsync>d__4.MoveNext () [0x000bf] in C:\Projects\MyProject\MyProject.App\MyProject\Droid\DependencyServices\CalendarEventsAndroid.cs:64
After finding a physical device that was having the issue, I was able to reproduce it while debugging and solve it. The issue is that "My calendar" did not have a timezone assigned to it, I'm assuming because it's a default calendar and inherits the user's timezone setting. Because it didn't have a timezone, Java.Util.TimeZone.GetTimeZone was throwing an exception when I passed in an empty timezone identifier.
string calTzId = GetTimeZoneIdForCalendar(calId); // Evaluates to null
Java.Util.TimeZone jCalTz = Java.Util.TimeZone.GetTimeZone(calTzId); // Exception thrown here
The solution is to check if calTzId is null or empty and use the user's preferred timezone in the event that it is.
Java.Util.TimeZone jCalTz = !string.IsNullOrEmpty(calTzId)
? Java.Util.TimeZone.GetTimeZone(calTzId)
: Java.Util.TimeZone.Default;
See Xamarin's Java.Util.TimeZone.Default documentation.

FluentNHibernate.Cfg.FluentConfigurationException

Just some background: it was working code in Production since 2013. Recently added DB password encrypt/decrypt logic in code - compiled code using VS2010 - it's working fine in test but not in Production.
I am assuming it has something to do with configuration xml , mapping or some mismatch of NHibernate dll. Not sure if build/output folders need some thing?
Error in Production:
FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
NHibernate MappingException: Could not compile the mapping document: (XmlDocument) ---> System.InvalidCastException: [A]NHibernate.Cfg.MappingSchema.HbmMapping cannot be cast to [B]NHibernate.Cfg.MappingSchema.HbmMapping. Type A originates from 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\drcwm\bb04bdb4\da32eda4\assembly\dl3\bb71f3c5\00f7c13c_ef33d101\NHibernate.dll'. Type B originates from 'NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' in the context 'LoadFrom' at location 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\drcwm\bb04bdb4\da32eda4\assembly\dl3\44ab434f\00f7c13c_ef33d101\NHibernate.dll'.
at NHibernate.Cfg.XmlHbmBinding.Binder.Deserialize[T](XmlNode node)
at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
--- End of inner exception stack trace ---
at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)
at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name)
at NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc, String name)
at FluentNHibernate.PersistenceModel.Configure(Configuration cfg)
at FluentNHibernate.Cfg.FluentMappingsContainer.Apply(Configuration cfg)
at FluentNHibernate.Cfg.MappingConfiguration.Apply(Configuration cfg)
at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration()
--- End of inner exception stack trace ---
at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration()
at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
--- End of inner exception stack trace ---
at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory()
at DB.FIOS_SOUTH.DataBase.get_SessionFactory()
NLog.LoggerImpl.Write Error "System.NullReferenceException: Object reference not set to an instance of an object.
at DB.Base.DataBase.get_Session()
at DB.Base.DataBase.Query[T]()
at RemoteService.BaseListService.FilteredQuery[T](BaseParameter parameter, DataBase db, Boolean applyPagination, Boolean applySortOrder)
at RemoteService.JobsListService.GetJobsWithChildrenCount[T](JobParameter parameter)
Code throwing exception is below:
if (_ISessionFactory == null)
{
try
{
_ISessionFactory = Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005
.ConnectionString(ConnectionString).IsolationLevel(IsolationLevel.ReadUncommitted)
.Cache(c => c.ProviderClass<HashtableCacheProvider>())
)
.Mappings(m =>
{
m.HbmMappings
.AddFromAssemblyOf<FIOS_NORTH_QUEUES.DataBase>();
m.FluentMappings
.AddFromNamespaceOf<FIOS_NORTH_QUEUES.Map.QueueWFADOItemMap>();
})
.ExposeConfiguration(ModifyConfiguration)
.BuildSessionFactory();
}
catch (Exception ex)
{
logger.Error(ex);
}
}
your production process has already loaded NHibernate from an old (shadow-)cache location then the new dlls are loaded from a new location and try to load their dependencies next to them, but since the process already loaded the assemblies from elsewhere it has a conflict.
You have to try unloading/restarting the AppDomain by restarting the server process, asp.net process, iis, whatever. The error is not related to the code at all.

Using the windows azure Connectthedots.io example and running into some trouble with the C# gateway.exe socket connection

I am attempting to use the Connectthedots.io example, and am running the gateway.exe program on my windows 8.1 machine. I have set up a dummy device using the code from the sound meter example (https://github.com/MSOpenTech/connectthedots/blob/master/Devices/GatewayConnectedDevices/BtUSB_2_BtUART_Example/BtUSB_2_BtUART_Example.py), although replacing the reads from the USB with a random value generated (random.randint).
I run the gateway.exe, and then I run the dummy sensor python script after. The dummy sensor script says that it has connected to the socket and is sending the JSON data to the socket. The gateway does not recognize it, and is giving this errors in the logfile.
2015-06-03 10:55:16.8137 ERROR Error on lock: {"ClassName":"System.AggregateException","Message":"One or more errors occurred.","Data":null,"InnerException":{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.Dns.GetAddrInfo(String name)\r\n at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null},"HelpURL":null,"StackTraceString":" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n at System.Threading.Tasks.Task.Wait()\r\n at Amqp.TcpTransport.Connect(Connection connection, Address address, Boolean noVerification)\r\n at Amqp.Connection.Connect(SaslProfile saslProfile, Open open)\r\n at Amqp.Connection..ctor(Address address, SaslProfile saslProfile, Open open, OnOpened onOpened)\r\n at Amqp.Connection..ctor(Address address)\r\n at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.ReliableSender.EstablishSender() in c:\\Users\\Cameron\\Desktop\\connectthedots-master\\Devices\\Gateways\\GatewayService\\Gateway\\Utils\\MessageSender\\AMQPSender.cs:line 129","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nThrowIfExceptional\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Threading.Tasks.Task\nVoid ThrowIfExceptional(Boolean)","HResult":-2146233088,"Source":"mscorlib","WatsonBuckets":null,"InnerExceptions":[{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.Dns.GetAddrInfo(String name)\r\n at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null}]}
2015-06-03 10:55:16.8414 ERROR Exception on sendObject reference not set to an instance of an object.
2015-06-03 10:55:16.8999 ERROR Error on lock: {"ClassName":"System.AggregateException","Message":"One or more errors occurred.","Data":null,"InnerException":{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.Dns.GetAddrInfo(String name)\r\n at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null},"HelpURL":null,"StackTraceString":" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n at System.Threading.Tasks.Task.Wait()\r\n at Amqp.TcpTransport.Connect(Connection connection, Address address, Boolean noVerification)\r\n at Amqp.Connection.Connect(SaslProfile saslProfile, Open open)\r\n at Amqp.Connection..ctor(Address address, SaslProfile saslProfile, Open open, OnOpened onOpened)\r\n at Amqp.Connection..ctor(Address address)\r\n at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.ReliableSender.EstablishSender() in c:\\Users\\Cameron\\Desktop\\connectthedots-master\\Devices\\Gateways\\GatewayService\\Gateway\\Utils\\MessageSender\\AMQPSender.cs:line 129","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nThrowIfExceptional\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Threading.Tasks.Task\nVoid ThrowIfExceptional(Boolean)","HResult":-2146233088,"Source":"mscorlib","WatsonBuckets":null,"InnerExceptions":[{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at System.Net.Dns.GetAddrInfo(String name)\r\n at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null}]}
2015-06-03 10:55:16.9280 ERROR Exception on sendObject reference not set to an instance of an object.
2015-06-03 10:55:16.9553 ERROR Exception in task: at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.SendAmqpMessage(Message m) in c:\Users\Cameron\Desktop\connectthedots-master\Devices\Gateways\GatewayService\Gateway\Utils\MessageSender\AMQPSender.cs:line 355
at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.<PrepareAndSend>b__0(Message m) in c:\Users\Cameron\Desktop\connectthedots-master\Devices\Gateways\GatewayService\Gateway\Utils\MessageSender\AMQPSender.cs:line 324
at Microsoft.ConnectTheDots.Common.SafeAction`1.SafeInvoke(TParam obj) in c:\Users\Cameron\Desktop\connectthedots-master\Devices\Gateways\GatewayService\Common\SafeAction.cs:line 48
2015-06-03 10:55:16.9553 ERROR Message in task: Object reference not set to an instance of an object.
Why is this not working? Is it due to some incompatibility on windows? Because I have not modified the C# gateway code whatsoever, and my dummy sensor appears to be connecting and sending the data, so what gives? I would imagine the example given by Microsoft would run on Windows 8.1.
May I know whether you got the error messages from the log file (connectthedots-master\Devices\Gateways\GatewayService\WindowsEXE\bin\Debug\logs) or not? Based on my understanding, it looks like the issue is encountered because of you have not set the values of AMQPServiceConfig in app.config (GatewayExe) correctly.
Per my experience you have two options to get the values from Azure Event Hubs:
Option1
Leverage AzurePrep project in code sample to generate the log file which contains the info like this:
Then use below format to replace the info in app.config in Microsoft.ConnectTheDots.GatewayExe project.
AMQPSAddress="amqps://[key-name]:[key]#[namespace].servicebus.windows.net"
Option2
Browse http://manage.windowsazure.com
Selecting Service Bus in the left nav menu
Picking your Namespace
Select Event Hubs from the top menu -> select ehdevices -> select Connection Information tab at the bottom
Then use below format to replace the info in app.config
AMQPSAddress="amqps://[key-name]:[key]#[namespace].servicebus.windows.net"
Since I couldn’t fully reproduce your issue on my side, some other tips for your reference in case I may miss anything for understanding your issue
Please use ‘run as administrator’ for VS when you set up the
Gateway Service, otherwise the service wouldn’t listen to the port
which receives the requests from BtUSB_2_BtUART_Example Python
script.
Use Python2 instead of Python3 since some grammars have difference
in Python3, otherwise you may need to modify the code in BtUSB_2_BtUART_Example.py file
Blow is the code sample running results on my side and I could see figures on my Azure portal – ehdevices dashboard.

Assuredly simple C# file saving issue

We have a custom built web application built on ASP (2.0 it looks like) using C#. We recently moved it from an IIS6 environment to an IIS7. We have run into an issue where a page set up to view images that had been retrieved via a search is throwing an error. The code takes a copy of the image file and puts it into a work directory renaming the copy to the user's name.
bmpList[0].Save("c:\\inetpub\\wwwroot\\SiteName\\Work\\" + ((ImageUser)Session["ImageUser"]).Username + ".TIF", info, encParams);
I know that the wwwroot is no longer a valid directory in the path so I changed it to...
bmpList[0].Save("c:\\inetpub\\SiteName\\Work\\" + ((ImageUser)Session["ImageUser"]).Username + ".TIF", info, encParams);
Saved the file, did and IIS restart and cleared my browser cache and still receive an error...
A generic error occurred in GDI+.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
Source Error:
Line 180:
Line 181: //bmpList[0].Save("c:\\pi\\" + ((ImageUser)Session["ImageUser"]).Username + ".TIF", info, encParams);
Line 182: bmpList[0].Save("c:\\inetpub\\wwwroot\\SiteName\\Work\\" + ((ImageUser)Session["ImageUser"]).Username + ".TIF", info, encParams);
Line 183:
Line 184: for (int a = 1; a < numFiles; a++)
Source File: c:\inetpub\Sitename\SiteApp\View.aspx.cs Line: 182
Stack Trace:
[ExternalException (0x80004005): A generic error occurred in GDI+.]
System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) +615209
View.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\SiteName\SiteApp\View.aspx.cs:182
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnPreRender(EventArgs e) +11056766
System.Web.UI.Control.PreRenderRecursiveInternal() +108
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
It seems like a fairly straightforward thing but for some reason it is not updating (the path in the error remains exactly the same). What am I missing?
Almost all the time (i.e 99.9999% of the times), when using GDI, 'a generic error occured' means that the directory you are trying to save to doesn't have the proper permissions. Typically, you need to make sure that directory is allowing asp.net to modify files. Did you check the permission on the directory you are trying to save the files to?
So oddly enough the answer is actually as simple as it looks... almost.
Changing...
c:\inetpub\wwwroot\SiteName\Work\
to...
c:\inetpub\SiteName\Work\
worked. Why it was continuing to give me the same error from the browser after I changed the code on the .cs file was that the IP that they had bound to the site still belonged to a previous version of the machine so DNS was routing me over to that box instead. All said it ended up I was on the wrong OSI model layer. I only discovered it when I went to build a test version on the same box and went to unbind the IP from the broken site and bind it to my second test site and I found that the IP I wanted wasn't an option (so it must have been manually entered). Live and learn. Thanks for the input and advise.

Categories

Resources