|
Hi All,
Hopefully this is the right place to post this question. I have a project where I am creating SSRS reports on my machine and deploying them to another machine that has the databases on them along with SSRS. Only the 1.1 framework for dot net is on that machine. This one report where I've added a web application and am referencing a reportViewer.dll of which "Microsoft.Samples.ReportingServices" is the namespace is giving me this message. I'm kinda new to C# and SSRS so any help as to where to fix this problem would be of great help. Below is the error message. Thanks In Advance
Parser Error Message: File or assembly name ReportingServicesWebServer, or one of its dependencies, was not found.
Source Error:
Line 26: <assemblies>
Line 27: <clear>
Line 28: <add assembly="ReportingServicesWebServer">
Line 29:
Line 30:
Source File: G:\Application\MSSQL\Reporting Services\ReportServer\web.config Line: 28
Assembly Load Trace: The following information can be helpful to determine why the assembly 'ReportingServicesWebServer' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = ReportingServicesWebServer
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/WebPrintTest
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: ReportingServicesWebServer
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/reportserver_printtest/c126663c/7a3a6a93/ReportingServicesWebServer.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/reportserver_printtest/c126663c/7a3a6a93/ReportingServicesWebServer/ReportingServicesWebServer.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebPrintTest/bin/ReportingServicesWebServer.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebPrintTest/bin/ReportingServicesWebServer/ReportingServicesWebServer.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/reportserver_printtest/c126663c/7a3a6a93/ReportingServicesWebServer.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/reportserver_printtest/c126663c/7a3a6a93/ReportingServicesWebServer/ReportingServicesWebServer.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebPrintTest/bin/ReportingServicesWebServer.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/WebPrintTest/bin/ReportingServicesWebServer/ReportingServicesWebServer.EXE.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
later,
Clyde
|
|
|
|
|
Hi there,
I was wondering if someone knows the C# equivalent for charCodeAt. This is een JScript method
that converts an string to Unicode and encodes this at base 16 (toString(16))
This project generates strong (WEP) key's for protecting WIFI access points.
Anyone got a clue??
Help would be appreciated!
This is the original JScript source
// generate a WEP key with the specified key length in bytes
//(5/13/16/29 bytes for 64/128/152/256-bit WEP
function gen_key(keyLengthInBytes) {<br />
for (i = 0; i < keyLengthInBytes; i++)<br />
{<br />
ascWEPkey += charArray[gen_prn()]; <br />
}<br />
<br />
for (i = 0; i < ascWEPkey.length; i++)<br />
{<br />
hexWEPkey += ascWEPkey.charCodeAt(i).toString(16);<br />
}<br />
}
This is what i got so far
private string ASCII_KEY, HEX_KEY;<br />
private char[] charArray = new char [95] { <br />
' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')','*', '+', ',', '-', '.', '/', <br />
'0', '1', '2', '3', '4', '5', '6', '7','8', '9', ':', ';', '<', '=', '>', '?', <br />
'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', <br />
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', <br />
'\'', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', <br />
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'};<br />
<br />
private void GenerateWEPKey(int KeyLength) {
for (int i = 0; i < KeyLength; i++) {<br />
ASCII_KEY += charArray[GenPseudoNo()];
}<br />
for (int i = 0; i < ASCII_KEY.Length; i++) {<br />
HEX_KEY += charCodeAt(ASCII_KEY,i);
}<br />
MessageBox.Show(HEX_KEY);<br />
}<br />
<br />
private int GenPseudoNo() {<br />
Random rdm = new Random();
return (int)Math.Floor(rdm.NextDouble() * charArray.Length);
}<br />
<br />
private string charCodeAt(string ASCII, int index) {<br />
System.Text.ASCIIEncoding AE = new System.Text.ASCIIEncoding ( );<br />
byte [ ] alphabetArray = AE.GetBytes ( ASCII );<br />
System.Text.StringBuilder sb = new System.Text.StringBuilder();<br />
<br />
for ( int x = 0; x <= alphabetArray.Length - 1; x++ ) {<br />
sb.Append ( string.Format ( "{0}", alphabetArray [ x ]));<br />
}<br />
return sb.ToString(index,2);<br />
}
Mark van den Broek
mvdbroek@kg.nl
|
|
|
|
|
String 's in .NET are Unicode. To covert to hex format, use the "X" as defined by the NumberFormatInfo class.
string val = 114.ToString("X");
int num = Int32.Parse("126", System.Globalization.NumberStyles.HexNumber);
- Nick Parker My Blog | My Articles
|
|
|
|
|
Hi there,
I was wondering if someone knows the C# equivalent for charCodeAt. This is een JScript method
that converts an string to Unicode and encodes this at base 16 (toString(16))
This project generates strong (WEP) key's for protecting WIFI access points.
Anyone got a clue??
Help would be appreciated!
Mark van den Broek
mvdbroek@kg.nl
This is the original JScript source
// generate a WEP key with the specified key length in bytes
//(5/13/16/29 bytes for 64/128/152/256-bit WEP
function gen_key(keyLengthInBytes) {<br />
for (i = 0; i < keyLengthInBytes; i++)<br />
{<br />
ascWEPkey += charArray[gen_prn()]; <br />
}<br />
<br />
for (i = 0; i < ascWEPkey.length; i++)<br />
{<br />
hexWEPkey += ascWEPkey.charCodeAt(i).toString(16);<br />
}<br />
}
This is what i got so far
private string ASCII_KEY, HEX_KEY;<br />
private char[] charArray = new char [95] { <br />
' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')','*', '+', ',', '-', '.', '/', <br />
'0', '1', '2', '3', '4', '5', '6', '7','8', '9', ':', ';', '<', '=', '>', '?', <br />
'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', <br />
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', <br />
'\'', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', <br />
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~'};<br />
<br />
private void GenerateWEPKey(int KeyLength) {
for (int i = 0; i < KeyLength; i++) {<br />
ASCII_KEY += charArray[GenPseudoNo()];
}<br />
for (int i = 0; i < ASCII_KEY.Length; i++) {<br />
HEX_KEY += charCodeAt(ASCII_KEY,i);
}<br />
MessageBox.Show(HEX_KEY);<br />
}<br />
<br />
private int GenPseudoNo() {<br />
Random rdm = new Random();
return (int)Math.Floor(rdm.NextDouble() * charArray.Length);
}<br />
<br />
private string charCodeAt(string ASCII, int index) {<br />
System.Text.ASCIIEncoding AE = new System.Text.ASCIIEncoding ( );<br />
byte [ ] alphabetArray = AE.GetBytes ( ASCII );<br />
System.Text.StringBuilder sb = new System.Text.StringBuilder();<br />
<br />
for ( int x = 0; x <= alphabetArray.Length - 1; x++ ) {<br />
sb.Append ( string.Format ( "{0}", alphabetArray [ x ]));<br />
}<br />
return sb.ToString(index,2);<br />
}
|
|
|
|
|
I need to be able to run an application on a local pc that is behind a firewall and get the internet ip address for the computer. does anyone know how this can be done in .net?
|
|
|
|
|
|
If you want the IP address of the computer behind the firewall (and you're outside), then you must define your protocol such that the IP address is included in the TCP (or UDP) message - not in the header (which is masked using the firewall's IP address with a NAT'd firewall). It probably won't do you much good, though, since 1) masked IP addresses are typically in the reserved range and don't route throughout the Internet, and 2) you still can't communicate with it directly.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
ok but, here's the thing i'm not outside i have a client app that runs on the client pc and i have a server app that needs the ip. the problem i had is that i need the client ip so i can route connection from the server to the client kind of like a one chat. the only restriction is i can't give out the server ip. so that leaves me with the only one option to have the server connect to client. so that's my situation.
|
|
|
|
|
Well, if you intend on actually connecting to a client behind a firewall, make sure you set up port forwarding for it.
As for getting the IP, your only choice is to use a machine outside the local network. Something like make a HTTP query to whatsmyip.com and extract the result.
|
|
|
|
|
That's a pretty dumb restriction - knowing an IP isn't a problem; it's making sure that the server is secure that is. Even if the server establishes a connection with the client, it's easy to determine the IP address (it's in the TCP/IP headers!). But you probably can't do anything about that.
If both the client and server are on the same LAN, you can use a multicast group. See the class documentation[^] for the MulticastOption class in the .NET Framework SDK for more details and a client/server example. This uses UDP to send datagrams (connectionless IP, unlike TCP) to a multicast IP address (reserved range; it's not the server's IP). Everyone in the multicast group can receive the message and process it.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I would try this method that I used.
IPAddress ipAdress = IPAddress.Any;
IPEndPoint Enp = new IPEndPoint(ipAdress, 60001);
Socket m_soc = new Socket(AddressFamily.InterNetwork,SocketType.Stream, ProtocolType.Tcp);
m_soc.Bind(Enp);
//then do this to get the current IP&source port
System.Windows.Forms.MessageBox.Show(m_soc.LocalEndPoint.ToString());
Try that..should work in a x.x.x.x:x format
|
|
|
|
|
Hi, where can I foud user interfaces samples on windows forms and web forms to see conventions, good practoces, and controls orders, etc.
Thank you!
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
|
hi,
I am developing a small chat (messenger) application in C#. There when i receive any message from others, i want my form to be bliked in the taskmanager like in yahoo messenger.
can any one tell me how can i get that?
thanks
Ravikumar
M.V.Ravikumar.
|
|
|
|
|
sorry, not taskmanager. I want the blink of the window in taskbar.
|
|
|
|
|
You'll want to P/Invoke the FlashWindow native API. See http://pinvoke.net/default.aspx/user32.FlashWindow[^] for details. To get the window handle used in the first parameter, use the Handle property of your main form, or Process.GetCurrentProcess().MainWindowHandle (which is the HWND of the main form that was specified in Application.Run either directly or indirectly).
To make it flash an X number of times, you can either use a timer or something like this (might be a good idea to thread it so that execution isn't blocked just to flash the window):
int flash = 3;
for (int i=0; i<flash * 2; i++)
{
Thread.Sleep(250);
FlashWindow(Handle, true);
}
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you very much.
It is solving my problem.
regards
Ravikumar.
M.V.Ravikumar.
|
|
|
|
|
Hello.
I read the article "Getting active TCP/UDP connections on a box" in coldeproject.com.
My application get all tcp connections and should close user selected connections.
But I have 2 problems:
problem 1 : I want to close slelected port from Listening ports.
I wrote below code for it ,but this don't work properly:
[DllImport("iphlpapi.dll",SetLastError=true)]
public extern static int SetTcpEntry(IntPtr pTcpRow);
IPHlpAPI32Wrapper.MIB_TCPROW Kill=new IPHlpAPI32Wrapper.MIB_TCPROW();
IntPtr current= globaltablepointer;
//globaltablepointer poit to start of array of MIB_TCPROW structure
current=(IntPtr)((int) current+(listBox1.SelectedIndex*24));
Kill.dwstate = MIB_TCP_STATE_DELETE_TCB;
// iterate the pointer of 4
current = (IntPtr)((int)current+4);
Kill.dwLocalAddr=(int)Marshal.ReadIntPtr(current);
current = (IntPtr)((int)current+4);
Kill.dwLocalPort=(int)Marshal.ReadIntPtr(current);
current = (IntPtr)((int)current+4);
Kill.dwRemoteAddr=(int)Marshal.ReadIntPtr(current);
current = (IntPtr)((int)current+4);
Kill.dwRemotePort=(int)Marshal.ReadIntPtr(current);
IntPtr pt=Marshal.AllocHGlobal(Marshal.SizeOf(Kill));
Marshal.StructureToPtr(Kill,pt,true);
IPHelp.SetTcpEntry(pt);
problem 2 : What event happen when a port is opening.Is there any
message that I hook on it.
thanks
|
|
|
|
|
If you have a question specific to an article, ask on the article's message board. That's what it's there for.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I'm currently working with windows desktop application. I have this installation package for my software as well, but when I install, then everything is just fine. Later, when I try to start my program from start menu, then it starts installation again. Why does this installation start?
Is there something wrong with this VS2003 installpackages? Application is written in C#.
|
|
|
|
|
hi forum,
I have made a signed XML document with MS Infopath 2003.
Is possible to extract a X.509 Certificate from the XML document and import it to a CAPICOM.Certificate class or a System.Security.Cryptography.X509Certificate class?
thanks in advance.
|
|
|
|
|
You can use the classes in the System.Security.Cryptography.Xml namespace to get the SignedXml.SigningKey , which is an AsymmetricAlgorithm . From that an other information you can reconstruct the X.509 certificate that contains the public key.
While I don't cover this topic exactly, you might find some helpful hints in my article, Using XML Digital Signatures for Application Licensing[^]. Both this and the signatures used by InfoPath use the industry standard XML Digital Signature specification. You can find more information about that on the W3C[^] site as WS-Signature.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
thank you,
finally, i did this:
<br />
<br />
System.Xml.XmlNodeList nodeList = XmlDoc.GetElementsByTagName("X509Certificate");<br />
XmlNode node = (XMLNode)nodelist[0];<br />
CAPICOM.Certificate certificates = new CAPICOM.CertificateClass()<br />
certificate.Import(node.InnerText);<br />
<br />
..and it seems that works well
|
|
|
|
|
What are you confused about? The InnerText is the base64-encoded X.509 certificate, so Import should have no problem reading it (as long as such a method accepts base64-encoded text, which that one obviously does).
You should really try to avoid interop'ing the CryptoAPI, however. Most of the functionality you most likely need is already in the .NET Framework SDK. Mixing like this creates additional requirements, not to mentioning that marshaling data types from managed to unmanaged code can be very time consuming for certain types.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
ok. i'll try to do it without CryptoAPI.
thank you.
|
|
|
|
|