|
All have answers on Google. Exception for #3 which should be caching and not catching (probably.) If you get stuck on understanding anything specific please let us know.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
This question is a re-post because I could not find it under 'My Questions' for the account in my name, and wasn't sure if it ended up in the ASP.NET forum. Administrator, please feel free to delete the earlier posting and this comment.
Hi Everyone,
I cannot get this message to go away:
"An Exception occured: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:deviceInfo. The InnerException message was 'There was an error deserializing the object of type LiveControl.ImageDataResponse. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 24868.'. Please see InnerException for more details."
I've tried dozens of possible solutions to the problem of moving large blocks of data from a Winforms client to a WCF server, to no avail. I've Googled until I'm bleary eyed. Still no solution to this message. The MaxArrayLength in app.config is 2147483647. Here is the app.config file:
="1.0"="utf-8"
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="LiveControl.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="LiveControl.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" />
</startup>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IMyMessage" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerQuotas maxDepth="4194304" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
<binding name="WSDualHttpBinding_ILiveCtrlService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerQuotas maxDepth="4194304" maxStringContentLength="8192"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
<binding name="WSDualHttpBinding_ILiveCtrlEvents" />
<binding name="WSDualHttpBinding_ILiveCtrlService1" />
<binding name="WSDualHttpBinding_IMyMessage1" />
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ILiveCtrlService"
contract="ServiceReference.ILiveCtrlService" name="WSDualHttpBinding_ILiveCtrlService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IMyMessage"
contract="ServiceReference.IMyMessage" name="WSDualHttpBinding_IMyMessage">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ILiveCtrlService1"
contract="LiveControlService.ILiveCtrlService" name="WSDualHttpBinding_ILiveCtrlService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IMyMessage1"
contract="LiveControlService.IMyMessage" name="WSDualHttpBinding_IMyMessage1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ILiveCtrlEvents"
contract="LiveControlService.ILiveCtrlEvents" name="WSDualHttpBinding_ILiveCtrlEvents">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
<userSettings>
<LiveControl.Properties.Settings>
<setting name="Device_Name" serializeAs="String">
<value />
</setting>
<setting name="Owner_Name" serializeAs="String">
<value />
</setting>
</LiveControl.Properties.Settings>
</userSettings>
<applicationSettings>
<LiveControl.Properties.Settings>
<setting name="Device_ID" serializeAs="String">
<value>1add22ed-af20-4ef8-aeb9-caad8fa9ff08</value>
</setting>
</LiveControl.Properties.Settings>
</applicationSettings>
</configuration>
...and the Service interface is this...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace LiveControl
{
public interface IMyMessageCallback
{
[OperationContract(IsOneWay = true)]
void OnCallback(string message);
}
[ServiceContract(CallbackContract = typeof(IMyMessageCallback), SessionMode = SessionMode.Required)]
public interface IMyMessage
{
[OperationContract(IsOneWay = true)]
void MessageToServer(string message);
}
interface ILiveCtrlEventsCallback
{
[OperationContract(IsOneWay = true)]
void OnMessageReceived(string message);
}
[ServiceContract(SessionMode = SessionMode.Required,
CallbackContract = typeof(ILiveCtrlEventsCallback))]
interface ILiveCtrlEvents
{
[OperationContract(IsOneWay = true)]
void Subscribe(Guid deviceGuid, string deviceName, string ownerName);
[OperationContract]
void Unsubscribe(Guid deviceGuid);
[OperationContract(IsOneWay = true)]
void Connect(Guid deviceGuid);
[OperationContract]
void Disconnect();
}
[ServiceContract]
public interface ILiveCtrlService
{
[OperationContract]
int GetNextValueSvc(int value);
[OperationContract]
string GetDataSvc(int value);
[OperationContract]
CompositeType GetDataUsingDataContractSvc(CompositeType composite);
[OperationContract]
string GetImageUrlSvc(string slide, int focus, int x1off, int y1off, int width, int height);
[OperationContract]
string GetPreviewImageUrlSvc(string slide);
[OperationContract]
FocusCaps GetFocusCapsSvc();
[OperationContract]
DeviceInfo[] GetDeviceInfoListSvc();
[OperationContract]
void SetDeviceInfoSvc(DeviceInfo deviceInfo);
[OperationContract]
ImageDataRequest SendImageDataSvc(ImageDataResponse imageData);
}
[DataContract]
public class FocusCaps
{
[DataMember]
public int Min { get; set; }
[DataMember]
public int Max { get; set; }
[DataMember]
public int Default { get; set; }
}
[DataContract]
public class ImageDataResponse
{
[DataMember]
public Guid deviceGuid { get; set; }
[DataMember]
public bool isChunking { get; set; }
[DataMember]
public int chunkSize { get; set; }
[DataMember]
public int chunksTotal { get; set; }
[DataMember]
public int wholeChunks { get; set; }
[DataMember]
public int partialChunks { get; set; }
[DataMember]
public int chunksRemaining { get; set; }
[DataMember]
public int Size { get; set; }
[DataMember]
public byte[] Data { get; set; }
}
[DataContract]
public class ImageDataRequest
{
[DataMember]
public Guid deviceGuid { get; set; }
[DataMember]
public bool request { get; set; }
[DataMember]
public string slide { get; set; }
[DataMember]
public int focus { get; set; }
[DataMember]
public int x1off { get; set; }
[DataMember]
public int y1off { get; set; }
[DataMember]
public int width { get; set; }
[DataMember]
public int height { get; set; }
}
[DataContract]
public class DeviceInfo
{
[DataMember]
public Guid device_guid { get; set; }
[DataMember]
public string device_owner{ get; set; }
[DataMember]
public string device_name { get; set; }
[DataMember]
public string user_name { get; set; }
[DataMember]
public bool online { get; set; }
[DataMember]
public bool available { get; set; }
public ICommunicationObject comm_obj;
}
[DataContract]
public class CompositeType
{
bool boolValue = true;
string stringValue = "Hello ";
[DataMember]
public bool BoolValue
{
get { return boolValue; }
set { boolValue = value; }
}
[DataMember]
public string StringValue
{
get { return stringValue; }
set { stringValue = value; }
}
}
}
My client app is sending ImageDataResponse.Data[1M max] blocks of various sizes of image data to the server:
ImageDataResponse imageData = new ImageDataResponse();
Bitmap bitmap = new Bitmap(pictureBox2.Image);
imageData.Size = bitmap.Height * bitmap.Width;
imageData.Data = new byte[imageData.Size];
using (var memoryStream = new MemoryStream())
{
bitmap.Save(memoryStream, ImageFormat.Jpeg);
imageData.Data = memoryStream.ToArray();
}
imageData.Size = imageData.Data.Count();
ImageDataRequest imgDataReq = new ImageDataRequest();
imgDataReq = m_LiveCtrlService.SendImageDataSvc(imageData);
I'm a beginner and any suggestions that would enable sending large Byte[] arrays to the server would be greatly appreciated.
Thank you in advance.
|
|
|
|
|
|
Hi Everyone,
I cannot get this message to go away:
"An Exception occured: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:deviceInfo. The InnerException message was 'There was an error deserializing the object of type LiveControl.ImageDataResponse. The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 24868.'. Please see InnerException for more details."
I've tried dozens of possible solutions to the problem of moving large blocks of data from a Winforms client to a WCF server, to no avail. I've Googled until I'm bleary eyed. Still no solution to this message. The MaxArrayLength in app.config is 2147483647. Here is the app.config file:
="1.0"="utf-8"
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="LiveControl.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="LiveControl.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" />
</startup>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IMyMessage" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerQuotas maxDepth="4194304" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
<binding name="WSDualHttpBinding_ILiveCtrlService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerQuotas maxDepth="4194304" maxStringContentLength="8192"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
<binding name="WSDualHttpBinding_ILiveCtrlEvents" />
<binding name="WSDualHttpBinding_ILiveCtrlService1" />
<binding name="WSDualHttpBinding_IMyMessage1" />
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ILiveCtrlService"
contract="ServiceReference.ILiveCtrlService" name="WSDualHttpBinding_ILiveCtrlService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IMyMessage"
contract="ServiceReference.IMyMessage" name="WSDualHttpBinding_IMyMessage">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ILiveCtrlService1"
contract="LiveControlService.ILiveCtrlService" name="WSDualHttpBinding_ILiveCtrlService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IMyMessage1"
contract="LiveControlService.IMyMessage" name="WSDualHttpBinding_IMyMessage1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:53604/LiveCtrlService.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_ILiveCtrlEvents"
contract="LiveControlService.ILiveCtrlEvents" name="WSDualHttpBinding_ILiveCtrlEvents">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
<userSettings>
<LiveControl.Properties.Settings>
<setting name="Device_Name" serializeAs="String">
<value />
</setting>
<setting name="Owner_Name" serializeAs="String">
<value />
</setting>
</LiveControl.Properties.Settings>
</userSettings>
<applicationSettings>
<LiveControl.Properties.Settings>
<setting name="Device_ID" serializeAs="String">
<value>1add22ed-af20-4ef8-aeb9-caad8fa9ff08</value>
</setting>
</LiveControl.Properties.Settings>
</applicationSettings>
</configuration>
...and the Service interface:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
namespace LiveControl
{
public interface IMyMessageCallback
{
[OperationContract(IsOneWay = true)]
void OnCallback(string message);
}
[ServiceContract(CallbackContract = typeof(IMyMessageCallback), SessionMode = SessionMode.Required)]
public interface IMyMessage
{
[OperationContract(IsOneWay = true)]
void MessageToServer(string message);
}
interface ILiveCtrlEventsCallback
{
[OperationContract(IsOneWay = true)]
void OnMessageReceived(string message);
}
[ServiceContract(SessionMode = SessionMode.Required,
CallbackContract = typeof(ILiveCtrlEventsCallback))]
interface ILiveCtrlEvents
{
[OperationContract(IsOneWay = true)]
void Subscribe(Guid deviceGuid, string deviceName, string ownerName);
[OperationContract]
void Unsubscribe(Guid deviceGuid);
[OperationContract(IsOneWay = true)]
void Connect(Guid deviceGuid);
[OperationContract]
void Disconnect();
}
[ServiceContract]
public interface ILiveCtrlService
{
[OperationContract]
int GetNextValueSvc(int value);
[OperationContract]
string GetDataSvc(int value);
[OperationContract]
CompositeType GetDataUsingDataContractSvc(CompositeType composite);
[OperationContract]
string GetImageUrlSvc(string slide, int focus, int x1off, int y1off, int width, int height);
[OperationContract]
string GetPreviewImageUrlSvc(string slide);
[OperationContract]
FocusCaps GetFocusCapsSvc();
[OperationContract]
DeviceInfo[] GetDeviceInfoListSvc();
[OperationContract]
void SetDeviceInfoSvc(DeviceInfo deviceInfo);
[OperationContract]
ImageDataRequest SendImageDataSvc(ImageDataResponse imageData);
}
[DataContract]
public class FocusCaps
{
[DataMember]
public int Min { get; set; }
[DataMember]
public int Max { get; set; }
[DataMember]
public int Default { get; set; }
}
[DataContract]
public class ImageDataResponse
{
[DataMember]
public Guid deviceGuid { get; set; }
[DataMember]
public bool isChunking { get; set; }
[DataMember]
public int chunkSize { get; set; }
[DataMember]
public int chunksTotal { get; set; }
[DataMember]
public int wholeChunks { get; set; }
[DataMember]
public int partialChunks { get; set; }
[DataMember]
public int chunksRemaining { get; set; }
[DataMember]
public int Size { get; set; }
[DataMember]
public byte[] Data { get; set; }
}
[DataContract]
public class ImageDataRequest
{
[DataMember]
public Guid deviceGuid { get; set; }
[DataMember]
public bool request { get; set; }
[DataMember]
public string slide { get; set; }
[DataMember]
public int focus { get; set; }
[DataMember]
public int x1off { get; set; }
[DataMember]
public int y1off { get; set; }
[DataMember]
public int width { get; set; }
[DataMember]
public int height { get; set; }
}
[DataContract]
public class DeviceInfo
{
[DataMember]
public Guid device_guid { get; set; }
[DataMember]
public string device_owner{ get; set; }
[DataMember]
public string device_name { get; set; }
[DataMember]
public string user_name { get; set; }
[DataMember]
public bool online { get; set; }
[DataMember]
public bool available { get; set; }
public ICommunicationObject comm_obj;
}
[DataContract]
public class CompositeType
{
bool boolValue = true;
string stringValue = "Hello ";
[DataMember]
public bool BoolValue
{
get { return boolValue; }
set { boolValue = value; }
}
[DataMember]
public string StringValue
{
get { return stringValue; }
set { stringValue = value; }
}
}
}
My client app is sending ImageDataResponse.Data[1000000] blocks of image data to the server:
ImageDataResponse imageData = new ImageDataResponse();
Bitmap bitmap = new Bitmap(pictureBox2.Image);
imageData.Size = bitmap.Height * bitmap.Width;
imageData.Data = new byte[imageData.Size];
using (var memoryStream = new MemoryStream())
{
bitmap.Save(memoryStream, ImageFormat.Jpeg);
imageData.Data = memoryStream.ToArray();
}
imageData.Size = imageData.Data.Count();
ImageDataRequest imgDataReq = new ImageDataRequest();
imgDataReq = m_LiveCtrlService.SendImageDataSvc(imageData);
I'm a beginner and any help would be greatly appreciated!
Thank you in advance.
|
|
|
|
|
how to show the last login time using sessions
|
|
|
|
|
If your application uses some type of authentication, then you could implement a "Users" table and include a "last login" date/time field. Each time the user successfully logs in you update this field. You could also implement a "failed login count" and increment it each time the user fails to login. After, 5 attempts, lock the account and notify your administrator that someone may be trying to hack your system. Once the user logs in successfully, you reset the counter to zero.
That's how our system basically works.
|
|
|
|
|
I write it to the database, added a column in the user info for last login time, so we can track it, use it for locking out the user and so forth.
You may want to consider login and logout time, and track both.
|
|
|
|
|
I have a simple task: to cross-page post-back to a new page in a new window. I have no problem posting to the new page in the same window or to another tab. But, try as I may, I cannot post-back to a new window. One which I wish to format as with JS window.open. I am using ASP.NET with VB, Ajax and a tiny bit of JavaScript. Can someone direct me to a solution? Maybe an example?
Thanks.
Bobby
|
|
|
|
|
|
|
Thank you both for your prompt reply. But neither method worked for me. But maybe I didn't implement your suggestion correctly. So I decided to leave it as is, just opening the target in a new tab. If the user wishes, she can move the tab to a new window.
Bobby
|
|
|
|
|
i tried lot to figure out why a position specific issue is occurring for IE 11 but still i have no luck. here i am attaching a picture then you can understand how UI is looking at IE 11.
http://i.stack.imgur.com/GrkB8.png[^]
this below CSS i wrote but still no luck.
.arrange_collection_today
{
width: 216px;
color: #fff;
font-size: 20px;
overflow: hidden;
display: block;
text-align: left;
height: 73px;
line-height: 23px;
text-decoration: none;
padding: 6px;
float: right;
background-color: #3ab54b;
margin-right: 181px;
border-radius: 1px;
margin-top: 60px;
_margin-top:-60px;
*margin-top:-60px;
+margin-top:-60px;
*+margin-top:-60px;
margin-top:-60px\9;
margin-top:-60px\0;
margin-top:-60px\9\0;
}
.ie10 .arrange_collection_today
{
margin-top:50px;
}
*::-ms-backdrop, .arrange_collection_today
{
margin-top:50px;
}
this css i applied for IE 11 but not working
*::-ms-backdrop, .arrange_collection_today
{
margin-top:50px;
}
this is my web site url http:
tbhattacharjee
|
|
|
|
|
I think it's your jquery, or really the design of the HTML
I would of made 4 div elements, and changed the display value of those, instead of 4 span tags, changing the display values.
I think the div container wasn't able to expand down on the span change, it just failed on resizing, perhaps it has a static height, or block was not included for auto vertical expansion.
[EDIT / EXPLANTATION]
It's been my experience that when using a span tag, an inline element, when the text is too long and it has to wrap, you lose control of the "css: line-height" unless you set that value to something like 90%.
I've noticed that different browsers set the font size a little different as well, and I think that IE makes the fonts a bit larger in size.
That's why I think 4 div containers with each marketing message that toggles the display value is easier to manage and consistent in display, rather than tweaking the CSS to detect the version.
So were back to IE 9-11, in which Microsoft went out of there way to change the user agent string so that people don't detect it anymore, because they claim that it's the same now as all other browsers, and tweaks are no longer needed.
modified 14-Nov-14 14:58pm.
|
|
|
|
|
thanks for your time but i just do not understand what u r trying to say....i was looking for solution.
tbhattacharjee
|
|
|
|
|
Hi Tridip,
I think in your index.aspx page, inside inline style tag, there is a code :
@media not all, not all {
.arrange_collection_today {
margin-top: -60px;
}
}
this effects in IE 11. Try to remove this code if possible or try another css style for this div.
|
|
|
|
|
yes solved this way
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .arrange_collection_today { margin-top:50px; } }
tbhattacharjee
|
|
|
|
|
hi
i have a problem with report viewer in asp.net
on local is correct but on server that uploaded error
The definition of this report is not valid or supported by this version of Reporting Services. The report definition may have been created with a later version of Reporting Services, or contain content that is not well-formed or not valid based on Reporting Services schemas. Details: Data at the root level is invalid
|
|
|
|
|
check authentication and permisson on server
change From: ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/reportserver");
To:ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://Your server name/reportserver");
in buissness intelligence side change report property
http://localhost/reportserver[^] to http://Your server name/reportserver"
|
|
|
|
|
how to create web service in asp.net c# step by step
plz any best video or any tutorial share ????
|
|
|
|
|
You're bordering on being flagged as abusive. Please ask clear, concise questions or else no one can help you. This is not the the place to ask for someone to do everything for you.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I've inherited a project that for every uncaught exception is throwing up a message box with the exception message. These message boxes looks identical to those you can create using a JavaScript alert.
I want to exchange those pesky alerts with a proper logging and error page but I fail to find where they are coming from.
I've searched the solution for all the obvious (in my simple mind) search strings such as alert, message, register, clientscript and so on and have come up with nothing.
My conclusion is that I'm missing out something basic and probably is looking in the wrong places.
This is driving me up the walls.
<Edit>
I got stuck by trying to solve this backwards by searching for the alert.
I had a look at it again today and the answer is in clear text in the stacktrace. (If I had cared to try to understand it)
The exception is caught by a third party control that's propagating the exception to the client side where it is unhandled.
So now I just need to add a million Try/Catch for all those controls.
The lesson to learn is that if you don't find the answer you might be asking the wrong question.
</Edit>
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.
modified 17-Nov-14 3:56am.
|
|
|
|
|
There are many, many ways to do popups. If it looks like an alert box then it probably is simply because they are ugly and I find it hard to believe someone would intentionally make their own look like alert.
So, search for "alert." But probably easier would be to debug the code, force an error, and step through to find where it is coming from.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
It's ugly alright, and it's differently ugly on IE, Chrome and FF which is another hint that it really is an alert box.
RyanDev wrote: So, search for "alert."
Done, but no cigar.
RyanDev wrote: force an error
That's the odd part. I've done exactly that, and VS catches the exception I'm throwing and when I try to step it simply throws the message box in my face.
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.
|
|
|
|
|
I would search for the text in the message,
or search for "catch", maybe it's an ex.message.
Then go through the .js files,
I've seen message boxes created in jquery.ui, there is a popup module plugin that goes with it.
I use alert on $AJAX posts to a web service, where if the web service crashes, the ex.message is displayed, actually it's the HTML in that yellow error page but in text.
Sounds like it's a unpolished project, that needs lots of fixing.
|
|
|
|
|
Done, done, done.
jkirkerx wrote: Sounds like it's a unpolished project, that needs lots of fixing.
That would be an understatement, it's what's better known as a death march. It's wrapped up in more layers than an onion and it's giving you a headache just trying to follow the logics.
It was the brainchild of a consultant that's not getting any more jobs from us.
I've luckily not been overly involved until now.
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.
|
|
|
|
|