Click here to Skip to main content
15,914,287 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralMSHFlexGrid ShowCaret... Pin
TAlvord29-Jun-05 10:08
TAlvord29-Jun-05 10:08 
GeneralRe: MSHFlexGrid ShowCaret... Pin
Dave Kreskowiak29-Jun-05 10:17
mveDave Kreskowiak29-Jun-05 10:17 
GeneralListView Sorting by Number/Integer Pin
buffbuh29-Jun-05 10:01
buffbuh29-Jun-05 10:01 
GeneralRe: ListView Sorting by Number/Integer Pin
Dave Kreskowiak29-Jun-05 10:12
mveDave Kreskowiak29-Jun-05 10:12 
GeneralRe: ListView Sorting by Number/Integer Pin
buffbuh29-Jun-05 12:18
buffbuh29-Jun-05 12:18 
GeneralRe: ListView Sorting by Number/Integer Pin
Dave Kreskowiak30-Jun-05 2:27
mveDave Kreskowiak30-Jun-05 2:27 
GeneralRe: ListView Sorting by Number/Integer Pin
Anonymous30-Jun-05 8:47
Anonymous30-Jun-05 8:47 
GeneralActivex Ticker User Control Pin
Ronniedevil29-Jun-05 9:53
Ronniedevil29-Jun-05 9:53 
Hi,

I have built a activex user control for stock ticker which fetches an xml data file from a valid url. It works in a windows application in a perfect manner. I can create exe too.

I am now trying to embed the control in a html page but cant do that. It works very fine in that the background color and everything gets changed in that. But as soon as I load the html page i get the following error :-


Request for the permission of type System.Net.WebPErmission, System, Version=1.05000.00, Culture=neutral, PublicKeyToken=b77a5c561934e089failed.

If i continue no data is fetched from the url and displayed by the control. And the details section consists of follwing :-

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Security.SecurityException: Request for the permission of type System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken)
at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride)
at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark)
at System.Security.CodeAccessPermission.Demand()
at System.Net.HttpRequestCreator.Create(Uri Uri)
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at Axticker.ucTicker.loaddbase()
at Axticker.ucTicker.ucTicker_Load(Object sender, EventArgs e)
at System.Windows.Forms.UserControl.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
at System.Windows.Forms.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
RegexAssembly10_0
Assembly Version: 0.0.0.0
Win32 Version: n/a
CodeBase:
----------------------------------------
Axticker
Assembly Version: 1.0.2007.291
Win32 Version: n/a
CodeBase: http://comp2/stock/Axticker.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///c:/windows/assembly/gac/microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/microsoft.mshtml.dll
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitdebugging="true">


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


Could anybody suggest me how to resolve this error. It prohibits my page from getting the data from external url and in the end no data is displayed.

Regards
Rohan Kaul
GeneralRe: Activex Ticker User Control Pin
Dave Kreskowiak29-Jun-05 12:14
mveDave Kreskowiak29-Jun-05 12:14 
Generalcannot call close() while doing createhandle() Pin
oakleaf29-Jun-05 9:52
oakleaf29-Jun-05 9:52 
GeneralRe: cannot call close() while doing createhandle() Pin
Dave Kreskowiak29-Jun-05 10:03
mveDave Kreskowiak29-Jun-05 10:03 
GeneralRe: cannot call close() while doing createhandle() Pin
oakleaf30-Jun-05 2:48
oakleaf30-Jun-05 2:48 
GeneralRe: cannot call close() while doing createhandle() Pin
Dave Kreskowiak30-Jun-05 4:50
mveDave Kreskowiak30-Jun-05 4:50 
GeneralPicture Box - does not fit my picture Pin
Anonymous29-Jun-05 8:16
Anonymous29-Jun-05 8:16 
GeneralRe: Picture Box - does not fit my picture Pin
Christian Graus29-Jun-05 12:00
protectorChristian Graus29-Jun-05 12:00 
QuestionWhere do i start when developing a simple multimedia app for playing only AVI files???? Pin
Joey Picerno29-Jun-05 7:29
Joey Picerno29-Jun-05 7:29 
AnswerRe: Where do i start when developing a simple multimedia app for playing only AVI files???? Pin
StylezHouse29-Jun-05 7:41
StylezHouse29-Jun-05 7:41 
GeneralRe: Where do i start when developing a simple multimedia app for playing only AVI files???? Pin
Joey Picerno29-Jun-05 8:12
Joey Picerno29-Jun-05 8:12 
GeneralRe: Where do i start when developing a simple multimedia app for playing only AVI files???? Pin
Dave Kreskowiak29-Jun-05 9:56
mveDave Kreskowiak29-Jun-05 9:56 
GeneralRe: Where do i start when developing a simple multimedia app for playing only AVI files???? Pin
Joey Picerno30-Jun-05 5:34
Joey Picerno30-Jun-05 5:34 
GeneralNot really VB related but someone has to know Pin
Joey Picerno29-Jun-05 6:25
Joey Picerno29-Jun-05 6:25 
GeneralRe: Not really VB related but someone has to know Pin
StylezHouse29-Jun-05 6:33
StylezHouse29-Jun-05 6:33 
GeneralThank you Pin
Joey Picerno29-Jun-05 7:28
Joey Picerno29-Jun-05 7:28 
GeneralRe: Thank you Pin
SBendBuckeye30-Jun-05 6:37
SBendBuckeye30-Jun-05 6:37 
GeneralRe: Thank you Pin
Joey Picerno30-Jun-05 9:06
Joey Picerno30-Jun-05 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.